已合并
[fix] Init version in GetCANNVersion and delete unnecessary warning #38123
zhaoyu65创建于 6月10日
[fix] Init version in GetCANNVersion and delete unnecessary warning #38123
已合并
zhaoyu65创建于 6月10日
zhaoyu65
zhaoyu65成员
6月10日

【合入来源】

如有社区issue,请关联issue链接
请勿携带内部流程信息(需求链接、问题单、内部issue等)

#2346

【修改方案】

  • 核心变更:

    • 🔧 修复了CANN版本获取函数中的错误处理逻辑,从特定错误码检查改为通用成功状态检查
    • ✅ 增强了错误日志,新增错误码输出以便调试
    • 🧹 简化了Python环境收集工具,移除了路径所有者一致性检查
    • 🛡️ 修复了C++结构体未初始化的潜在问题

【资料变更】

不涉及

【接口变更】

不涉及

【功能验证】

验证OK
测试用例test\npu\test_cann_version.py已纳入门禁看护

【CheckList】

PR提交人对以下CheckList自检项进行全量自检,自检通过或不涉及,均修改 [ ] 为 [x]

likedislike
Pull Request已成功合入, 合并人@ascend-robot
(感谢 zhaoyu65 的贡献)
zhaoyu65zhaoyu65成员
6月10日 创建了 pull request,commit 77013d23
ascend-robotascend-robot成员
6月10日 添加了label:ascend-cla/yes
ascend-robot
ascend-robot成员
6月10日 评论:

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
repo-Ascend/pytorch 李伟, liujunzhu (2/2) 李伟 (1/1)
test 李伟, liujunzhu (2/2) 李伟 (1/1)
torch_npu/profiler 李伟, liujunzhu (2/2) 李伟 (1/1)
torch_npu/utils 李伟, liujunzhu (2/2) 李伟 (1/1)

💡 Tip:

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

CLA Signature Pass

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

likedislike
ascend-robot
ascend-robot成员
6月10日 评论:

当前仓库存在以下 保护分支

Protected Branch Version Release
master
v2.7.1
v2.7.1-26.1.0
v2.11.0
v2.10.0
v2.12.0
v2.9.0
v2.9.0-26.1.0
v2.12.0-26.1.0
v2.11.0-26.1.0
v2.10.0-26.1.0
ci-test
sync-pr28113--to-v2.9.0

评论 /sync <branch1> <branch2> ... 可将当前 PR 修改同步到其它分支(创建同步 PR):
a) 如果当前 PR 是 Open 状态,同步操作将延迟到 PR 被合并时执行
b) 如果当前 PR 已经 Merged,将立即执行同步操作

注意:

  1. /sync 命令可以指定同步到多个分支,仅最后一个 /sync 命令生效
  2. 如果创建的同步 PR 不正确,可通过向同步 PR 的源分支提交轻量级 PR 完善,或使用 /close 命令关闭
likedislike
此处折叠了216条消息 查看更多
ascend-robotascend-robot成员
6月30日 添加了label:approved
liujunzhu
liujunzhu成员
6月30日 评论:

/lgtm

likedislike
ascend-robotascend-robot成员
6月30日 添加了label:lgtm
ascend-robotascend-robot成员
6月30日 合入了pull request
ascend-robot
ascend-robot成员
6月30日 评论:
流水线 pytorch_gitcode_PR_multiVersion#11593 [ commitID:8e944059 ] 已完成
likedislike