parent
44b5652617
commit
3899f6e0f2
@ -125,7 +125,7 @@ ncclResult_t ncclGetUniqueId(ncclUniqueId* out) {
|
|||||||
|
|
||||||
// Prevent compiler from optimizing out these operations
|
// Prevent compiler from optimizing out these operations
|
||||||
#ifdef __clang__
|
#ifdef __clang__
|
||||||
#define NCCL_NO_OPTIMIZE __attribute__((noopt))
|
#define NCCL_NO_OPTIMIZE __attribute__((optnone))
|
||||||
#else
|
#else
|
||||||
#define NCCL_NO_OPTIMIZE __attribute__((optimize("O0")))
|
#define NCCL_NO_OPTIMIZE __attribute__((optimize("O0")))
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user