Fix clang build (#274)

The attribute is called `optnone`, not `noopt`.

[ROCm/rccl commit: 3899f6e0f2]
This commit is contained in:
Christian Sigg
2019-12-09 18:31:13 +01:00
zatwierdzone przez Sylvain Jeaugey
rodzic 6413a29ce8
commit ff74ebdcea
+1 -1
Wyświetl plik
@@ -125,7 +125,7 @@ ncclResult_t ncclGetUniqueId(ncclUniqueId* out) {
// Prevent compiler from optimizing out these operations // Prevent compiler from optimizing out these operations
#ifdef __clang__ #ifdef __clang__
#define NCCL_NO_OPTIMIZE __attribute__((noopt)) #define NCCL_NO_OPTIMIZE __attribute__((optnone))
#else #else
#define NCCL_NO_OPTIMIZE __attribute__((optimize("O0"))) #define NCCL_NO_OPTIMIZE __attribute__((optimize("O0")))
#endif #endif