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
245ca208
Commit
245ca208
authored
Dec 18, 2018
by
Peter Eastman
Browse files
Eliminated use of a deprecated shuffle function
parent
813772e8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
platforms/cuda/src/kernels/customNonbondedGroups.cu
platforms/cuda/src/kernels/customNonbondedGroups.cu
+1
-1
No files found.
platforms/cuda/src/kernels/customNonbondedGroups.cu
View file @
245ca208
...
@@ -16,7 +16,7 @@ typedef struct {
...
@@ -16,7 +16,7 @@ typedef struct {
__device__
int
reduceMax
(
int
val
)
{
__device__
int
reduceMax
(
int
val
)
{
#if __CUDA_ARCH__ >= 700
#if __CUDA_ARCH__ >= 700
for
(
int
mask
=
16
;
mask
>
0
;
mask
/=
2
)
for
(
int
mask
=
16
;
mask
>
0
;
mask
/=
2
)
val
=
max
(
val
,
__shfl_xor
(
val
,
mask
));
val
=
max
(
val
,
__shfl_xor
_sync
(
0xffffffff
,
val
,
mask
));
#endif
#endif
return
val
;
return
val
;
}
}
...
...
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