diff options
author | Christian Sigg <chsigg@users.noreply.github.com> | 2019-12-09 20:31:13 +0300 |
---|---|---|
committer | Sylvain Jeaugey <sjeaugey@nvidia.com> | 2019-12-09 20:31:13 +0300 |
commit | 3899f6e0f219b0cbf58537f791b0dd104b377750 (patch) | |
tree | 49e7c6b2e08790b5d7b9eda124ce6cd130c87f1f | |
parent | 44b56526179c6fb0c72350d378a8ff9184774ef9 (diff) |
Fix clang build (#274)
The attribute is called `optnone`, not `noopt`.
-rw-r--r-- | src/init.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/init.cc b/src/init.cc index 9da676a..627f6c7 100644 --- a/src/init.cc +++ b/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 |