msccl: adjust msccl threshold for bf16 (#1736)

* msccl: adjust msccl threshold for bf16

* Update src/collectives.cc

Co-authored-by: corey-derochie-amd <161367113+corey-derochie-amd@users.noreply.github.com>

---------

Co-authored-by: corey-derochie-amd <161367113+corey-derochie-amd@users.noreply.github.com>

[ROCm/rccl commit: 75c3c8215c]
이 커밋은 다음에 포함됨:
Nusrat Islam그리고corey-derochie-amd 작성하고 GitHub가 2025-06-11 09:09:57 -05:00를 커밋함
1 부모 69f7167b74
커밋 99813a3288
1 파일이 변경됨
+5 -3
+5 -3
파일 보기
@@ -125,9 +125,11 @@ ncclResult_t ncclAllReduce_impl(const void* sendbuff, void* recvbuff, size_t cou
}
if (mscclAvailable(comm) && !mscclIsCaller()) {
return mscclEnqueueCheck(
sendbuff, nullptr, nullptr, recvbuff, nullptr, nullptr,
count, datatype, 0, 0, op, mscclFuncAllReduce, comm, stream);
if (datatype != ncclBfloat16 || (count * ncclTypeSize(datatype) <= 8388608)) {
return mscclEnqueueCheck(
sendbuff, nullptr, nullptr, recvbuff, nullptr, nullptr,
count, datatype, 0, 0, op, mscclFuncAllReduce, comm, stream);
}
}
return ncclEnqueueCheck(&info);