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
4de1df08
Commit
4de1df08
authored
Apr 09, 2010
by
Peter Eastman
Browse files
Fixed bug in CCMA convergence detection
parent
2eaa120b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
platforms/cuda/src/kernels/kCCMA.cu
platforms/cuda/src/kernels/kCCMA.cu
+3
-3
No files found.
platforms/cuda/src/kernels/kCCMA.cu
View file @
4de1df08
...
...
@@ -75,7 +75,7 @@ kComputeCCMAConstraintDirections()
// Mark that no blocks have converged yet.
for
(
unsigned
int
index
=
threadIdx
.
x
+
blockIdx
.
x
*
blockDim
.
x
;
index
<
gridDim
.
x
;
index
+=
blockDim
.
x
*
gridDim
.
x
)
cSim
.
pCcmaConverged
[
index
]
=
false
;
cSim
.
pCcmaConverged
[
index
]
=
0
;
}
__global__
void
...
...
@@ -219,9 +219,9 @@ void kApplyCCMA(gpuContext gpu, float4* posq, bool addOldPosition)
kComputeCCMAConstraintDirections
<<<
gpu
->
sim
.
blocks
,
gpu
->
sim
.
ccma_threads_per_block
>>>
();
LAUNCHERROR
(
"kComputeCCMAConstraintDirections"
);
for
(
int
i
=
0
;
i
<
150
;
i
++
)
{
kComputeCCMAConstraintForces
<<<
gpu
->
sim
.
blocks
,
gpu
->
sim
.
ccma_threads_per_block
>>>
(
posq
,
addOldPosition
);
kMultiplyByCCMAConstraintMatrix
<<<
gpu
->
sim
.
blocks
,
gpu
->
sim
.
ccma_threads_per_block
>>>
();
kComputeCCMAConstraintForces
<<<
gpu
->
sim
.
blocks
,
gpu
->
sim
.
ccma_threads_per_block
,
gpu
->
sim
.
ccma_threads_per_block
*
sizeof
(
int
)
>>>
(
posq
,
addOldPosition
);
gpu
->
psCcmaConverged
->
Download
();
kMultiplyByCCMAConstraintMatrix
<<<
gpu
->
sim
.
blocks
,
gpu
->
sim
.
ccma_threads_per_block
,
gpu
->
sim
.
ccma_threads_per_block
*
sizeof
(
int
)
>>>
();
if
((
*
gpu
->
psCcmaConverged
)[
0
])
break
;
kUpdateCCMAAtomPositions
<<<
gpu
->
sim
.
blocks
,
gpu
->
sim
.
ccma_threads_per_block
>>>
(
posq
,
i
);
...
...
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