"platforms/reference/src/SimTKReference/ReferenceMinimize.cpp" did not exist on "07d005fae0cdb330b10aac43ff88fd338ae9122a"
Commit f1bbb8e7 authored by peastman's avatar peastman
Browse files

Added missing synchronization

parent 8a42f4f6
...@@ -156,6 +156,7 @@ extern "C" __global__ void buildNeighborList(int* __restrict__ rebuildNeighborL ...@@ -156,6 +156,7 @@ extern "C" __global__ void buildNeighborList(int* __restrict__ rebuildNeighborL
int rangeStop = rangeStart + reduceMax(rangeEnd-rangeStart); int rangeStop = rangeStart + reduceMax(rangeEnd-rangeStart);
SYNC_WARPS; SYNC_WARPS;
for (int j = rangeStart; j < rangeStop && !anyInteraction[local_warp]; j++) { for (int j = rangeStart; j < rangeStop && !anyInteraction[local_warp]; j++) {
SYNC_WARPS;
if (j < rangeEnd && tj < rangeEnd) { if (j < rangeEnd && tj < rangeEnd) {
bool isExcluded = (((exclusions>>tj)&1) == 0); bool isExcluded = (((exclusions>>tj)&1) == 0);
int localIndex = tbx+tj; int localIndex = tbx+tj;
......
...@@ -198,6 +198,7 @@ __kernel void buildNeighborList(__global int* restrict rebuildNeighborList, __gl ...@@ -198,6 +198,7 @@ __kernel void buildNeighborList(__global int* restrict rebuildNeighborList, __gl
int rangeStop = rangeStart + reduceMax(rangeEnd-rangeStart, reductionBuffer); int rangeStop = rangeStart + reduceMax(rangeEnd-rangeStart, reductionBuffer);
SYNC_WARPS; SYNC_WARPS;
for (int j = rangeStart; j < rangeStop && !anyInteraction[local_warp]; j++) { for (int j = rangeStart; j < rangeStop && !anyInteraction[local_warp]; j++) {
SYNC_WARPS;
if (j < rangeEnd) { if (j < rangeEnd) {
bool isExcluded = (((exclusions>>tj)&1) == 0); bool isExcluded = (((exclusions>>tj)&1) == 0);
int localIndex = tbx+tj; int localIndex = tbx+tj;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment