Skip to content

Commit 646cc9c

Browse files
committed
Add a DeviceGetInfo test for DEVICE_INFO_KERNEL_SET_SPECIALIZATION_CONSTANTS
1 parent e0e7e91 commit 646cc9c

File tree

5 files changed

+7
-10
lines changed

5 files changed

+7
-10
lines changed

source/adapters/level_zero/device.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -987,6 +987,8 @@ UR_APIEXPORT ur_result_t UR_APICALL urDeviceGetInfo(
987987
case UR_DEVICE_INFO_INTEROP_MEMORY_EXPORT_SUPPORT_EXP:
988988
case UR_DEVICE_INFO_INTEROP_SEMAPHORE_IMPORT_SUPPORT_EXP:
989989
case UR_DEVICE_INFO_INTEROP_SEMAPHORE_EXPORT_SUPPORT_EXP:
990+
case UR_DEVICE_INFO_KERNEL_SET_SPECIALIZATION_CONSTANTS:
991+
return ReturnValue(false);
990992
default:
991993
logger::error("Unsupported ParamName in urGetDeviceInfo");
992994
logger::error("ParamNameParamName={}(0x{})", ParamName,

source/adapters/opencl/device.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -845,7 +845,6 @@ UR_APIEXPORT ur_result_t UR_APICALL urDeviceGetInfo(ur_device_handle_t hDevice,
845845
case UR_DEVICE_INFO_COMPILER_AVAILABLE:
846846
case UR_DEVICE_INFO_LINKER_AVAILABLE:
847847
case UR_DEVICE_INFO_PREFERRED_INTEROP_USER_SYNC:
848-
case UR_DEVICE_INFO_KERNEL_SET_SPECIALIZATION_CONSTANTS:
849848
case UR_DEVICE_INFO_SUB_GROUP_INDEPENDENT_FORWARD_PROGRESS: {
850849
/* CL type: cl_bool
851850
* UR type: ur_bool_t */
@@ -978,6 +977,9 @@ UR_APIEXPORT ur_result_t UR_APICALL urDeviceGetInfo(ur_device_handle_t hDevice,
978977
return ReturnValue(UUID);
979978
}
980979

980+
case UR_DEVICE_INFO_KERNEL_SET_SPECIALIZATION_CONSTANTS: {
981+
return ReturnValue(false);
982+
}
981983
/* TODO: Check regularly to see if support is enabled in OpenCL. Intel GPU
982984
* EU device-specific information extensions. Some of the queries are
983985
* enabled by cl_intel_device_attribute_query extension, but it's not yet in

test/conformance/device/urDeviceGetInfo.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,8 @@ INSTANTIATE_TEST_SUITE_P(
235235
UR_DEVICE_INFO_MEM_CHANNEL_SUPPORT, //
236236
UR_DEVICE_INFO_HOST_PIPE_READ_WRITE_SUPPORTED, //
237237
UR_DEVICE_INFO_MAX_REGISTERS_PER_WORK_GROUP, //
238-
UR_DEVICE_INFO_VIRTUAL_MEMORY_SUPPORT //
238+
UR_DEVICE_INFO_VIRTUAL_MEMORY_SUPPORT, //
239+
UR_DEVICE_INFO_KERNEL_SET_SPECIALIZATION_CONSTANTS //
239240
),
240241
[](const ::testing::TestParamInfo<ur_device_info_t> &info) {
241242
std::stringstream ss;

test/conformance/kernel/kernel_adapter_level_zero.match

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,3 @@ urKernelSetExecInfoTest.SuccessIndirectAccess/Intel_R__oneAPI_Unified_Runtime_ov
99
urKernelSetExecInfoUSMPointersTest.SuccessHost/Intel_R__oneAPI_Unified_Runtime_over_Level_Zero___{{.*}}_
1010
urKernelSetExecInfoUSMPointersTest.SuccessDevice/Intel_R__oneAPI_Unified_Runtime_over_Level_Zero___{{.*}}_
1111
urKernelSetExecInfoUSMPointersTest.SuccessShared/Intel_R__oneAPI_Unified_Runtime_over_Level_Zero___{{.*}}_
12-
urKernelSetSpecializationConstantsTest.Success/Intel_R__oneAPI_Unified_Runtime_over_Level_Zero___{{.*}}_
13-
urKernelSetSpecializationConstantsTest.InvalidNullHandleKernel/Intel_R__oneAPI_Unified_Runtime_over_Level_Zero___{{.*}}_
14-
urKernelSetSpecializationConstantsTest.InvalidNullPointerSpecConstants/Intel_R__oneAPI_Unified_Runtime_over_Level_Zero___{{.*}}_
15-
urKernelSetSpecializationConstantsTest.InvalidSizeCount/Intel_R__oneAPI_Unified_Runtime_over_Level_Zero___{{.*}}_
Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1 @@
11
urKernelSetArgValueTest.InvalidKernelArgumentSize/Intel_R__OpenCL___{{.*}}
2-
urKernelSetSpecializationConstantsTest.Success/Intel_R__OpenCL___{{.*}}
3-
urKernelSetSpecializationConstantsTest.InvalidNullHandleKernel/Intel_R__OpenCL___{{.*}}
4-
urKernelSetSpecializationConstantsTest.InvalidNullPointerSpecConstants/Intel_R__OpenCL___{{.*}}
5-
urKernelSetSpecializationConstantsTest.InvalidSizeCount/Intel_R__OpenCL___{{.*}}

0 commit comments

Comments
 (0)