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 {
119
119
return impl->MSize ;
120
120
}
121
121
void *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
122
127
// Must not be/isn't called, user-facing APIs do error-checking.
123
128
std::abort ();
129
+ #endif
124
130
return nullptr ;
125
131
}
126
132
void *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
127
138
// Must not be/isn't called, user-facing APIs do error-checking.
128
139
std::abort ();
140
+ #endif
129
141
return nullptr ;
130
142
}
131
143
const property_list &LocalAccessorBaseHost::getPropList () const {
You can’t perform that action at this time.
0 commit comments