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

[ROCm/rccl commit: 3899f6e0f2]
Этот коммит содержится в:
Christian Sigg authored and Sylvain Jeaugey committed 2019-12-09 09:31:13 -08:00
1 родитель 6413a29ce8
Коммит ff74ebdcea
1 file changed
+1 -1
+1 -1
Просмотреть файл
@@ -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