Skip to content

Commit 815ea0a

Browse files
committed
Add a DeviceGetInfo test for DEVICE_INFO_KERNEL_SET_SPECIALIZATION_CONSTANTS
1 parent 8ca959f commit 815ea0a

File tree

6 files changed

+9
-10
lines changed

6 files changed

+9
-10
lines changed

source/adapters/hip/device.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -881,6 +881,8 @@ UR_APIEXPORT ur_result_t UR_APICALL urDeviceGetInfo(ur_device_handle_t hDevice,
881881
return ReturnValue(false);
882882
case UR_DEVICE_INFO_TIMESTAMP_RECORDING_SUPPORT_EXP:
883883
return ReturnValue(true);
884+
case UR_DEVICE_INFO_KERNEL_SET_SPECIALIZATION_CONSTANTS:
885+
return ReturnValue(false);
884886

885887
// TODO: Investigate if this information is available on HIP.
886888
case UR_DEVICE_INFO_COMPONENT_DEVICES:

source/adapters/level_zero/device.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -983,6 +983,8 @@ UR_APIEXPORT ur_result_t UR_APICALL urDeviceGetInfo(
983983
case UR_DEVICE_INFO_INTEROP_MEMORY_EXPORT_SUPPORT_EXP:
984984
case UR_DEVICE_INFO_INTEROP_SEMAPHORE_IMPORT_SUPPORT_EXP:
985985
case UR_DEVICE_INFO_INTEROP_SEMAPHORE_EXPORT_SUPPORT_EXP:
986+
case UR_DEVICE_INFO_KERNEL_SET_SPECIALIZATION_CONSTANTS:
987+
return ReturnValue(false);
986988
default:
987989
logger::error("Unsupported ParamName in urGetDeviceInfo");
988990
logger::error("ParamNameParamName={}(0x{})", ParamName,

source/adapters/opencl/device.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -842,7 +842,6 @@ UR_APIEXPORT ur_result_t UR_APICALL urDeviceGetInfo(ur_device_handle_t hDevice,
842842
case UR_DEVICE_INFO_COMPILER_AVAILABLE:
843843
case UR_DEVICE_INFO_LINKER_AVAILABLE:
844844
case UR_DEVICE_INFO_PREFERRED_INTEROP_USER_SYNC:
845-
case UR_DEVICE_INFO_KERNEL_SET_SPECIALIZATION_CONSTANTS:
846845
case UR_DEVICE_INFO_SUB_GROUP_INDEPENDENT_FORWARD_PROGRESS: {
847846
/* CL type: cl_bool
848847
* UR type: ur_bool_t */
@@ -975,6 +974,9 @@ UR_APIEXPORT ur_result_t UR_APICALL urDeviceGetInfo(ur_device_handle_t hDevice,
975974
return ReturnValue(UUID);
976975
}
977976

977+
case UR_DEVICE_INFO_KERNEL_SET_SPECIALIZATION_CONSTANTS: {
978+
return ReturnValue(false);
979+
}
978980
/* TODO: Check regularly to see if support is enabled in OpenCL. Intel GPU
979981
* EU device-specific information extensions. Some of the queries are
980982
* 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)