Skip to content

Commit 8aee753

Browse files
authored
[UR] Remove unused UR_EXT_DEVICE_INFO_OPENCL_C_VERSION (#19069)
This query isn't accessible publicly, removing it has not caused any test failures.
1 parent 53cfc90 commit 8aee753

File tree

6 files changed

+1
-22
lines changed

6 files changed

+1
-22
lines changed

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -607,9 +607,6 @@ UR_APIEXPORT ur_result_t UR_APICALL urDeviceGetInfo(ur_device_handle_t hDevice,
607607
SS << "." << Minor;
608608
return ReturnValue(SS.str().c_str());
609609
}
610-
case UR_EXT_DEVICE_INFO_OPENCL_C_VERSION: {
611-
return ReturnValue("");
612-
}
613610
case UR_DEVICE_INFO_EXTENSIONS: {
614611
std::string SupportedExtensions = "cl_khr_fp64 ";
615612

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -493,9 +493,6 @@ UR_APIEXPORT ur_result_t UR_APICALL urDeviceGetInfo(ur_device_handle_t hDevice,
493493
#endif
494494
return ReturnValue(S.str().c_str());
495495
}
496-
case UR_EXT_DEVICE_INFO_OPENCL_C_VERSION: {
497-
return ReturnValue("");
498-
}
499496
case UR_DEVICE_INFO_EXTENSIONS: {
500497
std::string SupportedExtensions = "";
501498

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -514,8 +514,6 @@ ur_result_t urDeviceGetInfo(
514514
return ReturnValue(*Device->SubDeviceCreationProperty);
515515
}
516516
// Everything under here is not supported yet
517-
case UR_EXT_DEVICE_INFO_OPENCL_C_VERSION:
518-
return ReturnValue("");
519517
case UR_DEVICE_INFO_PREFERRED_INTEROP_USER_SYNC:
520518
return ReturnValue(static_cast<ur_bool_t>(true));
521519
case UR_DEVICE_INFO_PRINTF_BUFFER_SIZE:

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,8 +214,6 @@ UR_APIEXPORT ur_result_t UR_APICALL urDeviceGetInfo(ur_device_handle_t hDevice,
214214
*pPropSizeRet = 0;
215215
}
216216
return UR_RESULT_SUCCESS;
217-
case UR_EXT_DEVICE_INFO_OPENCL_C_VERSION:
218-
return ReturnValue("");
219217
case UR_DEVICE_INFO_QUEUE_PROPERTIES:
220218
return ReturnValue(
221219
ur_queue_flag_t(UR_QUEUE_FLAG_OUT_OF_ORDER_EXEC_MODE_ENABLE |

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

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1183,13 +1183,6 @@ UR_APIEXPORT ur_result_t UR_APICALL urDeviceGetInfo(ur_device_handle_t hDevice,
11831183

11841184
return UR_RESULT_SUCCESS;
11851185
}
1186-
case UR_EXT_DEVICE_INFO_OPENCL_C_VERSION: {
1187-
CL_RETURN_ON_FAILURE(clGetDeviceInfo(hDevice->CLDevice,
1188-
CL_DEVICE_OPENCL_C_VERSION, propSize,
1189-
pPropValue, pPropSizeRet));
1190-
1191-
return UR_RESULT_SUCCESS;
1192-
}
11931186
case UR_DEVICE_INFO_BUILT_IN_KERNELS: {
11941187
CL_RETURN_ON_FAILURE(clGetDeviceInfo(hDevice->CLDevice,
11951188
CL_DEVICE_BUILT_IN_KERNELS, propSize,

unified-runtime/source/ur/ur.hpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,7 @@ template <> uint32_t inline ur_cast(uint64_t Value) {
8181
return CastedValue;
8282
}
8383

84-
// TODO: promote all of the below extensions to the Unified Runtime
85-
// and get rid of these ZER_EXT constants.
86-
const ur_device_info_t UR_EXT_DEVICE_INFO_OPENCL_C_VERSION =
87-
(ur_device_info_t)0x103D;
88-
84+
// TODO: Promote the below extensions to the Unified Runtime?
8985
const ur_command_t UR_EXT_COMMAND_TYPE_USER =
9086
(ur_command_t)((uint32_t)UR_COMMAND_FORCE_UINT32 - 1);
9187

0 commit comments

Comments
 (0)