Pull Request已成功合入, 合并人@CANN-robot
(感谢 hw-zhangpanpan 的贡献)变更摘要
该 PR(标题"asc接口替换")是一次面向 arch35 内核的接口替换/重命名改动,不涉及业务逻辑变更:将算子内核中旧的 AscendC::Reg 寄存器指令接口、NDMA 搬运参数类型以及 UB 指针限定符统一迁移到新命名规范。改动覆盖 conversion 与 math 目录下的多个算子(as_strided、concat、dynamic_partition、split_v、strided_slice_grad、triu、cumsum、eye、power),全部位于 arch35 内核文件中。
主要改动
- 寄存器指令接口重命名: 将
Reg::DataCopy按语义拆分为Reg::LoadAlign/Reg::StoreAlign,Reg::DataCopyGather→Reg::Gather、Reg::DataCopyScatter→Reg::Scatter、Reg::DataCopyUnAlign*→Reg::LoadUnAlign*/Reg::StoreUnAlign*、Reg::Copy→Reg::Move、Reg::CompareScalar→Reg::Compares、Reg::ReduceSum→Reg::Reduce<Reg::ReduceType::SUM>、Reg::GatherMask→Reg::Squeeze、Reg::MaskUnPack→Reg::UnPack,涉及as_strided_gather.h、concat_base.h、dynamic_partition_base.h、split_v_ub_split.h、cumsum_4_int.h等文件。 - 指针限定符替换: 将内核中 UB 缓冲区地址的
__local_mem__指针统一替换为__ubuf__,覆盖as_strided、dynamic_partition、triu、cumsum、strided_slice_grad等多个算子的地址转换与函数形参声明。 - NDMA 配置/参数类型重命名: 将
MultiCopyConfig→NdDmaConfig、MultiCopyParams→NdDmaParams、MultiCopyLoopInfo→NdDmaLoopInfo,应用于as_strided.h、dynamic_partition_with_h_mc_small_w.h、split_all_axis_nddma.h、split_front_axis_nddma.h、cumsum_core_sklansky.h等文件。 - 非对齐寄存器类型拆分与 MicroAPI 迁移: 将
UnalignReg按用途拆分为UnalignRegForLoad(加载)与UnalignRegForStore(存储);并在cumsum_core_sklansky.h、cumsum_oneway_sklansky.h中将未限定的DataCopy调用改为MicroAPI::LoadAlign/MicroAPI::StoreAlign,保持原有搬运语义不变。


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.
You can self-configure the PR merge rules for this repository. For more details, please refer to 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 |
|---|---|---|
| conversion/as_strided | ✅ zhanw_coding, 宋恺 (2/2) | ✅ zhanw_coding (1/1) |
| conversion/concat | ✅ 宋恺, zhanw_coding (2/2) | ✅ zhanw_coding (1/1) |
| conversion/split_v | ✅ zhanw_coding, 宋恺 (2/2) | ✅ zhanw_coding (1/1) |
| conversion/view_copy | ✅ zhanw_coding, 宋恺 (2/2) | ✅ zhanw_coding (1/1) |
| math/cumsum | ✅ zhanw_coding, 宋恺 (2/2) | ✅ zhanw_coding (1/1) |
| math/eye | ✅ 宋恺, zhanw_coding (2/2) | ✅ zhanw_coding (1/1) |
| repo-cann/ops-math | ✅ zhanw_coding, 宋恺 (2/2) | ✅ zhanw_coding (1/1) |
💡 Tip:
- Committer can comment
/approveor/lgtm- Commenting
/approveimplies both code review (lgtm) and intent to merge (approve)
CLA Signature Pass
hw-zhangpanpan, thanks for your pull request. All authors of the commits have signed the CLA. 👍


The MR can not be merged, because of this MR is work in process.
If you want to solve this problem, you can click here to do it in the FAQs.


/check-pr


描述
算子中存在使用内部的asc api接口,需要切换为对外的api接口
关联的Issue
https://gitcode.com/cann/ops-math/issues/2958
测试
切换接口前后二进制文件一致
文档更新
不涉及
类型标签