Pull Request已成功合入, 合并人@CANN-robot
(感谢 高维健 的贡献)变更摘要
本 PR 主要对 Conv 系列算子(conv、conv2d_v2、conv3d_v2 的 arch35 实现)进行 AscendC API 整改:将原基于 __VEC_SCOPE__ + MicroAPI 的向量指令写法迁移到新的 Reg:: SIMD 接口(__simd_vf__/__simd_callee__),同时完成两类类型改名(FixpipeParamsC310 → FixpipeParamsArch3510、MultiCopyParams → NdDmaParams),并把权重的 ND2NZ/分形(Fractal Z)转置逻辑抽取为公共向量函数助手放入新增文件 conv_instr_nd2nz_vf.h 中统一复用。
主要改动
- 新增公共向量函数头文件
conv_instr_nd2nz_vf.h:定义了TransND2NZVfParams、TransND2NZKdVfParams、TransFractalZVfParams参数结构体以及SetIndexVf、GatherStoreNz、TransND2NZVf、TransND2NZKdVf、TransFractalZVf等__simd_vf__函数,封装基于Reg::Gather/Reg::StoreAlign的 ND2NZ 与分形转置逻辑,供卷积权重转置 kernel 共享。 - conv 权重转置逻辑改写为新 API:
conv_instr_opt_group_impl.h中TransNCHW2NZ、TransNCDHW2NZ、TransNDHWC2NZ、TransNHWC2NZ由__VEC_SCOPE__/MicroAPI内联实现改为填充参数结构体并调用TransND2NZVf/TransND2NZKdVf,公共参数由新增的FillCommonNd2NzParams统一填充;conv2d_v2_instr_c04_impl.h与conv2d_v2_instr_weight_ub_trans_impl.h分别改用TransFractalZVf与TransND2NZVf,索引生成统一复用SetIndexVf。 - 类型改名
FixpipeParamsC310→FixpipeParamsArch3510:涉及conv_instr_hw_mode_impl.h、conv_instr_m_mode_impl.h、conv2d_small_kernel.h、conv2d_v2_depthwise_simplify.h、conv3d_v2_instr_dequant_impl.h中的 Fixpipe 参数声明(含SetFixpipeIntriParams、SetBaseParams、ExtendConv2DFixpipe等接口),对齐 Arch3510 平台命名。 - 类型改名
MultiCopyParams→NdDmaParams:涉及conv_instr_opt_group_impl.h、conv2d_v2_depthwise_simplify.h、conv2d_v2_instr_c04_impl.h、conv2d_v2_instr_dma_impl.h、conv2d_v2_instr_weight_ub_trans_impl.h中的 DMA 拷贝参数成员声明。 - depthwise 向量助手与内存空间标注调整:
conv2d_v2_depthwise_simplify.h新增 depthwise 专用DwSetIndexVf、DwTransND2NZVf助手并将原有转置/索引生成改写为新 API;同时各转置路径中索引与数据指针的内存空间标注由__local_mem__改为__ubuf__,并对齐文件末尾换行格式。


compile


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 |
|---|---|---|
| conv | ✅ 王慈孟, 唐玮玮 (2/2) | ✅ 王慈孟 (1/1) |
💡 Tip:
- Committer can comment
/approveor/lgtm- Commenting
/approveimplies both code review (lgtm) and intent to merge (approve)


流水线任务触发成功
任务链接 [a982952292ee41f2b5315d83a9a972b1][流水线指导]
| 任务名称 | 状态 | 日志 | 下载链接 |
|---|---|---|---|
| Compile_Ascend_X86_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_X86_mobile_station | ❌ FAILED | >>>>> | |
| Compile_Ascend_ARM | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_single | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_experimental | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_X86_950 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_ARM_950 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Pre | ✅ SUCCESS | >>>>> | |
| pre_comment | ✅ SUCCESS | >>>>> | |
| Compile_Ascend_X86 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_X86_mobile_station_ubuntu24 | ❌ FAILED | >>>>> | |
| Compile_Ascend_X86_950_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_ARM_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_single_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_experimental_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_ARM_950_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_X86_monitor_910b | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_X86_monitor_910c | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_X86_monitor_950 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_classify | ✅ SUCCESS | >>>>> | |
| Compile_Ascend_X86_mobile_station_9030_ubuntu24 | ❌ FAILED | >>>>> |


流水线任务触发成功
任务链接 [662ebe99e4724d4fb4d3d15a1fe6e1ce][流水线指导]
| 任务名称 | 状态 | 日志 | 下载链接 |
|---|---|---|---|
| antipoison | ✅ SUCCESS | >>>>> | |
| codecheck_checkpr | ✅ SUCCESS | ||
| StaticCheck_codespell | ✅ SUCCESS | ||
| StaticCheck_link_validity | ✅ SUCCESS | ||
| StaticCheck_resource_existence | ✅ SUCCESS | ||
| StaticCheck_tag_closed | ✅ SUCCESS | ||
| StaticCheck_markdownlint | ✅ SUCCESS | ||
| codecheck_precommit | ✅ SUCCESS | >>>>> | |
| SCA | ✅ SUCCESS | >>>>> |
[2026-08-24 20:00:03] CI执行结束


compile


流水线任务触发成功
任务链接 [c43e435923b3407791d516490bccb694][流水线指导]
| 任务名称 | 状态 | 日志 | 下载链接 |
|---|---|---|---|
| Compile_Ascend_X86_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_X86_mobile_station | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_ARM | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_single | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_experimental | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_X86_950 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_ARM_950 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Pre | ✅ SUCCESS | >>>>> | |
| pre_comment | ✅ SUCCESS | >>>>> | |
| Compile_Ascend_X86 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_X86_mobile_station_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_X86_950_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_ARM_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_single_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_experimental_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_ARM_950_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_X86_monitor_910b | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_X86_monitor_910c | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_X86_monitor_950 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_classify | ✅ SUCCESS | >>>>> | |
| Compile_Ascend_X86_mobile_station_9030_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| UT_Test_ophost | ✅ SUCCESS | ||
| UT_Test_opapi | ✅ SUCCESS | ||
| UT_Test_kernel | ✅ SUCCESS | ||
| UT_Test_opgraph | ✅ SUCCESS | ||
| PreSmoke_A900 | ✅ SUCCESS | >>>>> | |
| API_Check | ✅ SUCCESS | >>>>> | |
| PreSmoke_ATK_Test_A2 | ✅ SUCCESS | >>>>> | |
| UT_Test_report_lcov | ✅ SUCCESS | >>>>> |
[2026-08-25 09:53:54] CI执行结束


流水线任务触发成功
任务链接 [845b0a9471094b0e8e6104ac0af6e4e6][流水线指导]
| 任务名称 | 状态 | 日志 | 下载链接 |
|---|---|---|---|
| antipoison | ✅ SUCCESS | >>>>> | |
| codecheck_checkpr | ✅ SUCCESS | ||
| StaticCheck_codespell | ✅ SUCCESS | ||
| StaticCheck_link_validity | ✅ SUCCESS | ||
| StaticCheck_resource_existence | ✅ SUCCESS | ||
| StaticCheck_tag_closed | ✅ SUCCESS | ||
| StaticCheck_markdownlint | ✅ SUCCESS | ||
| codecheck_precommit | ✅ SUCCESS | >>>>> | |
| SCA | ✅ SUCCESS | >>>>> |
[2026-08-25 09:33:54] CI执行结束


/reject


| Time | Name | Result | Changeid | TimeStamp |
|---|---|---|---|---|
| 2026-08-25 10:10:26 | Start_Pipeline | MR_420 |


| Time | Name | Result | Changeid | TimeStamp |
|---|---|---|---|---|
| 2026-08-25 10:13:15 | Sync_PR | :white_check_mark: 成功 | Ic9773722dceb98959db0323e2f74e9e7eec7e4c3 |


| Time | Name | Result | Changeid | TimeStamp |
|---|---|---|---|---|
| 2026-08-25 10:13:40 | Trigger_SC | :white_check_mark: 触发成功 | Ic9773722dceb98959db0323e2f74e9e7eec7e4c3 | 20260825_101833586 |


/lgtm


| Time | Name | Result | Changeid | TimeStamp |
|---|---|---|---|---|
| 2026-08-25 10:41:09 | SC_Result | :x: 失败 | Ic9773722dceb98959db0323e2f74e9e7eec7e4c3 |


| Time | Name | Result | Changeid | TimeStamp |
|---|---|---|---|---|
| 2026-08-25 10:42:39 | CMETRICS | :white_check_mark: 成功 | Ic9773722dceb98959db0323e2f74e9e7eec7e4c3 |


| Time | Name | Result | Changeid | TimeStamp |
|---|---|---|---|---|
| 2026-08-25 10:42:59 | Trigger_RDV | :white_check_mark: 触发成功 | Ic9773722dceb98959db0323e2f74e9e7eec7e4c3 | 20260825_104752547 |


| Time | Name | Result | Changeid | TimeStamp | |||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2026-08-25 14:17:56 | commit | 2026-08-24T19:53:42+08:00 | fb1992a1 | ||||||||||||||||||||||||
| SC_Result | :x: FAILURE | Ic977372 | |||||||||||||||||||||||||
| RDV_Result | :x: RUNNING | Ic977372 | |||||||||||||||||||||||||
|


/lgtm
/approve


描述
将卷积正向内使用的AscendC接口整改为兼容性变更后的新接口
关联的Issue
#5119
测试
组件用例验证通过
文档更新
类型标签
AI/Agent生成声明