Skip to content

Commit d1dd068

Browse files
authored
[SYCL] Prepare info::device::atomic64 for removal (#22456)
Fixes issue #14920 This PR guards all `info::device::atomic64` related code to be removed in the next ABI-breaking window.
1 parent f645315 commit d1dd068

3 files changed

Lines changed: 6 additions & 2 deletions

File tree

sycl/include/sycl/info/device.hpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,11 +411,13 @@ struct __SYCL2020_DEPRECATED("deprecated in SYCL 2020, use "
411411
using return_type = bool;
412412
};
413413

414-
// Extensions/deprecated
414+
#ifndef __INTEL_PREVIEW_BREAKING_CHANGES
415415
struct __SYCL_DEPRECATED("use sycl::aspect::atomic64 instead") atomic64
416416
: device_traits<UR_DEVICE_INFO_ATOMIC_64> {
417417
using return_type = bool;
418418
};
419+
#endif // __INTEL_PREVIEW_BREAKING_CHANGES
420+
419421
struct reference_count : device_traits<UR_DEVICE_INFO_REFERENCE_COUNT> {
420422
using return_type = uint32_t;
421423
};

sycl/source/detail/device_impl.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1248,7 +1248,7 @@ class device_impl {
12481248
CASE(int64_extended_atomics) {
12491249
return has_extension("cl_khr_int64_extended_atomics");
12501250
}
1251-
CASE(atomic64) { return get_info<info::device::atomic64>(); }
1251+
CASE(atomic64) { return get_info_impl<UR_DEVICE_INFO_ATOMIC_64>(); }
12521252
CASE(image) { return get_info<info::device::image_support>(); }
12531253
CASE(online_compiler) {
12541254
return get_info<info::device::is_compiler_available>();

sycl/source/device.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,9 @@ __SYCL_DEVICE_INFO_INST(partition_affinity_domains,
279279
__SYCL_DEVICE_INFO_INST(partition_type_property, info::partition_property)
280280
__SYCL_DEVICE_INFO_INST(partition_type_affinity_domain,
281281
info::partition_affinity_domain)
282+
#ifndef __INTEL_PREVIEW_BREAKING_CHANGES
282283
__SYCL_DEVICE_INFO_INST(atomic64, bool)
284+
#endif // __INTEL_PREVIEW_BREAKING_CHANGES
283285
__SYCL_DEVICE_INFO_INST(reference_count, uint32_t)
284286
__SYCL_DEVICE_INFO_INST(usm_device_allocations, bool)
285287
__SYCL_DEVICE_INFO_INST(usm_host_allocations, bool)

0 commit comments

Comments
 (0)