We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
atomic_ref
1 parent a064301 commit a05b781Copy full SHA for a05b781
sycl/include/sycl/atomic_ref.hpp
@@ -158,16 +158,9 @@ class atomic_ref_base {
158
}
159
160
#ifdef __SYCL_DEVICE_ONLY__
161
-#if defined(__SPIR__)
162
explicit atomic_ref_base(T &ref)
163
: ptr(ext::oneapi::experimental::static_address_cast<AddressSpace>(
164
&ref)) {}
165
-#else
166
- // CUDA/HIP don't support `ext::oneapi::experimental::static_address_cast`
167
- // yet.
168
- explicit atomic_ref_base(T &ref)
169
- : ptr(address_space_cast<AddressSpace, access::decorated::no>(&ref)) {}
170
-#endif
171
#else
172
// FIXME: This reinterpret_cast is UB, but happens to work for now
173
0 commit comments