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
bda67c67
Unverified
Commit
bda67c67
authored
Mar 04, 2025
by
Peter Eastman
Committed by
GitHub
Mar 04, 2025
Browse files
Fixed exception from re-enabling peer-to-peer access (#4825)
parent
862e6ac7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
platforms/cuda/src/CudaContext.cpp
platforms/cuda/src/CudaContext.cpp
+1
-1
platforms/hip/src/HipContext.cpp
platforms/hip/src/HipContext.cpp
+1
-1
No files found.
platforms/cuda/src/CudaContext.cpp
View file @
bda67c67
...
...
@@ -189,7 +189,7 @@ CudaContext::CudaContext(const System& system, int deviceIndex, bool useBlocking
contextIsValid
=
true
;
ContextSelector
selector
(
*
this
);
CHECK_RESULT
(
cuCtxSetCacheConfig
(
CU_FUNC_CACHE_PREFER_SHARED
));
if
(
contextIndex
>
0
)
{
if
(
contextIndex
>
0
&&
originalContext
==
NULL
)
{
int
canAccess
;
cuDeviceCanAccessPeer
(
&
canAccess
,
getDevice
(),
platformData
.
contexts
[
0
]
->
getDevice
());
if
(
canAccess
)
{
...
...
platforms/hip/src/HipContext.cpp
View file @
bda67c67
...
...
@@ -181,7 +181,7 @@ HipContext::HipContext(const System& system, int deviceIndex, bool useBlockingSy
contextIsValid
=
true
;
ContextSelector
selector
(
*
this
);
if
(
contextIndex
>
0
)
{
if
(
contextIndex
>
0
&&
originalContext
==
NULL
)
{
int
canAccess
;
CHECK_RESULT
(
hipDeviceCanAccessPeer
(
&
canAccess
,
getDevice
(),
platformData
.
contexts
[
0
]
->
getDevice
()));
if
(
canAccess
)
{
...
...
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