File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -553,7 +553,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urEnqueueKernelLaunchCustomExp(
553
553
pLocalWorkSize, numEventsInWaitList, phEventWaitList,
554
554
phEvent);
555
555
}
556
-
556
+ # if CUDA_VERSION >= 11080
557
557
// Preconditions
558
558
UR_ASSERT (hQueue->getDevice () == hKernel->getProgram ()->getDevice (),
559
559
UR_RESULT_ERROR_INVALID_KERNEL);
@@ -722,6 +722,11 @@ UR_APIEXPORT ur_result_t UR_APICALL urEnqueueKernelLaunchCustomExp(
722
722
return Err;
723
723
}
724
724
return UR_RESULT_SUCCESS;
725
+ #else
726
+ setErrorMessage (" This feature requires cuda 11.8 or later." ,
727
+ UR_RESULT_ERROR_ADAPTER_SPECIFIC);
728
+ return UR_RESULT_ERROR_ADAPTER_SPECIFIC;
729
+ #endif // CUDA_VERSION >= 11080
725
730
}
726
731
727
732
// / Set parameters for general 3D memory copy.
You can’t perform that action at this time.
0 commit comments