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
1e5b258c
Commit
1e5b258c
authored
Dec 16, 2016
by
peastman
Committed by
GitHub
Dec 16, 2016
Browse files
Merge pull request #1692 from peastman/mergedsteps
Fixed bug merging steps in CustomIntegrator
parents
88b0a3e9
74dba059
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
platforms/cuda/src/CudaKernels.cpp
platforms/cuda/src/CudaKernels.cpp
+1
-1
platforms/opencl/src/OpenCLKernels.cpp
platforms/opencl/src/OpenCLKernels.cpp
+1
-1
No files found.
platforms/cuda/src/CudaKernels.cpp
View file @
1e5b258c
...
...
@@ -7098,7 +7098,7 @@ void CudaIntegrateCustomStepKernel::prepareForComputation(ContextImpl& context,
// Identify steps that can be merged into a single kernel.
for (int step = 1; step < numSteps; step++) {
if
((needsForces[step] || needsEnergy[step]) &&
(invalidatesForces[step-1] || forceGroupFlags[step] != forceGroupFlags[step-1])
)
if (invalidatesForces[step-1] || forceGroupFlags[step] != forceGroupFlags[step-1])
continue;
if (stepType[step-1] == CustomIntegrator::ComputePerDof && stepType[step] == CustomIntegrator::ComputePerDof)
merged[step] = true;
...
...
platforms/opencl/src/OpenCLKernels.cpp
View file @
1e5b258c
...
...
@@ -7387,7 +7387,7 @@ void OpenCLIntegrateCustomStepKernel::prepareForComputation(ContextImpl& context
// Identify steps that can be merged into a single kernel.
for (int step = 1; step < numSteps; step++) {
if
((needsForces[step] || needsEnergy[step]) &&
(invalidatesForces[step-1] || forceGroupFlags[step] != forceGroupFlags[step-1])
)
if (invalidatesForces[step-1] || forceGroupFlags[step] != forceGroupFlags[step-1])
continue;
if (stepType[step-1] == CustomIntegrator::ComputePerDof && stepType[step] == CustomIntegrator::ComputePerDof)
merged[step] = true;
...
...
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