Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jerrrrry
infinicore
Commits
81093e0b
Commit
81093e0b
authored
Sep 09, 2025
by
PanZezhong1725
Browse files
issue/434 nccl support bf16
parent
9ad23fad
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/infiniccl/cuda/infiniccl_cuda.cu
src/infiniccl/cuda/infiniccl_cuda.cu
+3
-3
No files found.
src/infiniccl/cuda/infiniccl_cuda.cu
View file @
81093e0b
...
...
@@ -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
;
...
...
@@ -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
)));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment