Fix divide by zero error
이 커밋은 다음에 포함됨:
1 부모
213abee002
커밋
dc1ad4853d
1 파일이 변경됨
+1
-1
+1
-1
@@ -527,7 +527,7 @@ testResult_t startColl(struct threadArgs* args, ncclDataType_t type, ncclRedOp_t
|
||||
size_t count = args->nbytes / wordSize(type);
|
||||
|
||||
// Try to change offset for each iteration so that we avoid cache effects and catch race conditions in ptrExchange
|
||||
size_t totalnbytes = max(args->sendBytes, args->expectedBytes);
|
||||
size_t totalnbytes = std::max(args->sendBytes, args->expectedBytes);
|
||||
size_t steps = totalnbytes ? args->maxbytes / totalnbytes : 1;
|
||||
size_t shift = totalnbytes * (iter % steps);
|
||||
|
||||
|
||||
새 이슈에서 참조
사용자 차단