Skip to content

Commit e865a18

Browse files
committed
Add a DeviceGetInfo test for DEVICE_INFO_KERNEL_SET_SPECIALIZATION_CONSTANTS
1 parent 41228d3 commit e865a18

File tree

4 files changed

+10
-2
lines changed

4 files changed

+10
-2
lines changed

source/adapters/hip/device.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -819,6 +819,8 @@ UR_APIEXPORT ur_result_t UR_APICALL urDeviceGetInfo(ur_device_handle_t hDevice,
819819
return ReturnValue(false);
820820
case UR_DEVICE_INFO_ESIMD_SUPPORT:
821821
return ReturnValue(false);
822+
case UR_DEVICE_INFO_KERNEL_SET_SPECIALIZATION_CONSTANTS:
823+
return ReturnValue(false);
822824

823825
// TODO: Investigate if this information is available on HIP.
824826
case UR_DEVICE_INFO_GPU_EU_COUNT:

source/adapters/level_zero/device.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -800,6 +800,9 @@ UR_APIEXPORT ur_result_t UR_APICALL urDeviceGetInfo(
800800
return ReturnValue(result);
801801
}
802802

803+
case UR_DEVICE_INFO_KERNEL_SET_SPECIALIZATION_CONSTANTS:
804+
return ReturnValue(false);
805+
803806
default:
804807
urPrint("Unsupported ParamName in urGetDeviceInfo\n");
805808
urPrint("ParamName=%d(0x%x)\n", ParamName, ParamName);

source/adapters/opencl/device.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -820,7 +820,6 @@ UR_APIEXPORT ur_result_t UR_APICALL urDeviceGetInfo(ur_device_handle_t hDevice,
820820
case UR_DEVICE_INFO_COMPILER_AVAILABLE:
821821
case UR_DEVICE_INFO_LINKER_AVAILABLE:
822822
case UR_DEVICE_INFO_PREFERRED_INTEROP_USER_SYNC:
823-
case UR_DEVICE_INFO_KERNEL_SET_SPECIALIZATION_CONSTANTS:
824823
case UR_DEVICE_INFO_SUB_GROUP_INDEPENDENT_FORWARD_PROGRESS: {
825824
/* CL type: cl_bool
826825
* UR type: ur_bool_t */
@@ -927,6 +926,9 @@ UR_APIEXPORT ur_result_t UR_APICALL urDeviceGetInfo(ur_device_handle_t hDevice,
927926
* EU device-specific information extensions. Some of the queries are
928927
* enabled by cl_intel_device_attribute_query extension, but it's not yet in
929928
* the Registry. */
929+
case UR_DEVICE_INFO_KERNEL_SET_SPECIALIZATION_CONSTANTS: {
930+
return ReturnValue(false);
931+
}
930932
case UR_DEVICE_INFO_PCI_ADDRESS:
931933
case UR_DEVICE_INFO_GPU_EU_COUNT:
932934
case UR_DEVICE_INFO_GPU_EU_SIMD_WIDTH:

test/conformance/device/urDeviceGetInfo.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,8 @@ INSTANTIATE_TEST_SUITE_P(
232232
UR_DEVICE_INFO_MEM_CHANNEL_SUPPORT, //
233233
UR_DEVICE_INFO_HOST_PIPE_READ_WRITE_SUPPORTED, //
234234
UR_DEVICE_INFO_MAX_REGISTERS_PER_WORK_GROUP, //
235-
UR_DEVICE_INFO_VIRTUAL_MEMORY_SUPPORT //
235+
UR_DEVICE_INFO_VIRTUAL_MEMORY_SUPPORT, //
236+
UR_DEVICE_INFO_KERNEL_SET_SPECIALIZATION_CONSTANTS //
236237
),
237238
[](const ::testing::TestParamInfo<ur_device_info_t> &info) {
238239
std::stringstream ss;

0 commit comments

Comments
 (0)