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
2a0dbe01
Unverified
Commit
2a0dbe01
authored
Dec 18, 2018
by
peastman
Committed by
GitHub
Dec 18, 2018
Browse files
Merge pull request #2229 from peastman/shfl
Eliminated use of a deprecated shuffle function
parents
813772e8
245ca208
Changes
1
Show 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 @
2a0dbe01
...
@@ -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