Skip to content

Commit 01af560

Browse files
authored
Merge pull request #1809 from nrspruit/fix_l0_ur_deviceinfo
[L0] Fix Device Info return code to report unsupported enumeration
2 parents 20844dd + ad3befd commit 01af560

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

source/adapters/level_zero/device.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -804,7 +804,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urDeviceGetInfo(
804804
return ReturnValue(uint32_t{Device->ZeDeviceProperties->numThreadsPerEU});
805805
case UR_DEVICE_INFO_MAX_MEMORY_BANDWIDTH:
806806
// currently not supported in level zero runtime
807-
return UR_RESULT_ERROR_INVALID_VALUE;
807+
return UR_RESULT_ERROR_UNSUPPORTED_ENUMERATION;
808808
case UR_DEVICE_INFO_BFLOAT16: {
809809
// bfloat16 math functions are not yet supported on Intel GPUs.
810810
return ReturnValue(ur_bool_t{false});
@@ -997,7 +997,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urDeviceGetInfo(
997997
logger::error("Unsupported ParamName in urGetDeviceInfo");
998998
logger::error("ParamNameParamName={}(0x{})", ParamName,
999999
logger::toHex(ParamName));
1000-
return UR_RESULT_ERROR_INVALID_VALUE;
1000+
return UR_RESULT_ERROR_UNSUPPORTED_ENUMERATION;
10011001
}
10021002

10031003
return UR_RESULT_SUCCESS;
Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
11
urDeviceCreateWithNativeHandleTest.SuccessWithUnOwnedNativeHandle
22
{{OPT}}urDeviceGetGlobalTimestampTest.SuccessSynchronizedTime
33
urDeviceGetInfoTest.Success/UR_DEVICE_INFO_GLOBAL_MEM_FREE
4-
urDeviceGetInfoTest.Success/UR_DEVICE_INFO_MAX_MEMORY_BANDWIDTH
5-
urDeviceGetInfoTest.Success/UR_DEVICE_INFO_ASYNC_BARRIER
6-
urDeviceGetInfoTest.Success/UR_DEVICE_INFO_HOST_PIPE_READ_WRITE_SUPPORTED
7-
urDeviceGetInfoTest.Success/UR_DEVICE_INFO_MAX_REGISTERS_PER_WORK_GROUP

0 commit comments

Comments
 (0)