alpaka-group / alpaka

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

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

Closed AuroraPerego closed 2 months ago

AuroraPerego commented 2 months 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.