Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tsoc
openmm
Commits
f1bbb8e7
Commit
f1bbb8e7
authored
Apr 25, 2018
by
peastman
Browse files
Added missing synchronization
parent
8a42f4f6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
0 deletions
+2
-0
platforms/cuda/src/kernels/customNonbondedGroups.cu
platforms/cuda/src/kernels/customNonbondedGroups.cu
+1
-0
platforms/opencl/src/kernels/customNonbondedGroups.cl
platforms/opencl/src/kernels/customNonbondedGroups.cl
+1
-0
No files found.
platforms/cuda/src/kernels/customNonbondedGroups.cu
View file @
f1bbb8e7
...
...
@@ -156,6 +156,7 @@ extern "C" __global__ void buildNeighborList(int* __restrict__ rebuildNeighborL
int
rangeStop
=
rangeStart
+
reduceMax
(
rangeEnd
-
rangeStart
);
SYNC_WARPS
;
for
(
int
j
=
rangeStart
;
j
<
rangeStop
&&
!
anyInteraction
[
local_warp
];
j
++
)
{
SYNC_WARPS
;
if
(
j
<
rangeEnd
&&
tj
<
rangeEnd
)
{
bool
isExcluded
=
(((
exclusions
>>
tj
)
&
1
)
==
0
);
int
localIndex
=
tbx
+
tj
;
...
...
platforms/opencl/src/kernels/customNonbondedGroups.cl
View file @
f1bbb8e7
...
...
@@ -198,6 +198,7 @@ __kernel void buildNeighborList(__global int* restrict rebuildNeighborList, __gl
int
rangeStop
=
rangeStart
+
reduceMax
(
rangeEnd-rangeStart,
reductionBuffer
)
;
SYNC_WARPS
;
for
(
int
j
=
rangeStart
; j < rangeStop && !anyInteraction[local_warp]; j++) {
SYNC_WARPS
;
if
(
j
<
rangeEnd
)
{
bool
isExcluded
=
(((
exclusions>>tj
)
&1
)
==
0
)
;
int
localIndex
=
tbx+tj
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment