已合并
C API新增l0c2l1矩阵搬出接口 #5091
UFOunder创建于 8月14日
C API新增l0c2l1矩阵搬出接口 #5091
已合并
UFOunder创建于 8月14日
UFOunder成员
8月14日

描述

C API新增l0c2l1矩阵搬出接口

关联的Issue

测试

文档更新

类型标签

likedislike
Pull Request已成功合入, 合并人@CANN-robot
(感谢 UFOunder 的贡献)
UUFOunder成员
8月14日 创建了 pull request,commit bd010994
atomgit-bot
atomgit-bot
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 类型。
likedislike
不准确?
atomgit-bot
atomgit-bot
8月14日 评论:

代码审查

✅ 未发现问题

likedislike
不准确?
CANN-robotCANN-robot成员
8月14日 添加了label:cann-cla/yes
CANN-robot
CANN-robot成员
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 /approve or /lgtm
  • Commenting /approve implies 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. 👍

likedislike
此处折叠了50条消息 查看更多
吴洋成员
8月14日 评论:

/lgtm

likedislike
pangfd成员
8月14日 评论:

/approve

likedislike
Lycheeeee成员
8月14日 评论:

/lgtm
/approve

likedislike
CANN-robotCANN-robot成员
8月14日 添加了label:lgtmapproved
CANN-robotCANN-robot成员
8月14日 合入了pull request