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
d527f999
"openmmapi/vscode:/vscode.git/clone" did not exist on "5b07f0d1e8d6c8d3dc0bd5dc691b36e34a353030"
Commit
d527f999
authored
Feb 04, 2020
by
peastman
Browse files
Fixed incorrect indexing in kernel
parent
ff555815
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
platforms/common/src/kernels/customNonbondedGroups.cc
platforms/common/src/kernels/customNonbondedGroups.cc
+1
-1
No files found.
platforms/common/src/kernels/customNonbondedGroups.cc
View file @
d527f999
...
...
@@ -23,7 +23,7 @@ DEVICE int reduceMax(int val, LOCAL_ARG int* temp) {
temp
[
LOCAL_ID
]
=
val
;
SYNC_WARPS
;
for
(
int
offset
=
16
;
offset
>
0
;
offset
/=
2
)
{
if
(
offset
<
indexInWarp
)
if
(
indexInWarp
<
offset
)
temp
[
LOCAL_ID
]
=
max
(
temp
[
LOCAL_ID
],
temp
[
LOCAL_ID
+
offset
]);
SYNC_WARPS
;
}
...
...
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