Skip to content

Commit feecd11

Browse files
committed
Add a DeviceGetInfo test for DEVICE_INFO_KERNEL_SET_SPECIALIZATION_CONSTANTS
1 parent d9a0421 commit feecd11

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
@@ -827,6 +827,8 @@ UR_APIEXPORT ur_result_t UR_APICALL urDeviceGetInfo(ur_device_handle_t hDevice,
827827
case UR_DEVICE_INFO_COMPOSITE_DEVICE:
828828
// These two are exclusive of L0.
829829
return ReturnValue(0);
830+
case UR_DEVICE_INFO_KERNEL_SET_SPECIALIZATION_CONSTANTS:
831+
return ReturnValue(false);
830832

831833
// TODO: Investigate if this information is available on HIP.
832834
case UR_DEVICE_INFO_GPU_EU_COUNT:

source/adapters/level_zero/device.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -915,6 +915,8 @@ UR_APIEXPORT ur_result_t UR_APICALL urDeviceGetInfo(
915915
return ze2urResult(errc);
916916
return ReturnValue(UrRootDev);
917917
}
918+
case UR_DEVICE_INFO_KERNEL_SET_SPECIALIZATION_CONSTANTS:
919+
return ReturnValue(false);
918920

919921
default:
920922
urPrint("Unsupported ParamName in urGetDeviceInfo\n");

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 */
@@ -931,6 +930,9 @@ UR_APIEXPORT ur_result_t UR_APICALL urDeviceGetInfo(ur_device_handle_t hDevice,
931930
* EU device-specific information extensions. Some of the queries are
932931
* enabled by cl_intel_device_attribute_query extension, but it's not yet in
933932
* the Registry. */
933+
case UR_DEVICE_INFO_KERNEL_SET_SPECIALIZATION_CONSTANTS: {
934+
return ReturnValue(false);
935+
}
934936
case UR_DEVICE_INFO_PCI_ADDRESS:
935937
case UR_DEVICE_INFO_GPU_EU_COUNT:
936938
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
@@ -234,7 +234,8 @@ INSTANTIATE_TEST_SUITE_P(
234234
UR_DEVICE_INFO_MEM_CHANNEL_SUPPORT, //
235235
UR_DEVICE_INFO_HOST_PIPE_READ_WRITE_SUPPORTED, //
236236
UR_DEVICE_INFO_MAX_REGISTERS_PER_WORK_GROUP, //
237-
UR_DEVICE_INFO_VIRTUAL_MEMORY_SUPPORT //
237+
UR_DEVICE_INFO_VIRTUAL_MEMORY_SUPPORT, //
238+
UR_DEVICE_INFO_KERNEL_SET_SPECIALIZATION_CONSTANTS //
238239
),
239240
[](const ::testing::TestParamInfo<ur_device_info_t> &info) {
240241
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
@@ -12,7 +12,3 @@ urKernelSetExecInfoTest.SuccessIndirectAccess/Intel_R__oneAPI_Unified_Runtime_ov
1212
urKernelSetExecInfoUSMPointersTest.SuccessHost/Intel_R__oneAPI_Unified_Runtime_over_Level_Zero___{{.*}}_
1313
urKernelSetExecInfoUSMPointersTest.SuccessDevice/Intel_R__oneAPI_Unified_Runtime_over_Level_Zero___{{.*}}_
1414
urKernelSetExecInfoUSMPointersTest.SuccessShared/Intel_R__oneAPI_Unified_Runtime_over_Level_Zero___{{.*}}_
15-
urKernelSetSpecializationConstantsTest.Success/Intel_R__oneAPI_Unified_Runtime_over_Level_Zero___{{.*}}_
16-
urKernelSetSpecializationConstantsTest.InvalidNullHandleKernel/Intel_R__oneAPI_Unified_Runtime_over_Level_Zero___{{.*}}_
17-
urKernelSetSpecializationConstantsTest.InvalidNullPointerSpecConstants/Intel_R__oneAPI_Unified_Runtime_over_Level_Zero___{{.*}}_
18-
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)