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
"platforms/reference/src/SimTKReference/ReferenceMinimize.cpp" did not exist on "07d005fae0cdb330b10aac43ff88fd338ae9122a"
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
...
@@ -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
;
...
...
platforms/opencl/src/kernels/customNonbondedGroups.cl
View file @
f1bbb8e7
...
@@ -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
;
...
...
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