diff --git a/projects/rccl/src/init.cc b/projects/rccl/src/init.cc index 9da676a246..627f6c75a2 100644 --- a/projects/rccl/src/init.cc +++ b/projects/rccl/src/init.cc @@ -125,7 +125,7 @@ ncclResult_t ncclGetUniqueId(ncclUniqueId* out) { // Prevent compiler from optimizing out these operations #ifdef __clang__ -#define NCCL_NO_OPTIMIZE __attribute__((noopt)) +#define NCCL_NO_OPTIMIZE __attribute__((optnone)) #else #define NCCL_NO_OPTIMIZE __attribute__((optimize("O0"))) #endif