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
8a83a2fb
Commit
8a83a2fb
authored
Apr 08, 2009
by
Peter Eastman
Browse files
Fixed thread synchronization problem in LINCS kernel
parent
306d99e8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
platforms/cuda/src/kernels/kLincs.cu
platforms/cuda/src/kernels/kLincs.cu
+2
-1
No files found.
platforms/cuda/src/kernels/kLincs.cu
View file @
8a83a2fb
...
...
@@ -184,6 +184,7 @@ __global__ void kApplyLincs_kernel(float4* atomPositions, bool addOldPosition)
kSolveMatrix_kernel
(
cSim
.
pSyncCounter
+
1
);
kUpdateAtomPositions_kernel
(
atomPositions
);
kSyncAllThreads_kernel
(
cSim
.
pSyncCounter
+
cSim
.
lincsTerms
+
1
);
// Correct for rotational lengthening.
...
...
@@ -217,7 +218,7 @@ __global__ void kApplyLincs_kernel(float4* atomPositions, bool addOldPosition)
// Solve the matrix equation and update the atom positions.
kSolveMatrix_kernel
(
cSim
.
pSyncCounter
+
cSim
.
lincsTerms
+
1
);
kSolveMatrix_kernel
(
cSim
.
pSyncCounter
+
cSim
.
lincsTerms
+
2
);
kUpdateAtomPositions_kernel
(
atomPositions
);
}
...
...
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