Skip to content

Commit 9efadd2

Browse files
committed
Remove unneeded changes to device_traits.def, update ext_intel_device_traits.def luid to use HANDLED_IN_RT, remove unneeded EXPORT_GET_INFO and static_assert, regenerate ur_device_info_ret_types.inc using script and remove unneeded FileCheck
1 parent b49a6c6 commit 9efadd2

File tree

6 files changed

+5
-12
lines changed

6 files changed

+5
-12
lines changed

sycl/include/sycl/info/device_traits.def

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -237,9 +237,6 @@ __SYCL_PARAM_TRAITS_SPEC(device, ext_oneapi_max_work_groups_3d, id<3>,
237237
__SYCL_PARAM_TRAITS_SPEC(device, ext_oneapi_max_global_work_groups, size_t, __SYCL_TRAIT_HANDLED_IN_RT)
238238
__SYCL_PARAM_TRAITS_SPEC(device, ext_oneapi_cuda_cluster_group, bool, __SYCL_TRAIT_HANDLED_IN_RT)
239239

240-
__SYCL_PARAM_TRAITS_SPEC(device, ext_intel_device_info_luid, detail::luid_type,
241-
UR_DEVICE_INFO_LUID)
242-
243240
#ifdef __SYCL_PARAM_TRAITS_TEMPLATE_SPEC_NEEDS_UNDEF
244241
#undef __SYCL_PARAM_TRAITS_TEMPLATE_SPEC
245242
#undef __SYCL_PARAM_TRAITS_TEMPLATE_SPEC_NEEDS_UNDEF

sycl/include/sycl/info/ext_intel_device_traits.def

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ __SYCL_PARAM_TRAITS_SPEC(ext::intel, device, current_clock_throttle_reasons, std
2121
__SYCL_PARAM_TRAITS_SPEC(ext::intel, device, fan_speed, int32_t, UR_DEVICE_INFO_FAN_SPEED)
2222
__SYCL_PARAM_TRAITS_SPEC(ext::intel, device, min_power_limit, int32_t, UR_DEVICE_INFO_MIN_POWER_LIMIT)
2323
__SYCL_PARAM_TRAITS_SPEC(ext::intel, device, max_power_limit, int32_t, UR_DEVICE_INFO_MAX_POWER_LIMIT)
24-
__SYCL_PARAM_TRAITS_SPEC(ext::intel, device, luid, detail::luid_type, UR_DEVICE_INFO_LUID)
24+
__SYCL_PARAM_TRAITS_SPEC(ext::intel, device, luid, detail::luid_type, __SYCL_TRAIT_HANDLED_IN_RT)
2525
#ifdef __SYCL_PARAM_TRAITS_TEMPLATE_SPEC_NEEDS_UNDEF
2626
#undef __SYCL_PARAM_TRAITS_TEMPLATE_SPEC
2727
#undef __SYCL_PARAM_TRAITS_TEMPLATE_SPEC_NEEDS_UNDEF

sycl/source/detail/device_impl.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,6 @@ EXPORT_GET_INFO(ext::intel::info::device::current_clock_throttle_reasons)
510510
EXPORT_GET_INFO(ext::intel::info::device::fan_speed)
511511
EXPORT_GET_INFO(ext::intel::info::device::min_power_limit)
512512
EXPORT_GET_INFO(ext::intel::info::device::max_power_limit)
513-
EXPORT_GET_INFO(ext::intel::info::device::luid)
514513

515514
EXPORT_GET_INFO(ext::codeplay::experimental::info::device::supports_fusion)
516515
EXPORT_GET_INFO(ext::codeplay::experimental::info::device::max_registers_per_work_group)

sycl/source/detail/device_impl.hpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1200,8 +1200,6 @@ class device_impl : public std::enable_shared_from_this<device_impl> {
12001200
throw exception(
12011201
make_error_code(errc::feature_not_supported),
12021202
"The device does not have the ext_intel_device_info_luid aspect");
1203-
// TODO: we're essentially memcpy'ing here...
1204-
static_assert(std::is_same_v<luid_type, std::array<unsigned char, 8>>);
12051203
return get_info_impl<UR_DEVICE_INFO_LUID>();
12061204
}
12071205
else {
@@ -2325,7 +2323,6 @@ EXPORT_GET_INFO(ext::intel::info::device::current_clock_throttle_reasons)
23252323
EXPORT_GET_INFO(ext::intel::info::device::fan_speed)
23262324
EXPORT_GET_INFO(ext::intel::info::device::min_power_limit)
23272325
EXPORT_GET_INFO(ext::intel::info::device::max_power_limit)
2328-
EXPORT_GET_INFO(ext::intel::info::device::luid)
23292326

23302327
EXPORT_GET_INFO(ext::codeplay::experimental::info::device::supports_fusion)
23312328
EXPORT_GET_INFO(ext::codeplay::experimental::info::device::max_registers_per_work_group)

sycl/source/detail/ur_device_info_ret_types.inc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,6 @@ MAP(UR_DEVICE_INFO_ATOMIC_MEMORY_ORDER_CAPABILITIES, ur_memory_order_capability_
129129
MAP(UR_DEVICE_INFO_ATOMIC_MEMORY_SCOPE_CAPABILITIES, ur_memory_scope_capability_flags_t)
130130
MAP(UR_DEVICE_INFO_ATOMIC_FENCE_ORDER_CAPABILITIES, ur_memory_order_capability_flags_t)
131131
MAP(UR_DEVICE_INFO_ATOMIC_FENCE_SCOPE_CAPABILITIES, ur_memory_scope_capability_flags_t)
132-
MAP(UR_DEVICE_INFO_LUID, std::array<uint8_t, 8>)
133132
// Deprecated, we're not using it, so comment out to avoid warnings:
134133
// MAP(UR_DEVICE_INFO_BFLOAT16, ur_bool_t)
135134
MAP(UR_DEVICE_INFO_MAX_COMPUTE_QUEUE_INDICES, uint32_t)
@@ -155,6 +154,9 @@ MAP(UR_DEVICE_INFO_FAN_SPEED, int32_t)
155154
MAP(UR_DEVICE_INFO_MIN_POWER_LIMIT, int32_t)
156155
MAP(UR_DEVICE_INFO_MAX_POWER_LIMIT, int32_t)
157156
MAP(UR_DEVICE_INFO_BFLOAT16_CONVERSIONS_NATIVE, ur_bool_t)
157+
MAP(UR_DEVICE_INFO_KERNEL_LAUNCH_CAPABILITIES, ur_kernel_launch_properties_flags_t)
158+
// Manually changed std::vector<uint8_t> -> std::array<uint8_t, 8>
159+
MAP(UR_DEVICE_INFO_LUID, std::array<uint8_t, 8>)
158160

159161
// These aren't present in the specification, extracted from ur_api.h
160162
// instead.
@@ -188,5 +190,4 @@ MAP(UR_DEVICE_INFO_MIPMAP_LEVEL_REFERENCE_SUPPORT_EXP, ur_bool_t)
188190
MAP(UR_DEVICE_INFO_MIPMAP_MAX_ANISOTROPY_EXP, uint32_t)
189191
MAP(UR_DEVICE_INFO_MIPMAP_SUPPORT_EXP, ur_bool_t)
190192
MAP(UR_DEVICE_INFO_TIMESTAMP_RECORDING_SUPPORT_EXP, ur_bool_t)
191-
MAP(UR_DEVICE_INFO_KERNEL_LAUNCH_CAPABILITIES, ur_kernel_launch_properties_flags_t)
192193
// clang-format on

sycl/test-e2e/Adapters/level_zero/luid.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@
22
// REQUIRES: gpu, level_zero, level_zero_dev_kit, windows
33

44
// RUN: %{build} %level_zero_options -o %t.out
5-
// RUN: %{run} %t.out 2>&1 | FileCheck %s
5+
// RUN: %{run} %t.out
66

77
// Test that the LUID is read correctly from Level Zero.
88

9-
// CHECK: PASSED
109
#include <iomanip>
1110
#include <iostream>
1211
#include <level_zero/ze_api.h>

0 commit comments

Comments
 (0)