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
064cee2f
Unverified
Commit
064cee2f
authored
Sep 25, 2025
by
Peter Eastman
Committed by
GitHub
Sep 25, 2025
Browse files
Fix compilation error on CUDA 13 (#5092)
parent
3076825e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
platforms/cuda/src/CudaContext.cpp
platforms/cuda/src/CudaContext.cpp
+7
-1
No files found.
platforms/cuda/src/CudaContext.cpp
View file @
064cee2f
...
@@ -142,7 +142,13 @@ CudaContext::CudaContext(const System& system, int deviceIndex, bool useBlocking
...
@@ -142,7 +142,13 @@ CudaContext::CudaContext(const System& system, int deviceIndex, bool useBlocking
else
else
flags
+=
CU_CTX_SCHED_SPIN
;
flags
+=
CU_CTX_SCHED_SPIN
;
if
(
cuCtxCreate
(
&
context
,
flags
,
device
)
==
CUDA_SUCCESS
)
{
#if CUDA_VERSION < 13000
CUresult
result
=
cuCtxCreate
(
&
context
,
flags
,
device
);
#else
CUctxCreateParams
params
=
{};
CUresult
result
=
cuCtxCreate
(
&
context
,
&
params
,
flags
,
device
);
#endif
if
(
result
==
CUDA_SUCCESS
)
{
this
->
deviceIndex
=
trialDeviceIndex
;
this
->
deviceIndex
=
trialDeviceIndex
;
CUcontext
popped
;
CUcontext
popped
;
cuCtxPopCurrent
(
&
popped
);
cuCtxPopCurrent
(
&
popped
);
...
...
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