diff --git a/projects/clr/hipamd/include/hip/amd_detail/amd_hip_unsafe_atomics.h b/projects/clr/hipamd/include/hip/amd_detail/amd_hip_unsafe_atomics.h index 7c2a329e4f..0100e99e71 100644 --- a/projects/clr/hipamd/include/hip/amd_detail/amd_hip_unsafe_atomics.h +++ b/projects/clr/hipamd/include/hip/amd_detail/amd_hip_unsafe_atomics.h @@ -310,7 +310,7 @@ __device__ inline double unsafeAtomicMin(double* addr, double val) { */ __device__ inline float safeAtomicAdd(float* addr, float value) { #if defined(__gfx908__) || \ - (defined(__gfx90a) && !__has_builtin(__hip_atomic_fetch_add)) + (defined(__gfx90a__) && !__has_builtin(__hip_atomic_fetch_add)) // On gfx908, we can generate unsafe FP32 atomic add that does not follow all // IEEE rules when -munsafe-fp-atomics is passed. Do a CAS loop emulation instead. // On gfx90a, if we do not have the __hip_atomic_fetch_add builtin, we need to