alpaka-group / alpaka

Abstraction Library for Parallel Kernel Acceleration :llama:
https://alpaka.readthedocs.io
Mozilla Public License 2.0
353 stars 72 forks source link

use the generic address space for atomic operations in SYCL #2389

Closed AuroraPerego closed 1 week ago

AuroraPerego commented 2 weeks ago

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.