Skip to content

Commit 7ca370d

Browse files
committed
Fix formatting, use CUDA_VERSION instead of CUDART_VERSION
1 parent 3fd39f3 commit 7ca370d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

source/adapters/cuda/command_buffer.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,12 +140,13 @@ urCommandBufferReleaseExp(ur_exp_command_buffer_handle_t hCommandBuffer) {
140140
UR_APIEXPORT ur_result_t UR_APICALL
141141
urCommandBufferFinalizeExp(ur_exp_command_buffer_handle_t hCommandBuffer) {
142142
try {
143-
#if CUDART_VERSION >= 12000
143+
#if CUDA_VERSION >= 12000
144144
UR_CHECK_ERROR(cuGraphInstantiate(&hCommandBuffer->CudaGraphExec,
145145
hCommandBuffer->CudaGraph, 0));
146146
#else
147147
UR_CHECK_ERROR(cuGraphInstantiate(&hCommandBuffer->CudaGraphExec,
148-
hCommandBuffer->CudaGraph, nullptr, nullptr, 0));
148+
hCommandBuffer->CudaGraph, nullptr,
149+
nullptr, 0));
149150
#endif
150151
} catch (...) {
151152
return UR_RESULT_ERROR_UNKNOWN;

0 commit comments

Comments
 (0)