From ff74ebdcea2fc4e0664ac72bb33fc801c8db0d4a Mon Sep 17 00:00:00 2001 From: Christian Sigg Date: Mon, 9 Dec 2019 18:31:13 +0100 Subject: [PATCH] Fix clang build (#274) The attribute is called `optnone`, not `noopt`. [ROCm/rccl commit: 3899f6e0f219b0cbf58537f791b0dd104b377750] --- projects/rccl/src/init.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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