"vscode:/vscode.git/clone" did not exist on "ec40b6f7705ab172cb8d89ecc2088514bb85d389"
Commit 5a946c29 authored by Peter Eastman's avatar Peter Eastman
Browse files

Correction to the previous optimization

parent 7e544edd
...@@ -70,7 +70,7 @@ void computeNonbonded(__global float4* restrict forceBuffers, __global float* re ...@@ -70,7 +70,7 @@ void computeNonbonded(__global float4* restrict forceBuffers, __global float* re
if (get_local_id(0) == 0) if (get_local_id(0) == 0)
exclusionIndex[0] = -1; exclusionIndex[0] = -1;
barrier(CLK_LOCAL_MEM_FENCE); barrier(CLK_LOCAL_MEM_FENCE);
for (int i = exclusionRange[0]+get_local_id(0); i < exclusionRange[1]; i += TILE_SIZE) for (int i = exclusionRange[0]+get_local_id(0); i < exclusionRange[1]; i += FORCE_WORK_GROUP_SIZE)
if (exclusionIndices[i] == y) if (exclusionIndices[i] == y)
exclusionIndex[0] = i*TILE_SIZE; exclusionIndex[0] = i*TILE_SIZE;
barrier(CLK_LOCAL_MEM_FENCE); barrier(CLK_LOCAL_MEM_FENCE);
......
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