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
647b2ea1
Commit
647b2ea1
authored
Apr 26, 2013
by
Peter Eastman
Browse files
Fixed thread synchronization problem in RPMD kernels
parent
27777280
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
4 deletions
+0
-4
plugins/rpmd/platforms/cuda/src/CudaRpmdKernels.cpp
plugins/rpmd/platforms/cuda/src/CudaRpmdKernels.cpp
+0
-2
plugins/rpmd/platforms/opencl/src/OpenCLRpmdKernels.cpp
plugins/rpmd/platforms/opencl/src/OpenCLRpmdKernels.cpp
+0
-2
No files found.
plugins/rpmd/platforms/cuda/src/CudaRpmdKernels.cpp
View file @
647b2ea1
...
...
@@ -76,8 +76,6 @@ void CudaIntegrateRPMDStepKernel::initialize(const System& system, const RPMDInt
numCopies
=
integrator
.
getNumCopies
();
numParticles
=
system
.
getNumParticles
();
workgroupSize
=
numCopies
;
while
(
workgroupSize
<=
128
-
numCopies
)
workgroupSize
+=
numCopies
;
if
(
numCopies
!=
findFFTDimension
(
numCopies
))
throw
OpenMMException
(
"RPMDIntegrator: the number of copies must be a multiple of powers of 2, 3, and 5."
);
int
paddedParticles
=
cu
.
getPaddedNumAtoms
();
...
...
plugins/rpmd/platforms/opencl/src/OpenCLRpmdKernels.cpp
View file @
647b2ea1
...
...
@@ -55,8 +55,6 @@ void OpenCLIntegrateRPMDStepKernel::initialize(const System& system, const RPMDI
numCopies
=
integrator
.
getNumCopies
();
numParticles
=
system
.
getNumParticles
();
workgroupSize
=
numCopies
;
while
(
workgroupSize
<=
128
-
numCopies
)
workgroupSize
+=
numCopies
;
if
(
numCopies
!=
OpenCLFFT3D
::
findLegalDimension
(
numCopies
))
throw
OpenMMException
(
"RPMDIntegrator: the number of copies must be a multiple of powers of 2, 3, and 5."
);
int
paddedParticles
=
cl
.
getPaddedNumAtoms
();
...
...
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