已合并
C API新增l0c2l1矩阵搬出接口 #5091
UFOunder创建于 8月14日
C API新增l0c2l1矩阵搬出接口 #5091
已合并
Pull Request已成功合入, 合并人@CANN-robot
(感谢 UFOunder 的贡献)atomgit-bot
8月14日 评论:
8月14日 评论:
变更摘要
本 PR 新增了 asc_copy_l0c2l1 接口及其实现,用于支持从 float 源数据到 half 和 bfloat16_t 目标 buffer 的 L0C 到 L1 拷贝场景。改动通过在公开头文件、内联封装层和底层实现层分别补齐 half float 与 bfloat16_t float 两个重载,底层统一调用 copy_matrix_cc_to_cbuf 完成数据搬移。
主要改动
- 新增
asc_copy_l0c2l1公开接口声明:在include/c_api/cube_datamove/cube_datamove.h中新增half/float与bfloat16_t/float两组asc_copy_l0c2l1声明,扩展了 L0C 到 L1 拷贝的对外可用类型。 - 新增内联封装重载:在
impl/c_api/instr_impl/npu_arch_3510/cube_datamove_impl.h中新增对应的asc_copy_l0c2l1重载,作为转发层调用底层asc_copy_l0c2l1_impl。 - 新增底层实现重载:在
impl/c_api/instr_impl/npu_arch_3510/cube_datamove_impl/asc_copy_l0c2l1_impl.h中新增asc_copy_l0c2l1_impl两组重载,在ASC_IS_AIC条件下调用copy_matrix_cc_to_cbuf,并将quant_pre_mode、quant_post分别转换为QuantMode_t、QuantMode_post类型。


不准确?
atomgit-bot
8月14日 评论:
8月14日 评论:
8月14日 添加了label:cann-cla/yes
CANN-robot
8月14日 评论:
8月14日 评论:
Thanks for your pull-request.
The full list of commands accepted by me can be found at here。
You can get sig-info at here
For more, you also can visit HICANN
PR Approval Progress
✅ Congratulations! All modules have met the lgtm and approve requirements.
Module Approval Details
| module | lgtm status | approve status |
|---|---|---|
| impl/c_api | ✅ pangfd, wuyang_hw, Lycheeeee (3/2) | ✅ Lycheeeee, pangfd (2/1) |
| include/c_api | ✅ wuzhaolin, wuyang_hw, Lycheeeee (3/2) | ✅ wuzhaolin (1/1) |
| repo-cann/asc-devkit | ✅ Lycheeeee, wuyang_hw (2/2) | ✅ Lycheeeee (1/1) |
💡 Tip:
- Committer can comment
/approveor/lgtm- Commenting
/approveimplies both code review (lgtm) and intent to merge (approve)
CLA Signature Pass
UFOunder, thanks for your pull request. All authors of the commits have signed the CLA. 👍


此处折叠了50条消息 查看更多
8月14日 添加了label:lgtmapproved
8月14日 合入了pull request
描述
C API新增l0c2l1矩阵搬出接口
关联的Issue
测试
文档更新
类型标签