File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -119,13 +119,25 @@ const sycl::range<3> &LocalAccessorBaseHost::getSize() const {
119119 return impl->MSize ;
120120}
121121void *LocalAccessorBaseHost::getPtr () {
122+ // `local_accessor_base::GDBMethodsAnchor` was/is inline and used to call
123+ // `(void)getPtr()` inside. As such, binaries compiled with older toolchain
124+ // are calling this method from the `sycl::local_accessor` ctor on host and we
125+ // cannot "abort" for them.
126+ #ifdef __INTEL_PREVIEW_BREAKING_CHANGES
122127 // Must not be/isn't called, user-facing APIs do error-checking.
123128 std::abort ();
129+ #endif
124130 return nullptr ;
125131}
126132void *LocalAccessorBaseHost::getPtr () const {
133+ // `local_accessor_base::GDBMethodsAnchor` was/is inline and used to call
134+ // `(void)getPtr()` inside. As such, binaries compiled with older toolchain
135+ // are calling this method from the `sycl::local_accessor` ctor on host and we
136+ // cannot "abort" for them.
137+ #ifdef __INTEL_PREVIEW_BREAKING_CHANGES
127138 // Must not be/isn't called, user-facing APIs do error-checking.
128139 std::abort ();
140+ #endif
129141 return nullptr ;
130142}
131143const property_list &LocalAccessorBaseHost::getPropList () const {
You can’t perform that action at this time.
0 commit comments