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
"platforms/cpu/vscode:/vscode.git/clone" did not exist on "896413aa41c49e60fe68620757488650f5d9368e"
Commit
4de1df08
authored
Apr 09, 2010
by
Peter Eastman
Browse files
Fixed bug in CCMA convergence detection
parent
2eaa120b
Changes
1
Show 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()
...
@@ -75,7 +75,7 @@ kComputeCCMAConstraintDirections()
// Mark that no blocks have converged yet.
// 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
)
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
__global__
void
...
@@ -219,9 +219,9 @@ void kApplyCCMA(gpuContext gpu, float4* posq, bool addOldPosition)
...
@@ -219,9 +219,9 @@ void kApplyCCMA(gpuContext gpu, float4* posq, bool addOldPosition)
kComputeCCMAConstraintDirections
<<<
gpu
->
sim
.
blocks
,
gpu
->
sim
.
ccma_threads_per_block
>>>
();
kComputeCCMAConstraintDirections
<<<
gpu
->
sim
.
blocks
,
gpu
->
sim
.
ccma_threads_per_block
>>>
();
LAUNCHERROR
(
"kComputeCCMAConstraintDirections"
);
LAUNCHERROR
(
"kComputeCCMAConstraintDirections"
);
for
(
int
i
=
0
;
i
<
150
;
i
++
)
{
for
(
int
i
=
0
;
i
<
150
;
i
++
)
{
kComputeCCMAConstraintForces
<<<
gpu
->
sim
.
blocks
,
gpu
->
sim
.
ccma_threads_per_block
>>>
(
posq
,
addOldPosition
);
kComputeCCMAConstraintForces
<<<
gpu
->
sim
.
blocks
,
gpu
->
sim
.
ccma_threads_per_block
,
gpu
->
sim
.
ccma_threads_per_block
*
sizeof
(
int
)
>>>
(
posq
,
addOldPosition
);
kMultiplyByCCMAConstraintMatrix
<<<
gpu
->
sim
.
blocks
,
gpu
->
sim
.
ccma_threads_per_block
>>>
();
gpu
->
psCcmaConverged
->
Download
();
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
])
if
((
*
gpu
->
psCcmaConverged
)[
0
])
break
;
break
;
kUpdateCCMAAtomPositions
<<<
gpu
->
sim
.
blocks
,
gpu
->
sim
.
ccma_threads_per_block
>>>
(
posq
,
i
);
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