Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/infiniccl/cuda/infiniccl_cuda.cu
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ inline ncclDataType_t getNcclDtype(infiniDtype_t datatype) {
return ncclFloat;
case INFINI_DTYPE_F16:
return ncclHalf;
case INFINI_DTYPE_BF16:
return ncclBfloat16;
default:
std::abort();
return ncclHalf;
Expand Down Expand Up @@ -82,9 +84,7 @@ infiniStatus_t allReduce(
infinicclComm_t comm,
infinirtStream_t stream) {

if (datatype != INFINI_DTYPE_F32 && datatype != INFINI_DTYPE_F16) {
return INFINI_STATUS_BAD_PARAM;
}
CHECK_DTYPE(datatype, INFINI_DTYPE_F32, INFINI_DTYPE_F16, INFINI_DTYPE_BF16);

CHECK_NCCL(ncclAllReduce(sendbuf, recvbuf, count, getNcclDtype(datatype),
getNcclRedOp(op), getNcclComm(comm), getCudaStream(stream)));
Expand Down
Loading