Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/marian-nmt/nccl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Sigg <chsigg@users.noreply.github.com>2019-12-09 20:31:13 +0300
committerSylvain Jeaugey <sjeaugey@nvidia.com>2019-12-09 20:31:13 +0300
commit3899f6e0f219b0cbf58537f791b0dd104b377750 (patch)
tree49e7c6b2e08790b5d7b9eda124ce6cd130c87f1f
parent44b56526179c6fb0c72350d378a8ff9184774ef9 (diff)
Fix clang build (#274)
The attribute is called `optnone`, not `noopt`.
-rw-r--r--src/init.cc2
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