已合并
自定义算子包名称修改以及opapi ut coredump问题修复 #2600
yang-di52创建于 3月12日
自定义算子包名称修改以及opapi ut coredump问题修复 #2600
已合并
Pull Request已成功合入, 合并人@CANN-robot
(感谢 yang-di52 的贡献)3月12日 添加了label:stat/needs-squash
CANN-robot
3月12日 评论:
3月12日 评论:
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 |
|---|---|---|
| cmake | ✅ chenqi317, fanqirui (2/2) | ✅ chenqi317 (1/1) |
| docs | ✅ chenqi317, fanqirui (2/2) | ✅ chenqi317 (1/1) |
| scripts | ✅ chenqi317, fanqirui (2/2) | ✅ chenqi317 (1/1) |
| tests | ✅ fanqirui, chenqi317 (2/2) | ✅ chenqi317 (1/1) |
💡 Tip:
- Committer can comment
/approveor/lgtm- Commenting
/approveimplies both code review (lgtm) and intent to merge (approve)


3月12日 将sxb154714,chaotang233,crystalhu,fanqirui,zhou-qilong,zhajianqing123,chenqi317,liubo75,tangweiwei2,wangzitao_leo,zhangyuxiang0119,liujie12345678,wangyongguang,zhang-wu设为评审人
3月12日 将sxb154714,chaotang233,crystalhu,fanqirui,zhou-qilong,zhajianqing123,chenqi317,liubo75,tangweiwei2,wangzitao_leo,zhangyuxiang0119,liujie12345678,wangyongguang,zhang-wu设为评审人
3月12日 添加了label:cann-cla/yes
3月12日 将sxb154714,chaotang233,crystalhu,fanqirui,zhou-qilong,zhajianqing123,chenqi317,liubo75,tangweiwei2,wangzitao_leo,zhangyuxiang0119,liujie12345678,wangyongguang,zhang-wu设为审查人
3月12日 将sxb154714,chaotang233,crystalhu,fanqirui,zhou-qilong,zhajianqing123,chenqi317,liubo75,tangweiwei2,wangzitao_leo,zhangyuxiang0119,liujie12345678,wangyongguang,zhang-wu设为审查人
CANN-robot
3月12日 评论:
3月12日 评论:
🔵 source code change are detected, tasks labels is removed in this pull request!


CANN-robot
3月12日 评论:
3月12日 评论:
问题/功能描述
本次PR主要包含两项核心变更:一是修正构建系统生成的软件包命名格式,以符合统一规范;二是优化CI/CD脚本的健壮性和构建配置的正确性。具体解决了自定义算子包名格式不一致、脚本因文件路径匹配不精确而执行失败,以及单元测试环境变量设置不当的问题。
修改方案描述
- 构建配置与代码风格优化:将CMake配置中的包名格式从
cann-ops-nn-${VENDOR_NAME}-linux.${ARCH}统一为cann-ops-nn-${VENDOR_NAME}_linux-${ARCH},并在两个算子实现文件中添加空行以提升代码可读性。 - CI/CD脚本逻辑修复与增强:将脚本中匹配
.run安装包的通配符从cann-ops-nn-${name}-linux.*.run放宽为cann-ops-nn-${name}*.run,以兼容更多文件名后缀;将单元测试的过滤规则从*_def.h调整为*/op_api/*;并修复了CMake中非ASAN模式下运行单元测试的环境变量设置方式,确保其原子性。


3月12日 添加了label:ci-pipeline-running
CANN-robot
3月12日 评论:
3月12日 评论:
流水线任务触发成功
任务链接 [de60c4947a634c8ca5674595dade8daa][流水线指导]
| 任务名称 | 状态 | 日志 | 下载链接 |
|---|---|---|---|
| 解析CI分支 | ✅ SUCCESS | ||
| codecheck | ✅ SUCCESS | >>>>> | |
| anti_virus | ✅ SUCCESS | >>>>> | |
| Check_Pr | ✅ SUCCESS | >>>>> | |
| 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 | >>>>> | >>>>> |
| API_Check | ✅ SUCCESS | >>>>> | |
| Pre_Compile | ✅ SUCCESS | ||
| pre_comment | ✅ SUCCESS | >>>>> | |
| Compile_Ascend_X86 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_X86_mobile_station_ubuntu24 | ✅ SUCCESS | >>>>> | |
| Compile_Ascend_X86_950_ubuntu24 | ✅ SUCCESS | >>>>> | |
| UT_Test_ophost | ✅ SUCCESS | ||
| UT_Test_opapi | ✅ SUCCESS | ||
| UT_Test_kernel | ✅ SUCCESS | ||
| UT_Test_opgraph | ✅ SUCCESS | ||
| Smoke_A900_npupool | ✅ SUCCESS | >>>>> |
[2026-03-12 11:40:09] CI执行结束


3月12日 添加了label:api-check-pass
此处折叠了6条事件消息 查看更多
3月12日 删除了label:ci-pipeline-passed
CANN-robot
3月12日 评论:
3月12日 评论:
3月12日 移除了评审人sxb154714,chaotang233,wangzitao_leo,liujie12345678,wangyongguang,zhang-wu
3月12日 移除了审查人sxb154714,chaotang233,wangzitao_leo,liujie12345678,wangyongguang,zhang-wu
CANN-robot
3月12日 评论:
3月12日 评论:
CANN-robot
3月12日 评论:
3月12日 评论:
🔵 source code change are detected, tasks labels is removed in this pull request!


3月12日 添加了label:ci-pipeline-running
3月12日 删除了label:api-check-pass
CANN-robot
3月12日 评论:
3月12日 评论:
流水线任务触发成功
任务链接 [5f944dbe303240cab42a013ff3dc6bfd][流水线指导]
| 任务名称 | 状态 | 日志 | 下载链接 |
|---|---|---|---|
| 解析CI分支 | ✅ SUCCESS | ||
| codecheck | ✅ SUCCESS | >>>>> | |
| anti_virus | ✅ SUCCESS | >>>>> | |
| Check_Pr | ✅ SUCCESS | >>>>> | |
| 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 | >>>>> | >>>>> |
| API_Check | ✅ SUCCESS | >>>>> | |
| Pre_Compile | ✅ SUCCESS | ||
| pre_comment | ✅ SUCCESS | >>>>> | |
| Compile_Ascend_X86 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_X86_mobile_station_ubuntu24 | ✅ SUCCESS | >>>>> | |
| Compile_Ascend_X86_950_ubuntu24 | ✅ SUCCESS | >>>>> | |
| UT_Test_ophost | ✅ SUCCESS | ||
| UT_Test_opapi | ✅ SUCCESS | ||
| UT_Test_kernel | ✅ SUCCESS | ||
| UT_Test_opgraph | ✅ SUCCESS | ||
| Smoke_A900_npupool | ❌ FAILED |


3月12日 添加了label:api-check-pass
3月12日 删除了label:ci-pipeline-running
3月12日 添加了label:ci-pipeline-failed
3月12日 删除了label:ci-pipeline-failed
3月12日 添加了label:ci-pipeline-running
3月12日 删除了label:api-check-pass
CANN-robot
3月12日 评论:
3月12日 评论:
流水线任务触发成功
任务链接 [677de9f274ee40ab8bc39da4c52f1b37][流水线指导]
| 任务名称 | 状态 | 日志 | 下载链接 |
|---|---|---|---|
| 解析CI分支 | ✅ SUCCESS | ||
| codecheck | ✅ SUCCESS | >>>>> | |
| anti_virus | ✅ SUCCESS | >>>>> | |
| Check_Pr | ✅ SUCCESS | >>>>> | |
| 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 | >>>>> | >>>>> |
| API_Check | ✅ SUCCESS | >>>>> | |
| Pre_Compile | ✅ SUCCESS | ||
| pre_comment | ✅ SUCCESS | >>>>> | |
| Compile_Ascend_X86 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_X86_mobile_station_ubuntu24 | ✅ SUCCESS | >>>>> | |
| Compile_Ascend_X86_950_ubuntu24 | ✅ SUCCESS | >>>>> | |
| UT_Test_ophost | ✅ SUCCESS | ||
| UT_Test_opapi | ✅ SUCCESS | ||
| UT_Test_kernel | ✅ SUCCESS | ||
| UT_Test_opgraph | ✅ SUCCESS | ||
| Smoke_A900_npupool | ✅ SUCCESS | >>>>> |
[2026-03-12 15:48:29] CI执行结束


3月12日 添加了label:api-check-pass
3月12日 删除了label:ci-pipeline-running
3月12日 添加了label:ci-pipeline-passed
3月12日 添加了label:approved
范其瑞
3月12日 评论:
3月12日 评论:
/lgtm


3月12日 添加了label:lgtm
CANN-robot
3月12日 评论:
3月12日 评论:
3月12日 关闭了关联的issue
3月12日 合入了pull request
描述
自定义算子包名称修改以及opapi ut coredump问题修复
关联的Issue
#1441
测试
文档更新
类型标签