Skip to content

Commit 741e172

Browse files
committed
Fail all UR_APICALL urEnqueueKernelLaunch()
1 parent 5f80c94 commit 741e172

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

unified-runtime/source/adapters/cuda/enqueue.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -459,6 +459,8 @@ UR_APIEXPORT ur_result_t UR_APICALL urEnqueueKernelLaunch(
459459
uint32_t numEventsInWaitList, const ur_event_handle_t *phEventWaitList,
460460
ur_event_handle_t *phEvent) {
461461

462+
return UR_RESULT_ERROR_UNSUPPORTED_FEATURE;
463+
462464
size_t WorkGroupMemory = 0;
463465
uint32_t numPropsInLaunchPropList = 0;
464466

unified-runtime/source/adapters/opencl/enqueue.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ UR_APIEXPORT ur_result_t UR_APICALL urEnqueueKernelLaunch(
5151
uint32_t numEventsInWaitList, const ur_event_handle_t *phEventWaitList,
5252
ur_event_handle_t *phEvent) {
5353

54+
return UR_RESULT_ERROR_UNSUPPORTED_FEATURE;
55+
5456
ur_kernel_launch_ext_properties_t *_launchPropList =
5557
const_cast<ur_kernel_launch_ext_properties_t *>(launchPropList);
5658
// Adapters that don't support cooperative kernels are currently expected

0 commit comments

Comments
 (0)