Skip to content

Commit 33410b5

Browse files
committed
Changed to UR_RESULT_ERROR_UNSUPPORTED_ENUMERATION
Signed-off-by: Larsen, Steffen <[email protected]>
1 parent 763f528 commit 33410b5

File tree

4 files changed

+5
-11
lines changed

4 files changed

+5
-11
lines changed

source/adapters/cuda/device.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1077,8 +1077,6 @@ UR_APIEXPORT ur_result_t UR_APICALL urDeviceGetInfo(ur_device_handle_t hDevice,
10771077
return ReturnValue(false);
10781078
case UR_DEVICE_INFO_COMPONENT_DEVICES:
10791079
case UR_DEVICE_INFO_COMPOSITE_DEVICE:
1080-
// These two are exclusive of L0.
1081-
return UR_RESULT_ERROR_UNSUPPORTED_FEATURE;
10821080
case UR_DEVICE_INFO_MAX_READ_WRITE_IMAGE_ARGS:
10831081
case UR_DEVICE_INFO_GPU_EU_COUNT:
10841082
case UR_DEVICE_INFO_GPU_EU_SIMD_WIDTH:

source/adapters/hip/device.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -846,14 +846,12 @@ UR_APIEXPORT ur_result_t UR_APICALL urDeviceGetInfo(ur_device_handle_t hDevice,
846846
return ReturnValue(false);
847847
case UR_DEVICE_INFO_ESIMD_SUPPORT:
848848
return ReturnValue(false);
849-
case UR_DEVICE_INFO_COMPONENT_DEVICES:
850-
case UR_DEVICE_INFO_COMPOSITE_DEVICE:
851-
// These two are exclusive of L0.
852-
return UR_RESULT_ERROR_UNSUPPORTED_FEATURE;
853849
case UR_DEVICE_INFO_TIMESTAMP_RECORDING_SUPPORT_EXP:
854850
return ReturnValue(true);
855851

856852
// TODO: Investigate if this information is available on HIP.
853+
case UR_DEVICE_INFO_COMPONENT_DEVICES:
854+
case UR_DEVICE_INFO_COMPOSITE_DEVICE:
857855
case UR_DEVICE_INFO_GPU_EU_COUNT:
858856
case UR_DEVICE_INFO_GPU_EU_SIMD_WIDTH:
859857
case UR_DEVICE_INFO_GPU_EU_SLICES:

source/adapters/native_cpu/device.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urDeviceGetInfo(ur_device_handle_t hDevice,
312312
case UR_DEVICE_INFO_COMPONENT_DEVICES:
313313
case UR_DEVICE_INFO_COMPOSITE_DEVICE:
314314
// These two are exclusive of L0.
315-
return UR_RESULT_ERROR_UNSUPPORTED_FEATURE;
315+
return UR_RESULT_ERROR_UNSUPPORTED_ENUMERATION;
316316

317317
CASE_UR_UNSUPPORTED(UR_DEVICE_INFO_MAX_MEMORY_BANDWIDTH);
318318
case UR_DEVICE_INFO_VIRTUAL_MEMORY_SUPPORT:

source/adapters/opencl/device.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -963,14 +963,12 @@ UR_APIEXPORT ur_result_t UR_APICALL urDeviceGetInfo(ur_device_handle_t hDevice,
963963
return ReturnValue(UUID);
964964
}
965965

966-
case UR_DEVICE_INFO_COMPONENT_DEVICES:
967-
case UR_DEVICE_INFO_COMPOSITE_DEVICE:
968-
// These two are exclusive of L0.
969-
return UR_RESULT_ERROR_UNSUPPORTED_FEATURE;
970966
/* TODO: Check regularly to see if support is enabled in OpenCL. Intel GPU
971967
* EU device-specific information extensions. Some of the queries are
972968
* enabled by cl_intel_device_attribute_query extension, but it's not yet in
973969
* the Registry. */
970+
case UR_DEVICE_INFO_COMPONENT_DEVICES:
971+
case UR_DEVICE_INFO_COMPOSITE_DEVICE:
974972
case UR_DEVICE_INFO_PCI_ADDRESS:
975973
case UR_DEVICE_INFO_GPU_EU_COUNT:
976974
case UR_DEVICE_INFO_GPU_EU_SIMD_WIDTH:

0 commit comments

Comments
 (0)