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
b8609df3
Commit
b8609df3
authored
Sep 09, 2025
by
Ceng
Committed by
Ceng2333
Sep 16, 2025
Browse files
issue/434 hccl support bf16
Signed-off-by:
Ceng
<
441651826@qq.com
>
parent
f9d16628
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/infiniccl/metax/infiniccl_metax.cc
src/infiniccl/metax/infiniccl_metax.cc
+3
-3
No files found.
src/infiniccl/metax/infiniccl_metax.cc
View file @
b8609df3
...
...
@@ -23,6 +23,8 @@ inline hcclDataType_t getHcclDtype(infiniDtype_t datatype) {
return
hcclFloat
;
case
INFINI_DTYPE_F16
:
return
hcclHalf
;
case
INFINI_DTYPE_BF16
:
return
hcclBfloat16
;
default:
std
::
abort
();
return
hcclHalf
;
...
...
@@ -83,9 +85,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_HCCL
(
hcclAllReduce
(
sendbuf
,
recvbuf
,
count
,
getHcclDtype
(
datatype
),
getHcclRedOp
(
op
),
getHcclComm
(
comm
),
getMacaStream
(
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