Skip to content

feat: support Ascend 950 NPU - #1719

Merged
SAKURA-CAT merged 1 commit into
mainfrom
feature/add-950pr-support
Aug 2, 2026
Merged

feat: support Ascend 950 NPU#1719
SAKURA-CAT merged 1 commit into
mainfrom
feature/add-950pr-support

Conversation

@ShaohonChen

@ShaohonChen ShaohonChen commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

描述

修复 Ascend 950 NPU 的检测与监控问题。

Ascend 950 的 npu-smi info -m 输出新增了 Slot IDChip Phy-ID 字段,并且不支持旧版的 -c 参数。

本次修改:

  • 同时解析旧版与 Ascend 950 的设备映射格式;
  • Ascend 950 的指标查询不再传入 -c
  • 保持旧版 Ascend 设备的原有行为;
  • 为两种映射格式新增单元测试。

验证

  • Ascend950PR,npu-smi 25.7.rc1
  • uv run ruff check .
  • uv run basedpyright
  • uv run pytest tests/unit
  • 结果:1562 passed,21 skipped

实机验证

  • 950上跑了一版本实验,能正常记录

@ShaohonChen
ShaohonChen marked this pull request as ready for review July 29, 2026 12:04
@ShaohonChen
ShaohonChen requested a review from Nexisato July 29, 2026 12:04
@Nexisato

Copy link
Copy Markdown
Collaborator

910 也能正常记录就行

@ShaohonChen

Copy link
Copy Markdown
Contributor Author

诶等我测测

@Nexisato Nexisato added the ✈️ integration Integration other frameworks label Jul 29, 2026
@SAKURA-CAT

Copy link
Copy Markdown
Member

诶等我测测

测了吗

@SAKURA-CAT SAKURA-CAT changed the title Add Ascend 950 NPU support feat: support Ascend 950 NPU Aug 2, 2026
@SAKURA-CAT
SAKURA-CAT merged commit 311703b into main Aug 2, 2026
19 checks passed
@SAKURA-CAT
SAKURA-CAT deleted the feature/add-950pr-support branch August 2, 2026 09:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

✈️ integration Integration other frameworks

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants