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
960c22af
"plugins/cudacompiler/src/CudaCompilerKernelFactory.cpp" did not exist on "f6352d88a31ead26e79e8de7fbeb0acf8f2f6d1a"
Commit
960c22af
authored
Aug 12, 2010
by
Peter Eastman
Browse files
Minor bug fix
parent
a711ce2a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
platforms/cuda/src/CudaKernels.cpp
platforms/cuda/src/CudaKernels.cpp
+2
-5
No files found.
platforms/cuda/src/CudaKernels.cpp
View file @
960c22af
...
...
@@ -48,16 +48,13 @@ void CudaCalcForcesAndEnergyKernel::beginComputation(ContextImpl& context, bool
_gpuContext
*
gpu
=
data
.
gpu
;
if
(
data
.
nonbondedMethod
!=
NO_CUTOFF
&&
data
.
computeForceCount
%
100
==
0
)
gpuReorderAtoms
(
gpu
);
if
(
includeForces
)
data
.
computeForceCount
++
;
data
.
computeForceCount
++
;
if
(
gpu
->
bIncludeGBSA
||
gpu
->
bIncludeGBVI
)
kClearBornSumAndForces
(
gpu
);
else
if
(
includeForces
)
kClearForces
(
gpu
);
if
(
includeEnergy
)
{
data
.
stepCount
++
;
if
(
includeEnergy
)
kClearEnergy
(
gpu
);
}
}
double
CudaCalcForcesAndEnergyKernel
::
finishComputation
(
ContextImpl
&
context
,
bool
includeForces
,
bool
includeEnergy
)
{
...
...
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