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
ce2cd27b
"serialization/tests/TestSerializeRGForce.cpp" did not exist on "c738761235977f63683a1f3dafccdea64d39ec95"
Commit
ce2cd27b
authored
Apr 19, 2013
by
Peter Eastman
Browse files
Bug fix when using peer-to-peer communication
parent
5e6d705e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
platforms/cuda/src/CudaParallelKernels.cpp
platforms/cuda/src/CudaParallelKernels.cpp
+2
-1
No files found.
platforms/cuda/src/CudaParallelKernels.cpp
View file @
ce2cd27b
...
@@ -194,6 +194,7 @@ double CudaParallelCalcForcesAndEnergyKernel::finishComputation(ContextImpl& con
...
@@ -194,6 +194,7 @@ double CudaParallelCalcForcesAndEnergyKernel::finishComputation(ContextImpl& con
// Sum the forces from all devices.
// Sum the forces from all devices.
CudaContext
&
cu
=
*
data
.
contexts
[
0
];
CudaContext
&
cu
=
*
data
.
contexts
[
0
];
if
(
!
cu
.
getPlatformData
().
peerAccessSupported
)
contextForces
->
upload
(
pinnedForceBuffer
,
false
);
contextForces
->
upload
(
pinnedForceBuffer
,
false
);
int
bufferSize
=
3
*
cu
.
getPaddedNumAtoms
();
int
bufferSize
=
3
*
cu
.
getPaddedNumAtoms
();
int
numBuffers
=
data
.
contexts
.
size
()
-
1
;
int
numBuffers
=
data
.
contexts
.
size
()
-
1
;
...
...
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