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
eb2f74e0
Unverified
Commit
eb2f74e0
authored
Sep 07, 2018
by
peastman
Committed by
GitHub
Sep 07, 2018
Browse files
Merge pull request #2163 from peastman/uint
Fixed CUDA compilation error on Windows
parents
806c4774
e11ba77d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
platforms/cuda/src/kernels/rmsd.cu
platforms/cuda/src/kernels/rmsd.cu
+2
-2
No files found.
platforms/cuda/src/kernels/rmsd.cu
View file @
eb2f74e0
...
...
@@ -9,12 +9,12 @@ __device__ real reduceValue(real value, volatile real* temp) {
__syncthreads
();
temp
[
thread
]
=
value
;
__syncthreads
();
for
(
uint
step
=
1
;
step
<
32
;
step
*=
2
)
{
for
(
u
nsigned
int
step
=
1
;
step
<
32
;
step
*=
2
)
{
if
(
thread
+
step
<
blockDim
.
x
&&
thread
%
(
2
*
step
)
==
0
)
temp
[
thread
]
=
temp
[
thread
]
+
temp
[
thread
+
step
];
SYNC_WARPS
}
for
(
uint
step
=
32
;
step
<
blockDim
.
x
;
step
*=
2
)
{
for
(
u
nsigned
int
step
=
32
;
step
<
blockDim
.
x
;
step
*=
2
)
{
if
(
thread
+
step
<
blockDim
.
x
&&
thread
%
(
2
*
step
)
==
0
)
temp
[
thread
]
=
temp
[
thread
]
+
temp
[
thread
+
step
];
__syncthreads
();
...
...
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