cann-nnal-installer
昇腾NPU CANN Toolkit+Kernels+NNAL安装部署技能。支持从官网下载run包安装和从Docker镜像提取两种方式,覆盖驱动检查、包下载、安装、环境变量配置与验证全流程。当用户需要安装CANN全套组件或指定版本CANN到自定义路径时调用。
Skill by Ascend
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/ascend-cann-nnal-installer
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: devops
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/cann-nnal-installer
Tools it pre-approves 1
From allowed-tools in SKILL.md: the agent may use these without asking you each time.
Bash(*)
What's inside
- Skill name
cann-nnal-installer- Description
- 昇腾NPU CANN Toolkit+Kernels+NNAL安装部署技能。支持从官网下载run包安装和从Docker镜像提取两种方式,覆盖驱动检查、包下载、安装、环境变量配置与验证全流程。当用户需要安装CANN全套组件或指定版本CANN到自定义路径时调用。
- License
- MulanPSL-2.0
- Allowed tools
- Bash(*)
- Metadata
- how: 按照驱动检查→下载→安装(Toolkit→Kernels→NNAL)→环境变量配置→验证的固定流程执行。 · why: CANN是昇腾NPU开发的基础软件栈,但安装流程涉及多个组件和严格顺序,容易出错。 · what: 提供CANN Toolkit+Kernels+NNAL的端到端安装指导,支持离线run包安装和Docker镜像提取两种方式。 · jtbd-1: 当用户需要在新环境或Docker容器中安装指定版本的CANN Toolkit+Kernels+NNAL时。 · jtbd-2: 当用户需要将CANN安装到自定义路径(非默认/usr/local/Ascend)时。 · jtbd-3: 当用户因官网下载链接需要登录认证而无法直接wget获取CANN安装包时。 · results: 产出安装验证报告,确认Toolkit/Kernels/NNAL版本正确、环境变量生效、bisheng/atc等工具可用。 · updated: 2026-04-16T00:00:00Z · version: 1.0.0 · skill-type: env-setup · short-description: 安装CANN Toolkit、Kernels、NNAL到指定路径,支持run包和Docker镜像两种安装方式。
- Instructions
- 310 lines in SKILL.md · view on GitHub
Before installing
- Pre-approves any shell command
- Instructions call the network
Agent Skills spec issues
- body: contains an absolute path from the author's machine
Files (1)
- SKILL.md
SKILL.md (first lines)
# CANN Toolkit+Kernels+NNAL 安装部署
在昇腾NPU环境中安装CANN完整组件(Toolkit、Kernels、NNAL)到指定路径。
**核心原则**:安装顺序必须为 Toolkit → Kernels → NNAL,不可颠倒。NNAL依赖Toolkit的环境变量。
## 调用时机
- 用户要求安装CANN(含toolkit、kernels、nnal)
- 用户需要将CANN安装到自定义路径
- 用户在Docker容器中搭建昇腾开发环境
- 用户需要安装特定版本的CANN(如9.0.0-beta.2)
## 前置检查
### 第1步:检查NPU驱动
```bash
npu-smi info
```
**预期结果**:输出NPU设备信息(芯片型号、显存等)。
**异常处理**:如果 `command not found`,需先安装昇腾驱动和固件,参考 [ascend-npu-driver-install](../ascend-npu-driver-install/) 技能。
### 第2步:确认芯片型号
从 `npu-smi info` 输出中获取芯片型号,用于选择对应的Kernels包:
| 芯片型号 | Kernels包名后缀 |
|---------|----------------|
| 910B / 910B3 | `910b` |
| 910 | `910` |
| 310P | `310p` |
| 310B | `310b` |
### 第3步:确认系统架构
```bash
uname -m
```
- `aarch64`:ARM架构,选择 `_linux-aarch64.run`
- `x86_64`:x86架构,选择 `_linux-x86_64.run`
## 安装方式一:从官网下载run包安装
### 第4步:获取CANN安装包
访问昇腾社区下载中心获取安装包:
```
https://www.hiascend.com/developer/download/community/result?module=cann&cann=<版本号>
```
**需要下载的包**(3个):
| 包名 | 格式 | 说明 |
|------|------|------|
| `Ascend-cann-toolkit_<版本>_linux-<架构>.run` | run包 | 开发工具包(必须先安装) |
| `Ascend-cann-kernels-<芯片>_<版本>_linux-<架构>.run` | run包 | 算子库(依赖Toolkit) |
| `Ascend-cann-nnal_<版本>_linux-<架构>.run` | run包 | 加速库(依赖Toolkit环境变量) |
**注意**:官网下载链接需要登录认证,无法直接 `wget`。替代方案:
1. 浏览器登录后下载,再上传到服务器
2. 使用下方的"方式二:从Docker镜像提取"
### 第5步:安装Toolkit
```bash
INSTALL_PATH="<用户指定安装路径>"
chmod +x Ascend-cann-toolkit_*.run
./Ascend-cann-toolkit_*.run --install --install-path="${INSTALL_PATH}"
```
**默认路径**:`/usr/local/Ascend`
**自定义路径示例**:`/home/user/run/cann900beta2`
### 第6步:安装Kernels
```bash
chmod +x Ascend-cann-kernels-*.run
./Ascend-cann-kernels-*.run --install --install-path="${INSTALL_PATH}"
```
### 第7步:配置Toolkit环境变量(NNAL安装前置条件)
```bash
source "${INSTALL_PATH}/ascend-toolkit/set_env.sh"
```
**关键**:NNAL安装脚本依赖 `ASCEND_TOOLKIT_HOME` 等环境变量,必须先source。
### 第8步:安装NNAL
```bash
chmod +x Ascend-cann-nnal_*.run
./Ascend-cann-nnal_*.run --install --install-path="${INSTALL_PATH}"
```
## 安装方式二:从Docker镜像提取
当无法直接下载run包时,可从华为官方CANN Docker镜像中提取已安装的CANN文件。
### 第4步:确认本地镜像
```bash
docker images | grep cann
```
华为官方CANN镜像标签格式:`quay.io/ascend/cann:<版本>-<芯片>-<OS>-py<Python版本>`
示例:`quay.io/ascend/cann:9.0.0-beta.2-910-openeuler24.03-py3.11`
如果没有本地镜像,先拉取:
```bash
docker pull quay.io/ascend/cann:9.0.0-beta.2-910-openeuler24.03-py3.11
```From Ascend/agent-skills, MulanPSL-2.0.
More from Ascend/agent-skills
- 0.573score
ascendc-operator-design
Ascend
完成AscendC算子设计 - 帮助用户完成算子的架构设计、接口定义和性能规划。当用户提到算子设计、算子开发、tiling策略、内存规划、AscendC kernel设计、两级tiling、核间切分、核内切分时,使用此skill。
SkillCFreshness: C★ 52Claude Code +9 - 0.573score
ascendc-operator-performance-optim
Ascend
排查并优化 Ascend C 算子性能。当用户开发、审查或优化 Ascend C kernel 算子时使用,或当用户提及 Ascend C 性能优化、算子优化、tiling、流水、搬运、 内存优化、NPU/昇腾等关键词时触发。
SkillCFreshness: C★ 52Claude Code +9 - 0.571score
ascend-transformer-boost
ascend-transformer-boost-team + Claude + Claude Code + deepseek-v4-pro
昇腾 Transformer 加速库(ATB)核心技能集索引(Index Skill)。 整合 8 大核心技能:CANN 安装部署、ATB 测试框架编译、 ATB→ACLNN 算子替换设计文档生成、ATB→ACLNN 算子迁移,覆盖昇腾 NPU 开发全链路。
SkillCFreshness: C★ 52Claude Code +9 - 0.570score
k8s-check-fix
Ascend
Kubernetes 集群健康检查与安全修复 — 诊断问题,用户确认后执行修复
SkillCFreshness: C★ 52Claude Code +9 - 0.522score
ascendc-operator-code-gen
Ascend
No description from the publisher yet.
SkillCFreshness: C★ 52Claude Code +9 - 0.514score
ascend-profiling-anomaly
Ascend
Analyze Huawei Ascend NPU profiling data to discover hidden performance anomalies and produce a detailed model architecture report reverse-engineered from…
SkillDFreshness: D★ 52Claude Code +9 - 0.514score
hccl-test
Ascend
HCCL (Huawei Collective Communication Library) performance testing for Ascend NPU clusters.
SkillDFreshness: D★ 52Claude Code +9 - 0.514score
ascendc-operator-performance-eval
Ascend
在 ascend-kernel 的 csrc/ops/<op>/test 下维护仅含 JSONL 的 profiler 性能用例,使用 torch_npu.profiler(固定 warmup=5、active=5)采集,汇总 ASCEND_PROFILER_OUTPUT/op_statistic.csv 的…
SkillDFreshness: D★ 52Claude Code +9 - 0.514score
ascendc-operator-code-review
Ascend
Ascend C 代码检视技能。基于假设检验方法论对代码进行安全规范检视。调用时必须明确提供:代码片段和检视规则描述。TRIGGER when: 用户要求代码检视、代码review、询问代码安全问题、检查编码规范、或需要检查特定代码问题(如内存泄漏、整数溢出、空指针等)。关键词:Ascend…
SkillDFreshness: D★ 52Claude Code +9 - 0.514score
ascend-docker
Ascend
Create Docker containers for Huawei Ascend NPU development with proper device mappings and volume mounts.
SkillDFreshness: D★ 52Claude Code +9 - 0.514score
megatron-migration-generator
Ascend
Generate migration deliverables for bringing relevant Megatron changes into MindSpeed after branch alignment and impact mapping are complete.
SkillDFreshness: D★ 52Claude Code +9 - 0.511score
ascendc-operator-precision-debug
Ascend
AscendC 算子精度问题调试与根因定位。当算子精度测试失败(allclose 不通过、结果偏差、输出全零/NaN 等)时使用。流程:误差分布分析 → 代码易错点审查 → 实验隔离 → printf/DumpTensor 插桩 → 修复验证。关键词:精度调试、精度问题、结果不一致、误差定位、allclose…
SkillDFreshness: D★ 52Claude Code +9
Signals
- Stars
- 52
- Forks
- 3
- Open issues
- 2
- Last commit (this folder)
- May 7, 2026 (5 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- Version
- 1.0.0
- License
- MulanPSL-2.0
- Repository
- github.com/Ascend/agent-skills
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from Ascend
- 0.573score
ascendc-operator-design
Ascend
完成AscendC算子设计 - 帮助用户完成算子的架构设计、接口定义和性能规划。当用户提到算子设计、算子开发、tiling策略、内存规划、AscendC kernel设计、两级tiling、核间切分、核内切分时,使用此skill。
SkillCFreshness: C★ 52Claude Code +9 - 0.573score
ascendc-operator-performance-optim
Ascend
排查并优化 Ascend C 算子性能。当用户开发、审查或优化 Ascend C kernel 算子时使用,或当用户提及 Ascend C 性能优化、算子优化、tiling、流水、搬运、 内存优化、NPU/昇腾等关键词时触发。
SkillCFreshness: C★ 52Claude Code +9 - 0.570score
k8s-check-fix
Ascend
Kubernetes 集群健康检查与安全修复 — 诊断问题,用户确认后执行修复
SkillCFreshness: C★ 52Claude Code +9 - 0.522score
ascendc-operator-code-gen
Ascend
No description from the publisher yet.
SkillCFreshness: C★ 52Claude Code +9 - 0.514score
ascend-docker
Ascend
Create Docker containers for Huawei Ascend NPU development with proper device mappings and volume mounts.
SkillDFreshness: D★ 52Claude Code +9 - 0.514score
hccl-test
Ascend
HCCL (Huawei Collective Communication Library) performance testing for Ascend NPU clusters.
SkillDFreshness: D★ 52Claude Code +9
Cite this page
cann-nnal-installer skill. Agent Mart. https://agentmart.dev/skills/ascend-cann-nnal-installer (last updated 2026-10-24)