Merged
fix(5162a): 区分 5162 的 soc 版本与短名/series 命名 #15086
fix(5162a): 区分 5162 的 soc 版本与短名/series 命名 #15086
Merged
wuxueningAdd on 14 days ago
wuxuening
14 days ago

描述

对于 Ascend5162 芯片,区分 soc 版本与短名/series 命名(对齐 MC62/Ascend950 惯例):

  • soc 版本:保留 Ascend5162A/ascend5162a
  • 短名/series:ascend5162a 更名为 ascend5162

涉及:CMakeLists.txt(ASCEND_ALL_COMPUTE_UNIT/SOC_VERSION_LIST)、build.sh(SUPPORT_COMPUTE_UNIT_SHORT)、cmake/func.cmake(mc2 跳过)、const_var.py / opdesc_parser.py / parse_compile_scope.py(compute unit → soc 版本映射键更名,值保留 Ascend5162A)

与 opbase PR #1110、canndev PR #82674、ops-math PR #6969、ops-nn PR #13255、ops-cv PR #2364 配套。

关联的Issue

https://gitcode.com/cann/ops-transformer/issues/7054

测试

  • pre-commit 全量 hook 通过
  • 构造三套环境实测三个分支打印路径输出正确

文档更新

无

likedislike
Pull Request has been successfully merged by CANN-robot.
(Thank you for wuxuening's contribution.)
Wwuxuening
14 days ago Created pull request, commit c4b7c080
Wwuxuening
14 days ago Associated issue: [Bug-Report|缺陷反馈]: 蓝区2.13最新版本cann包需要更新,编译grouped_matmul算子报错
CANN-robotCANN-robotCollaborators
14 days ago Added label: cann-cla/yes
CANN-robot
CANN-robotCollaborators
14 days ago Comments:

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
CMakeLists.txt ✅ wang-minbo, 蒋礼锐 (2/2) ✅ wang-minbo, 蒋礼锐 (2/1)
build.sh ✅ wang-minbo, 蒋礼锐 (2/2) ✅ wang-minbo, 蒋礼锐 (2/1)
cmake ✅ wang-minbo, 蒋礼锐 (2/2) ✅ wang-minbo, 蒋礼锐 (2/1)
scripts ✅ wang-minbo, 蒋礼锐 (2/2) ✅ wang-minbo, 蒋礼锐 (2/1)

💡 Tip:

  • Committer can comment /approve or /lgtm
  • Commenting /approve implies both code review (lgtm) and intent to merge (approve)

CLA Signature Pass

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

likedislike
CANN-robotCANN-robotCollaborators
14 days ago Set monologue815,jiang-lirui,Allan_Yu,wang-minbo,xtqh,liudan12,gaoxiang618,mabing1118,zzzzzzyf_ as approver
wuxuening
14 days ago Comments:

/compile

likedislike
CANN-robotCANN-robotCollaborators
14 days ago Set monologue815,jiang-lirui,Allan_Yu,wang-minbo,xtqh,liudan12,gaoxiang618,mabing1118,zzzzzzyf_ as approver
Wwuxuening
14 days ago Pre merge succeeded (commit_id: 66d80645dd0a20b26f9f2ec1cadfc7e6022d3a1a)
CANN-robot
CANN-robotCollaborators
14 days ago Comments:
🚀 CI 流水线已启动
📋 执行详情: 点击查看流水线
likedislike
CANN-robotCANN-robotCollaborators
14 days ago Added label: ci-pipeline-running
CANN-robotCANN-robotCollaborators
14 days ago Removed label: ci-pipeline-running
CANN-robotCANN-robotCollaborators
14 days ago Added label: ci-pipeline-failed
CANN-robot
CANN-robotCollaborators
14 days ago Comments:

流水线分析报告 — ops-transformer run#13605

流水线: https://gitcode.com/CANN/ops-transformer/actions/runs/673a8679cde44e15a04561d1137de638 | PR#15086 | 2026-10-31 18:47:41 ~ 18:51:25 | 失败 Job 1 个

定界结论: 工程问题 / 配置错误(门禁脚本逻辑缺陷,非 PR 代码问题)
  • 失败类型: 工程问题
  • 根因: Check_examples_ut 的 pr_filelist 未解析到算子(PR 仅改构建/CMake 配置,无算子目录变更),检查脚本在此处中断,未生成 check_examples_ut.csv,后续上传步骤报 Artifact path not found
  • 处置建议: 转 CI 维护者修复 Check_examples_ut 门禁——无算子变更时应跳过检查或生成空报告,不应中断导致产物缺失
  • 排除项: 非编译错误、非环境/网络问题;全部 Compile Job 通过;API_Check/UT/PreSmoke_A2 为前置失败未启动(INIT),无独立失败

失败根因分析

根因 #1: 工程问题 / 配置错误 — Check_examples_ut 在无算子变更时中断,未产出报告
  • 判据: pr_filelist未解析到算子: pr_filelist.txt(3_check_examples_ut.log),随后 Artifact path not found: .../build/check_examples_ut.csv(4_upload_check_report.log)
  • 定位步骤: 3_check_examples_ut.log → 4_upload_check_report.log
  • 影响 Job: Check_examples_ut
  • 根因证据(日志原文):
[2026-10-31 18:49:08] ::debug::Executing: bash -e /usr1/runner/workers/***.version/_temp/5e8245ee-93d4-4892-96ef-9db8e1301f31.sh
[2026-10-31 18:49:08] pr_filelist未解析到算子: pr_filelist.txt
[2026-10-31 18:49:09] [RUN] Artifact path not found: /usr1/runner/workers/***.version/worker_dir/cann/ops-transformer/build/check_examples_ut.csv
[2026-10-31 18:49:09] ::error::Artifact path not found: /usr1/runner/workers/***.version/worker_dir/cann/ops-transformer/build/check_examples_ut.csv
  • 关联分析: 本次 run 的 pr_filelist.txt 仅 172 B,下载成功;PR#15086 变更 7 个文件,全部为构建/CMake 配置(CMakeLists.txt、build.sh、cmake/func.cmake、cmake/scripts/parse_compile_scope.py、cmake/scripts/util/const_var.py、cmake/scripts/util/opdesc_parser.py、scripts/util/const_var.py),内容均为 SoC 别名 ascend5162a → ascend5162 重命名,不含任何算子源码目录,故 pr_filelist 解析不到算子属预期结果;门禁脚本未处理该空集合场景,直接中断并导致产物缺失。
结构化定界摘要
[{"repo": "ops-transformer", "run_number": 13605, "Failed_Type": "工程问题", "Failed_Sub_Type": "配置错误", "Failed_Reason": "Check_examples_ut 的 pr_filelist 未解析到算子:PR#15086 仅改构建/CMake 配置(SoC 别名 ascend5162a→ascend5162),无算子目录变更,检查脚本中断未生成 check_examples_ut.csv,上传步骤报 Artifact path not found", "evidence": "pr_filelist未解析到算子: pr_filelist.txt | ::error::Artifact path not found: /usr1/runner/workers/***.version/worker_dir/cann/ops-transformer/build/check_examples_ut.csv", "suggestion": "转 CI 维护者修复 Check_examples_ut 门禁:无算子变更时跳过检查或生成空报告;非 PR 代码问题", "jobs": "Check_examples_ut"}]

由门禁失败定界分析自动生成 | repo: ops-transformer | run: 673a8679cde44e15a04561d1137de638 | PR#15086

likedislike
wuxuening
13 days ago Comments:

/compile

likedislike
Wwuxuening
13 days ago Pre merge succeeded (commit_id: 13d64f83c663e6bbedb04235d9fac83e355e684c)
CANN-robot
CANN-robotCollaborators
13 days ago Comments:
🚀 CI 流水线已启动
📋 执行详情: 点击查看流水线
likedislike
CANN-robotCANN-robotCollaborators
13 days ago Removed label: ci-pipeline-failed
CANN-robotCANN-robotCollaborators
13 days ago Added label: ci-pipeline-running
CANN-robotCANN-robotCollaborators
13 days ago Removed label: ci-pipeline-running
CANN-robotCANN-robotCollaborators
13 days ago Added label: ci-pipeline-passed
wuxuening
12 days ago Comments:
likedislike
wuxuening
12 days ago Comments:

/check-pr

likedislike
CANN-robot
CANN-robotCollaborators
12 days ago Comments:

The following labels are not ready.

lgtm: Please wait for committers to review the code.

approved: Please wait for committers to review the code.

likedislike
Wwuxuening
12 days ago Associated issue: [Bug-Report|缺陷反馈]: QuantGroupedMatmulInplaceAdd ACLNN 样例未构造 TN 所需的转置 view
Wwuxuening
12 days ago Deleted associated issue: [Bug-Report|缺陷反馈]: QuantGroupedMatmulInplaceAdd ACLNN 样例未构造 TN 所需的转置 view
ldsldsCollaborators
12 days ago Deleted associated issue: [Bug-Report|缺陷反馈]: 蓝区2.13最新版本cann包需要更新,编译grouped_matmul算子报错
wang-minboCollaborators
12 days ago Comments:

/lgtm
/approve

likedislike
CANN-robotCANN-robotCollaborators
12 days ago Added label: approved
5 event messages are collapsed here。 See more
ldsldsCollaborators
12 days ago Deleted associated issue: [Bug-Report|缺陷反馈]: 蓝区2.13最新版本cann包需要更新,编译grouped_matmul算子报错
jiang-liruiCollaborators
12 days ago Comments:

/approve
/lgtm

likedislike
CANN-robotCANN-robotCollaborators
12 days ago Added label: lgtm
CANN-robotCANN-robotCollaborators
12 days ago Closed associated issue
CANN-robotCANN-robotCollaborators
12 days ago Merged pull request