Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions sycl/source/accessor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,25 +110,13 @@ const sycl::range<3> &LocalAccessorBaseHost::getSize() const {
return impl->MSize;
}
void *LocalAccessorBaseHost::getPtr() {
// `local_accessor_base::GDBMethodsAnchor` was/is inline and used to call
// `(void)getPtr()` inside. As such, binaries compiled with older toolchain
// are calling this method from the `sycl::local_accessor` ctor on host and we
// cannot "abort" for them.
#ifdef __INTEL_PREVIEW_BREAKING_CHANGES
// Must not be/isn't called, user-facing APIs do error-checking.
std::abort();
#endif
return nullptr;
}
void *LocalAccessorBaseHost::getPtr() const {
// `local_accessor_base::GDBMethodsAnchor` was/is inline and used to call
// `(void)getPtr()` inside. As such, binaries compiled with older toolchain
// are calling this method from the `sycl::local_accessor` ctor on host and we
// cannot "abort" for them.
#ifdef __INTEL_PREVIEW_BREAKING_CHANGES
// Must not be/isn't called, user-facing APIs do error-checking.
std::abort();
#endif
return nullptr;
}
const property_list &LocalAccessorBaseHost::getPropList() const {
Expand Down