From 5d99b55e257526005c147d3f0dde7b349132ead7 Mon Sep 17 00:00:00 2001 From: Alan Dayton Date: Tue, 28 Jul 2026 16:33:13 -0700 Subject: [PATCH] Expose new atomics from raja --- src/care/atomic.h | 4 ++++ 1 file changed, 4 insertions(+) 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