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
b6790d94
Commit
b6790d94
authored
Jul 14, 2011
by
Mark Friedrichs
Browse files
maxTorqueBufferIndex was off by 1; affected small systems
parent
e7f2cc29
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
plugins/amoeba/platforms/cuda/src/kernels/amoebaCudaGpu.cpp
plugins/amoeba/platforms/cuda/src/kernels/amoebaCudaGpu.cpp
+1
-0
No files found.
plugins/amoeba/platforms/cuda/src/kernels/amoebaCudaGpu.cpp
View file @
b6790d94
...
...
@@ -2818,6 +2818,7 @@ void amoebaGpuBuildOutputBuffers( amoebaGpuContext amoebaGpu, int hasAmoebaGener
// use the Cuda force output buffers for mapping torques onto forces, if max torque buffer count < number of buffers
amoebaGpu
->
amoebaSim
.
maxTorqueBufferIndex
++
;
if
(
amoebaGpu
->
amoebaSim
.
maxTorqueBufferIndex
>
outputBuffers
){
amoebaGpu
->
psTorqueMapForce4
=
new
CUDAStream
<
float4
>
(
paddedNumberOfAtoms
,
amoebaGpu
->
amoebaSim
.
maxTorqueBufferIndex
,
"torqueMapForce"
);
amoebaGpu
->
torqueMapForce4Delete
=
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