已合并
自定义算子包名称修改以及opapi ut coredump问题修复 #2600
yang-di52创建于 3月12日
自定义算子包名称修改以及opapi ut coredump问题修复 #2600
已合并
yang-di52创建于 3月12日
yang-di52成员
3月12日

描述

自定义算子包名称修改以及opapi ut coredump问题修复

关联的Issue

#1441

测试

文档更新

类型标签

likedislike
Pull Request已成功合入, 合并人@CANN-robot
(感谢 yang-di52 的贡献)
Yyang-di52成员
3月12日 创建了 pull request,commit 47a0da12
CANN-robotCANN-robot成员
3月12日 添加了label:stat/needs-squash
CANN-robot
CANN-robot成员
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 /approve or /lgtm
  • Commenting /approve implies both code review (lgtm) and intent to merge (approve)
likedislike
CANN-robotCANN-robot成员
3月12日 将sxb154714,chaotang233,crystalhu,fanqirui,zhou-qilong,zhajianqing123,chenqi317,liubo75,tangweiwei2,wangzitao_leo,zhangyuxiang0119,liujie12345678,wangyongguang,zhang-wu设为评审人
CANN-robotCANN-robot成员
3月12日 添加了label:cann-cla/yes
CANN-robotCANN-robot成员
3月12日 将sxb154714,chaotang233,crystalhu,fanqirui,zhou-qilong,zhajianqing123,chenqi317,liubo75,tangweiwei2,wangzitao_leo,zhangyuxiang0119,liujie12345678,wangyongguang,zhang-wu设为审查人
CANN-robot
CANN-robot成员
3月12日 评论:

🔵 source code change are detected, tasks labels is removed in this pull request!

likedislike
Yyang-di52成员
3月12日 修改了pull request 的描述
yang-di52成员
3月12日 评论:

compile

likedislike
CANN-robot
CANN-robot成员
3月12日 评论:

问题/功能描述

本次PR主要包含两项核心变更:一是修正构建系统生成的软件包命名格式,以符合统一规范;二是优化CI/CD脚本的健壮性和构建配置的正确性。具体解决了自定义算子包名格式不一致、脚本因文件路径匹配不精确而执行失败,以及单元测试环境变量设置不当的问题。

修改方案描述

  1. 构建配置与代码风格优化:将CMake配置中的包名格式从cann-ops-nn-${VENDOR_NAME}-linux.${ARCH}统一为cann-ops-nn-${VENDOR_NAME}_linux-${ARCH},并在两个算子实现文件中添加空行以提升代码可读性。
  2. CI/CD脚本逻辑修复与增强:将脚本中匹配.run安装包的通配符从cann-ops-nn-${name}-linux.*.run放宽为cann-ops-nn-${name}*.run,以兼容更多文件名后缀;将单元测试的过滤规则从*_def.h调整为*/op_api/*;并修复了CMake中非ASAN模式下运行单元测试的环境变量设置方式,确保其原子性。
likedislike
CANN-robotCANN-robot成员
3月12日 添加了label:ci-pipeline-running
CANN-robot
CANN-robot成员
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执行结束

likedislike
CANN-robotCANN-robot成员
3月12日 添加了label:api-check-pass
此处折叠了6条事件消息 查看更多
CANN-robotCANN-robot成员
3月12日 删除了label:ci-pipeline-passed
CANN-robot
CANN-robot成员
3月12日 评论:

Notification

This pull request source branch has changed, so removes the following label(s): ci-pipeline-passed.

likedislike
CANN-robotCANN-robot成员
3月12日 移除了评审人sxb154714,chaotang233,wangzitao_leo,liujie12345678,wangyongguang,zhang-wu
CANN-robotCANN-robot成员
3月12日 移除了审查人sxb154714,chaotang233,wangzitao_leo,liujie12345678,wangyongguang,zhang-wu
CANN-robot
CANN-robot成员
3月12日 评论:

CLA Signature Pass

yang-di52, thanks for your pull request. All authors of the commits have signed the CLA. 👍

likedislike
CANN-robot
CANN-robot成员
3月12日 评论:

🔵 source code change are detected, tasks labels is removed in this pull request!

likedislike
yang-di52成员
3月12日 评论:

compile

likedislike
CANN-robotCANN-robot成员
3月12日 添加了label:ci-pipeline-running
CANN-robotCANN-robot成员
3月12日 删除了label:api-check-pass
CANN-robot
CANN-robot成员
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
likedislike
CANN-robotCANN-robot成员
3月12日 添加了label:api-check-pass
CANN-robotCANN-robot成员
3月12日 删除了label:ci-pipeline-running
CANN-robotCANN-robot成员
3月12日 添加了label:ci-pipeline-failed
yang-di52成员
3月12日 评论:

compile

likedislike
CANN-robotCANN-robot成员
3月12日 删除了label:ci-pipeline-failed
CANN-robotCANN-robot成员
3月12日 添加了label:ci-pipeline-running
CANN-robotCANN-robot成员
3月12日 删除了label:api-check-pass
CANN-robot
CANN-robot成员
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执行结束

likedislike
CANN-robotCANN-robot成员
3月12日 添加了label:api-check-pass
CANN-robotCANN-robot成员
3月12日 删除了label:ci-pipeline-running
CANN-robotCANN-robot成员
3月12日 添加了label:ci-pipeline-passed
chenqi317成员
3月12日 评论:

/lgtm
/approve

likedislike
CANN-robotCANN-robot成员
3月12日 添加了label:approved
范其瑞
范其瑞成员
3月12日 评论:

/lgtm

likedislike
CANN-robotCANN-robot成员
3月12日 添加了label:lgtm
CANN-robot
CANN-robot成员
3月12日 评论:

Review Guide

This pull-request passes review.
Committers who wrote a comment of /approve are: chenqi317.
Reviewers who wrote a comment of /lgtm are: chenqi317, fanqirui.

likedislike
CANN-robotCANN-robot成员
3月12日 关闭了关联的issue
CANN-robotCANN-robot成员
3月12日 合入了pull request