Skip to content

Commit e66d5bc

Browse files
committed
Merge branch 'aaron/testKernelSetSpecQuery' into aaron/specMotivatedRefactors
2 parents d829e84 + a4b9724 commit e66d5bc

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

source/adapters/hip/device.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -823,6 +823,8 @@ UR_APIEXPORT ur_result_t UR_APICALL urDeviceGetInfo(ur_device_handle_t hDevice,
823823
return ReturnValue(false);
824824
case UR_DEVICE_INFO_ESIMD_SUPPORT:
825825
return ReturnValue(false);
826+
case UR_DEVICE_INFO_KERNEL_SET_SPECIALIZATION_CONSTANTS:
827+
return ReturnValue(false);
826828

827829
// TODO: Investigate if this information is available on HIP.
828830
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
@@ -823,6 +823,9 @@ UR_APIEXPORT ur_result_t UR_APICALL urDeviceGetInfo(
823823
return ReturnValue(result);
824824
}
825825

826+
case UR_DEVICE_INFO_KERNEL_SET_SPECIALIZATION_CONSTANTS:
827+
return ReturnValue(false);
828+
826829
default:
827830
urPrint("Unsupported ParamName in urGetDeviceInfo\n");
828831
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;

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)