Pull Request已成功合入, 合并人@CANN-robot
(感谢 丛吉钰 的贡献)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
PR Approval Progress
✅ Congratulations! All modules have met the lgtm and approve requirements.
Module Approval Details
| module | lgtm status | approve status |
|---|---|---|
| */*/op_host/*_def.cpp | ✅ 汤磊, 陈琦, 唐玮玮 (3/2) | ✅ 汤磊 (1/1) |
| pooling | ✅ 陈琦, 唐玮玮 (2/2) | ✅ 陈琦, 唐玮玮 (2/1) |
💡 Tip:
- Committer can comment
/approveor/lgtm- Commenting
/approveimplies both code review (lgtm) and intent to merge (approve)
CLA Signature Pass
cong-jiyu, thanks for your pull request. All authors of the commits have signed the CLA. 👍


compile


流水线任务触发成功
任务链接 [6692a06196c44b3ab1bdf7616e2ababd][流水线指导]
| 任务名称 | 状态 | 日志 | 下载链接 |
|---|---|---|---|
| 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 | >>>>> | |
| UT_Test_opgraph | ✅ SUCCESS | ||
| API_Check | ✅ SUCCESS | >>>>> |
[2026-06-23 17:16:56] CI执行结束


流水线任务触发成功
任务链接 [89ae81deaf334512b258a25e2040abfa][流水线指导]
| 任务名称 | 状态 | 日志 | 下载链接 |
|---|---|---|---|
| codecheck | ❌ FAILED | >>>>> | |
| antipoison | ✅ SUCCESS | >>>>> | |
| codecheck_checkpr | ✅ SUCCESS | ||
| StaticCheck_codespell_check | ✅ SUCCESS | ||
| StaticCheck_link_validity_check | ✅ SUCCESS | ||
| StaticCheck_resource_existence_check | ✅ SUCCESS | ||
| StaticCheck_tag_closed_check | ✅ SUCCESS | ||
| StaticCheck_markdownlint | ✅ SUCCESS | ||
| codecheck_style | ✅ SUCCESS | >>>>> | |
| codecheck_precommit | ⚠️ WARNING | >>>>> | >>>>> |
| SCA | ✅ SUCCESS | >>>>> |


compile


流水线任务触发成功
任务链接 [0c84dba6385449e2a1fb6afbf769b1a8][流水线指导]
| 任务名称 | 状态 | 日志 | 下载链接 |
|---|---|---|---|
| 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 | >>>>> | |
| 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-06-23 17:42:51] CI执行结束


流水线任务触发成功
任务链接 [b17be5660b7d4d5e965dcbf725bdebe3][流水线指导]
| 任务名称 | 状态 | 日志 | 下载链接 |
|---|---|---|---|
| codecheck | ✅ SUCCESS | >>>>> | |
| antipoison | ✅ SUCCESS | >>>>> | |
| codecheck_checkpr | ✅ SUCCESS | ||
| StaticCheck_codespell_check | ✅ SUCCESS | ||
| StaticCheck_link_validity_check | ✅ SUCCESS | ||
| StaticCheck_resource_existence_check | ✅ SUCCESS | ||
| StaticCheck_tag_closed_check | ✅ SUCCESS | ||
| StaticCheck_markdownlint | ✅ SUCCESS | ||
| codecheck_style | ✅ SUCCESS | >>>>> | |
| codecheck_precommit | ⚠️ WARNING | >>>>> | >>>>> |
| SCA | ✅ SUCCESS | >>>>> |
[2026-06-23 17:20:24] CI执行结束


/lgtm
/approve


The following users do not have permission to comment /lgtm or /approve on any module in this PR:
商晓波


The following users do not have permission to comment /lgtm or /approve on any module in this PR:
商晓波


/lgtm
/approve


The following users do not have permission to comment /lgtm or /approve on any module in this PR:
商晓波


The following users do not have permission to comment /lgtm or /approve on any module in this PR:
商晓波


/approve


The following users do not have permission to comment /lgtm or /approve on any module in this PR:
商晓波


变更摘要
该 PR 是对 pooling 系列算子的回退操作,主要将此前引入的独立 kernel 编译模式(通过各算子 op_kernel 目录下的 CMakeLists.txt 单独编译 arch35/*.cpp)回退为 APT(Auto Parallel Tiling)模式。具体改动包括:在各算子的 op_host/*_def.cpp 中为 ascend950 配置添加 .ExtendCfgInfo("opFile.value", "...") 指向对应的 *_apt.cpp 文件;将 kernel 源文件从 op_kernel/arch35/*.cpp 移动到 op_kernel/*_apt.cpp,并相应调整 #include 路径(从直接引用改为 arch35/ 前缀的相对引用);删除各算子 op_kernel 目录下的 CMakeLists.txt。
主要改动
- 添加 APT 配置文件指向:在 10 个算子的
op_host/*_def.cpp中为ascend950的OpAICoreConfig追加.ExtendCfgInfo("opFile.value", "<算子名>_apt"),使框架在编译时能找到对应的 APT kernel 入口文件。 - Kernel 文件重命名与位置移动:将 10 个
op_kernel/arch35/*.cpp重命名并移动到op_kernel/*_apt.cpp,同时删除各op_kernel/CMakeLists.txt(共 10 个),移除独立的add_kernel_sources编译配置。 - Include 路径适配:在移动后的
*_apt.cpp文件中,将原来不带路径的#include "xxx.h"改为带arch35/前缀的路径(如#include "arch35/avg_pool_struct.h"),或使用../相对路径引用共享 common 头文件。 \fileDoxygen 注释错误:avg_pool_grad_apt.cpp的\file被错误写成avg_pool_v2_grad.cpp;avg_pool_v2_apt.cpp的\file被错误写成avg_pool_apt.cpp;max_pool3_d_apt.cpp的\file被错误写成pool_3d.cpp,均与实际文件名不匹配。- 格式退化:
avg_pool_grad_def.cpp和avg_pool_v2_grad_def.cpp在第 10 行引入了尾随空白字符,且第 12-14 行的/*!Doxygen 注释块丢失了前导空格缩进。


描述
回退pooling,由于该算子未从cann仓完全迁出,导致的配置文件冲突
关联的Issue
#3506
测试
文档更新
类型标签