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
6fb1c8a4
Unverified
Commit
6fb1c8a4
authored
Apr 09, 2022
by
Peter Eastman
Committed by
GitHub
Apr 09, 2022
Browse files
Fixed race condition with multiple GPUs (#3560)
parent
4479ffae
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
platforms/cuda/src/CudaParallelKernels.cpp
platforms/cuda/src/CudaParallelKernels.cpp
+1
-0
No files found.
platforms/cuda/src/CudaParallelKernels.cpp
View file @
6fb1c8a4
...
@@ -231,6 +231,7 @@ void CudaParallelCalcForcesAndEnergyKernel::beginComputation(ContextImpl& contex
...
@@ -231,6 +231,7 @@ void CudaParallelCalcForcesAndEnergyKernel::beginComputation(ContextImpl& contex
CUevent
waitEvent
=
(
cu
.
getPlatformData
().
peerAccessSupported
?
peerCopyEvent
[
i
]
:
event
);
CUevent
waitEvent
=
(
cu
.
getPlatformData
().
peerAccessSupported
?
peerCopyEvent
[
i
]
:
event
);
thread
.
addTask
(
new
BeginComputationTask
(
context
,
cu
,
getKernel
(
i
),
includeForce
,
includeEnergy
,
groups
,
pinnedPositionBuffer
,
waitEvent
,
interactionCounts
[
i
]));
thread
.
addTask
(
new
BeginComputationTask
(
context
,
cu
,
getKernel
(
i
),
includeForce
,
includeEnergy
,
groups
,
pinnedPositionBuffer
,
waitEvent
,
interactionCounts
[
i
]));
}
}
data
.
syncContexts
();
}
}
double
CudaParallelCalcForcesAndEnergyKernel
::
finishComputation
(
ContextImpl
&
context
,
bool
includeForce
,
bool
includeEnergy
,
int
groups
,
bool
&
valid
)
{
double
CudaParallelCalcForcesAndEnergyKernel
::
finishComputation
(
ContextImpl
&
context
,
bool
includeForce
,
bool
includeEnergy
,
int
groups
,
bool
&
valid
)
{
...
...
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