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
c56b4801
"...src/ssh:/git@developer.sourcefind.cn:2222/tsoc/openmm.git" did not exist on "b2c89feb483b9120b8b11f61e26ad6e7a5cc4166"
Commit
c56b4801
authored
May 04, 2011
by
Peter Eastman
Browse files
Fix to the previous checkin (which broke load balancing)
parent
5a9897bd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
platforms/opencl/src/OpenCLParallelKernels.cpp
platforms/opencl/src/OpenCLParallelKernels.cpp
+6
-2
No files found.
platforms/opencl/src/OpenCLParallelKernels.cpp
View file @
c56b4801
...
...
@@ -82,8 +82,12 @@ public:
// Execute the kernel, then download forces.
energy
+=
kernel
.
finishComputation
(
context
,
includeForce
,
includeEnergy
);
if
(
includeForce
&&
cl
.
getContextIndex
()
>
0
)
cl
.
getForce
().
download
(
&
contextForces
[
cl
.
getContextIndex
()
*
cl
.
getPaddedNumAtoms
()]);
if
(
includeForce
)
{
if
(
cl
.
getContextIndex
()
>
0
)
cl
.
getForce
().
download
(
&
contextForces
[
cl
.
getContextIndex
()
*
cl
.
getPaddedNumAtoms
()]);
else
cl
.
getQueue
().
finish
();
}
completionTime
=
getTime
();
}
private:
...
...
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