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
e11ba77d
"vscode:/vscode.git/clone" did not exist on "3e84be612077c4c4a82779aecb47bec2129ef39a"
Commit
e11ba77d
authored
Sep 07, 2018
by
Peter Eastman
Browse files
Fixed CUDA compilation error on Windows
parent
806c4774
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 @
e11ba77d
...
@@ -9,12 +9,12 @@ __device__ real reduceValue(real value, volatile real* temp) {
...
@@ -9,12 +9,12 @@ __device__ real reduceValue(real value, volatile real* temp) {
__syncthreads
();
__syncthreads
();
temp
[
thread
]
=
value
;
temp
[
thread
]
=
value
;
__syncthreads
();
__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
)
if
(
thread
+
step
<
blockDim
.
x
&&
thread
%
(
2
*
step
)
==
0
)
temp
[
thread
]
=
temp
[
thread
]
+
temp
[
thread
+
step
];
temp
[
thread
]
=
temp
[
thread
]
+
temp
[
thread
+
step
];
SYNC_WARPS
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
)
if
(
thread
+
step
<
blockDim
.
x
&&
thread
%
(
2
*
step
)
==
0
)
temp
[
thread
]
=
temp
[
thread
]
+
temp
[
thread
+
step
];
temp
[
thread
]
=
temp
[
thread
]
+
temp
[
thread
+
step
];
__syncthreads
();
__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