diff --git a/src/care/atomic.h b/src/care/atomic.h index 3605c4cd..822e4711 100644 --- a/src/care/atomic.h +++ b/src/care/atomic.h @@ -24,5 +24,9 @@ using RAJAAtomic = RAJA::auto_atomic; #define ATOMIC_STORE(ref, val) RAJA::atomicStore(&(ref), val) #define ATOMIC_EXCHANGE(ref, val) RAJA::atomicExchange(&(ref), val) #define ATOMIC_CAS(ref, compare, val) RAJA::atomicCAS(&(ref), compare, val) +#if RAJA_VERSION_MAJOR >= 2026 +#define ATOMIC_GENERIC(ref, op) RAJA::atomicGeneric(&(ref), op) +#define ATOMIC_GENERIC_WITH_STOP(ref, op, stop) RAJA::atomicGeneric(&(ref), op, stop) +#endif #endif // CARE_ATOMIC_H