SWDEV-380687 - Fixed typo in safe atomicAdd for gfx90a
Change-Id: I87bc6d9e0ef1f564d679c6280c71c4633d3aa619
[ROCm/clr commit: 6704f3d0f0]
Este commit está contenido en:
@@ -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
|
||||
|
||||
Referencia en una nueva incidencia
Block a user