Replace atomicExch with __atomic_store_n (#818)

* Replace atomicExch with __atomic_store_n

* Remove extra semicolon

[ROCm/rccl commit: 4d20b4b758]
Tá an tiomantas seo le fáil i:
Wenkai Du údaraithe agus GitHub tiomanta 2023-07-25 11:15:21 -07:00
1 tuismitheoir 435a055c97
tiomantas c64fd04c11
1 comhad athraithe
+1 -1
+1 -1
Féach ar an gComhad
@@ -22,7 +22,7 @@
#ifdef __GFX9__
#define STORE(DST, SRC) \
{ __threadfence(); atomicExch((unsigned long long *)(DST), (SRC)); }
{ __threadfence(); __atomic_store_n((DST), (SRC), __ATOMIC_RELAXED); }
#else
#define STORE(DST, SRC) \
{ __atomic_store_n((DST), (SRC), __ATOMIC_SEQ_CST); }