Skip to content

Commit bef98c9

Browse files
authored
[UR][Offload] Support UR_DEVICE_INFO_MAX_WORK_ITEM_DIMENSIONS (#18953)
Hardcoded to 3 because Offlod doesn't support higher dimensions.
1 parent 4d64e2a commit bef98c9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

unified-runtime/source/adapters/offload/device.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ UR_APIEXPORT ur_result_t UR_APICALL urDeviceGetInfo(ur_device_handle_t hDevice,
7474
case UR_DEVICE_INFO_REFERENCE_COUNT:
7575
// Devices are never allocated or freed
7676
return ReturnValue(uint32_t{1});
77+
case UR_DEVICE_INFO_MAX_WORK_ITEM_DIMENSIONS:
78+
return ReturnValue(uint32_t{3});
7779
// Unimplemented features
7880
case UR_DEVICE_INFO_PROGRAM_SET_SPECIALIZATION_CONSTANTS:
7981
case UR_DEVICE_INFO_GLOBAL_VARIABLE_SUPPORT:

0 commit comments

Comments
 (0)