Skip to content

Commit 48503ef

Browse files
authored
[SYCL][ABI-break] abort in LocalAccessorBaseHost::getPtr() (#20962)
Expose abi-breaking changes.
1 parent abcf78d commit 48503ef

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

sycl/source/accessor.cpp

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -110,25 +110,13 @@ const sycl::range<3> &LocalAccessorBaseHost::getSize() const {
110110
return impl->MSize;
111111
}
112112
void *LocalAccessorBaseHost::getPtr() {
113-
// `local_accessor_base::GDBMethodsAnchor` was/is inline and used to call
114-
// `(void)getPtr()` inside. As such, binaries compiled with older toolchain
115-
// are calling this method from the `sycl::local_accessor` ctor on host and we
116-
// cannot "abort" for them.
117-
#ifdef __INTEL_PREVIEW_BREAKING_CHANGES
118113
// Must not be/isn't called, user-facing APIs do error-checking.
119114
std::abort();
120-
#endif
121115
return nullptr;
122116
}
123117
void *LocalAccessorBaseHost::getPtr() const {
124-
// `local_accessor_base::GDBMethodsAnchor` was/is inline and used to call
125-
// `(void)getPtr()` inside. As such, binaries compiled with older toolchain
126-
// are calling this method from the `sycl::local_accessor` ctor on host and we
127-
// cannot "abort" for them.
128-
#ifdef __INTEL_PREVIEW_BREAKING_CHANGES
129118
// Must not be/isn't called, user-facing APIs do error-checking.
130119
std::abort();
131-
#endif
132120
return nullptr;
133121
}
134122
const property_list &LocalAccessorBaseHost::getPropList() const {

0 commit comments

Comments
 (0)