external-cannbot-ops-ascendc-env-check
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "external-cannbot-ops-ascendc-env-check" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-a1823e3402207c03dd3f30cfae5c657f1fd8568f840f6590776cf555ad294a54. Verify the upstream source and version against https://github.com/ascend-ai-coding/awesome-ascend-skills before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
github.com
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Ascend C operator development environment check tool. Used for: (1) querying NPU device information via npu-smi (device list, status, resource usage), (2) check.
Introduction source: third_party · ascend-ai-coding · 0.0.1 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Software, accounts and paid services
- Translation pending; see source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: external-cannbot-ops-ascendc-env-check
description: Ascend C 算子开发环境检查技能。用于:(1) 通过 npu-smi 查询 NPU 设备信息(设备列表、状态、资源使用),(2) 检查
CANN 环境配置(CANN Toolkit、Ops、自定义算子包),(3) 验证开发依赖是否完整。触发关键词:环境检查、NPU设备、npu-smi、CANN安装、设备查询、资源监控、检查CANN环境变量。
original-name: ascendc-env-check
synced-from: https://gitcode.com/cann/cannbot-skills
synced-date: '2026-05-26'
synced-commit: ac5bbd2b4cf427d011874e11f8d1e8b1bef66eda
license: UNKNOWNAscend C 环境检查
快速检查开发环境配置和 NPU 设备状态。
工作流程
环境检查
│
├─ NPU 设备检查
│ └─ npu-smi list / scripts/npu_info.sh
│
└─ CANN 环境检查
└─ scripts/check_env.sh
NPU 设备检查
快速命令
# 查看设备详细信息(包含设备列表)
npu-smi info
# 监控设备资源
npu-smi top
脚本工具
# 综合 NPU 信息(推荐)
bash scripts/npu_info.sh
详细命令参数见 npu_commands.md,npu-smi 不可用时的回退方案见 asys_commands.md
CANN 环境检查
# 完整环境检查(推荐)
bash scripts/check_env.sh
检查项
| 检查项 | 说明 | 必需 |
|---|---|---|
| ASCEND_HOME_PATH | CANN Toolkit 路径 | 是 |
| CANN 版本 | 检测版本号及运行时依赖基线 | 建议确认 |
| ASCEND_OPP_PATH | CANN Ops 路径 | 运行时必需 |
| 自定义算子包 | op_api 库 | 运行自定义算子必需 |
| CANN 工具 | msprof/cannsim | 可选 |
⚠️ 注意:官方环境变量为
ASCEND_HOME_PATH,不是ASCEND_HOME。部分旧文档或示例代码可能使用ASCEND_HOME,这是错误用法。
详细环境配置见 env_config_guide.md,版本配套关系见其中「CANN 版本兼容性」章节
诊断脚本
| 脚本 | 用途 |
|---|---|
scripts/npu_info.sh |
NPU 设备信息综合查询 |
scripts/check_env.sh |
CANN 环境配置检查 |
常见问题
- NPU 不可见:检查
npu-smi list是否能识别设备 - 算子运行失败:优先运行
check_env.sh检查环境配置 - 确认是否有进程占用 NPU:使用
npu-smi info -t usages -i <device_id>查看运行中的进程;注意空闲设备仍会有少量 HBM 被驱动占用(正常现象),不应误判为设备被占用
详细排查见 troubleshooting.md
Current listing version
0.0.1
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 提供 Ascend C 算子开发环境检查的完整流程
- 涵盖 NPU 设备查询与 CANN 环境配置验证两大核心功能
Highlights
- 触发词覆盖全面且边界清晰
- 支持多种用户表达变体
Areas to improve
-
缺少 When to Use 章节 Reported severity: Minor
文档结构完整但缺少明确的 When to Use 使用场景说明章节
Recommendation: 建议在文档开头增加 When to Use 章节,明确说明本技能适用的典型场景和使用时机
Highlights
- 工作流程图清晰直观
- 提供了完整的命令行示例和脚本调用方式
Areas to improve
-
引用文件缺失 Reported severity: Major
SKILL.md 中引用了 references/npu_commands.md、references/asys_commands.md、references/env_config_guide.md、references/troubleshooting.md 等多个文件,但这些文件未包含在传入的 ZIP 包中
Recommendation: 请确保所有被引用的参考文档文件都包含在 Skill 包内,或移除无法提供的引用链接
Highlights
- 对空闲设备 HBM 占用有正常现象说明,避免用户误判
- 提供了常见问题的初步排查指引
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
-
Invoke commands or scripts
Read the script and arguments first. Use ordinary privileges and a scoped directory; confirm installation or execution in your host tool.
Mentioned in main document · lines 44, 53
Domains or addresses referenced in the document
These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.
- gitcode.com
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Translation pending; see source documentation.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.