sycl::atomic_ref allows us not to define the address_space explicitly and this is useful in alpaka where we don't know it and have to check it every time.
This is also needed to foresee the addition of the SYCL CUDA / SYCL AMD backends, where the cast to local/global space does not even compile.
sycl::atomic_ref
allows us not to define theaddress_space
explicitly and this is useful in alpaka where we don't know it and have to check it every time.This is also needed to foresee the addition of the SYCL CUDA / SYCL AMD backends, where the cast to local/global space does not even compile.