"platforms/opencl/include/OpenCLKernelFactory.h" did not exist on "644cc275ab5a549a82cce4d49680da729c2051e6"
constantPotentialSolver.cc 470 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
KERNEL void checkSavedPositions(GLOBAL real4* RESTRICT posq, GLOBAL real4* RESTRICT savedPositions, GLOBAL int* RESTRICT result) {
    for (int i = GLOBAL_ID; i < NUM_PARTICLES; i += GLOBAL_SIZE) {
        real4 posqPosition = posq[i];
        real4 savedPosition = savedPositions[i];
        if (posqPosition.x != savedPosition.x || posqPosition.y != savedPosition.y || posqPosition.z != savedPosition.z) {
            *result = 1;
            break;
        }
    }
}