diff --git a/include/alpaka/atomic/AtomicUniformCudaHip.hpp b/include/alpaka/atomic/AtomicUniformCudaHip.hpp index 6c61eb53b166..0d09d9652d0c 100644 --- a/include/alpaka/atomic/AtomicUniformCudaHip.hpp +++ b/include/alpaka/atomic/AtomicUniformCudaHip.hpp @@ -222,6 +222,18 @@ inline namespace alpakaGlobal struct AlpakaBuiltInAtomic : std::false_type { }; + +# if !__has_builtin(__hip_atomic_compare_exchange_strong) + template + struct AlpakaBuiltInAtomic : std::false_type + { + }; + + template<> + struct AlpakaBuiltInAtomic : std::false_type + { + }; +# endif # endif // Max. @@ -275,6 +287,18 @@ inline namespace alpakaGlobal struct AlpakaBuiltInAtomic : std::false_type { }; + +# if !__has_builtin(__hip_atomic_compare_exchange_strong) + template + struct AlpakaBuiltInAtomic : std::false_type + { + }; + + template<> + struct AlpakaBuiltInAtomic : std::false_type + { + }; +# endif # endif