diff options
Diffstat (limited to 'src/graph/tuning.cc')
-rw-r--r-- | src/graph/tuning.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/graph/tuning.cc b/src/graph/tuning.cc index 89a97a3..87afb2f 100644 --- a/src/graph/tuning.cc +++ b/src/graph/tuning.cc @@ -192,7 +192,7 @@ ncclResult_t ncclSetThresholds(struct ncclComm* comm, int minCompCap, int maxCom // Override defaults with user env char* str = getenv("NCCL_THREAD_THRESHOLDS"); if (str) { - ssize_t t[NCCL_NUM_ALGORITHMS][NCCL_NUM_PROTOCOLS] = { -2 }; + ssize_t t[NCCL_NUM_ALGORITHMS][NCCL_NUM_PROTOCOLS] = {{ -2, -2, -2 }, { -2, -2, -2}}; sscanf(str, "%ld %ld %ld %ld %ld %ld", t[0], t[0]+1, t[0]+2, t[1], t[1]+1, t[1]+2); for (int a=0; a<NCCL_NUM_ALGORITHMS; a++) { for (int p=0; p<NCCL_NUM_PROTOCOLS; p++) { |