external-cannbot-ops-npu-arch
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-npu-arch" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-d2d6ada4ecadf1783368609ff0b0dba15f856aed665fc39677cf7672fdd0dcea. 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 NPU architecture query skill: used to query Ascend NPU architecture knowledge. Via chipset model mapping, generation/era classification, and archXX feature descriptions, it helps determine platform capabilities, feature support, and conditional compilation strategies. Used when confirming chipset model, NpuArch/SocVersion, architecture differences, feature support, or compilation branch conditions.
Introduction source: third_party · ascend-ai-coding · 0.0.1 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: external-cannbot-ops-npu-arch
description: Ascend NPU 架构知识查询技能。通过芯片型号映射、架构代际划分和 archXX 特性说明,帮助判断目标平台能力、特性支持与条件编译策略。当需要确认芯片型号、NpuArch/SocVersion、架构差异、特性支持或编译分支条件时使用。
original-name: npu-arch
synced-from: https://gitcode.com/cann/cannbot-skills
synced-date: '2026-05-26'
synced-commit: ac5bbd2b4cf427d011874e11f8d1e8b1bef66eda
license: UNKNOWNAscend NPU 架构知识
架构代际概述
| 概念 | 说明 |
|---|---|
| NpuArch | 芯片架构号,定义指令集和微架构,运行时通过 GetCurNpuArch() 获取 |
| SocVersion | 片上系统版本,软件命名标识,运行时通过 GetSocVersion() 获取 |
| __NPU_ARCH__ | Device 侧编译宏,四位数值,用于条件编译 |
| archXX | 算子仓目录简写,取 DAV 编号前两位(如 DAV_3510 → arch35) |
| __DAV_C310__ | 构建系统内部宏,等价于 NpuArch::DAV_3510 / arch35 / __NPU_ARCH__=3510,不可按数值推断 |
完整映射表
完整产品系列 / SocVersion / NpuArch / 芯片型号映射见 npu-hardware-params.md §0 产品映射表。
获取当前架构
#include "utils/tiling/platform/platform_ascendc.h"
auto ascendcPlatform = platform_ascendc::PlatformAscendC(context->GetPlatformInfo());
NpuArch npuArch = ascendcPlatform.GetCurNpuArch(); // DAV_2201 / DAV_3510 / ...
platform_ascendc::SocVersion socVer = ascendcPlatform.GetSocVersion();
GetCurNpuArch() 失败返回 NpuArch::DAV_RESV,GetSocVersion() 失败返回 SocVersion::RESERVED_VERSION。
DAV_3510 相对 DAV_2201 的关键变化
详细硬件参数真值见
references/npu-hardware-params.md。运行时必须以PlatformAscendC接口获取实际值,禁止硬编码。
Buffer(同架构内通常一致)
| Buffer | DAV_2201 | DAV_3510 |
|---|---|---|
| L0C | 128 KB | 256 KB |
| UB | 192 KB | 248 KB |
| BT | 1 KB | 4 KB |
频率/核数/L2/Memory(因子型号/形态而异)
| 参数 | Ascend910B2 (DAV_2201) | Ascend950PR PCIE | Ascend950PR Server |
|---|---|---|---|
| Cube 核数 | 24 | 28 | 32 |
| 频率 | 1.8 GHz | 1.65 GHz | 1.65 GHz |
| L2 | 192 MB | 112 MB | 128 MB |
| Memory | 64 GB | 112 GB | 128 GB |
详见 典型SKU示例。
指令集与微架构
| 类别 | 变化 |
|---|---|
| 数据格式 | 新增 FP8 / MXFP8 / MXFP4 / HiF8 Cube MMAD |
| CV 直通通路 | 新增 L0C→UB、UB→L1、SSBuffer 消息 |
| 同步机制 | BufferID 替代 set/wait 强配对 |
| 编程模型 | 新增 SIMT、SIMD-Regbase、NDDMA、CCU 通算融合 |
Memory 带宽基于公开资料与经验值,详见
npu-hardware-params.md§4。
详细文档索引
references/ 按需加载:
npu-hardware-params.md— 硬件参数参考:各架构子型号一致参数、典型SKU示例、基于公开资料与经验值的规格npu-arch-guide.md:- 典型硬件参数与获取方式:核数 / Buffer 容量典型值,
GetCoreNumA*/GetCoreMemSize/aclrtGetDeviceInfo接口用法(含硬编码反例) - DAV_3510 微架构:AI Core Buffer 层级、MTE 引擎、CV 数据通路改动、BufferID 同步
- SIMT vs SIMD:硬件能力差异与适用场景
- SIMD-Regbase:寄存器组、核心优势、代码形态变化
- 数据格式扩展:完整数据类型表、C++ 类型名映射、MXFP Tiling 约束
- NDDMA / CCU:高维 DMA 用法、CCU 三种通信范式、KFC 调度模型
- 架构兼容性检查清单 / 参考信息来源
- 典型硬件参数与获取方式:核数 / Buffer 容量典型值,
范围边界:本技能聚焦架构判断与硬件能力识别。算子目录结构、CMake 配置、文件命名约定等工程模板内容不在本技能范围内。
Current listing version
0.0.1
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 提供 Ascend NPU 架构代际完整映射与特性对比
- 面向专业开发者解决芯片型号判断与编译策略选择
Highlights
- 触发场景描述清晰完整,覆盖芯片型号、架构差异、特性支持等核心需求
Areas to improve
-
license 信息不完整 Reported severity: Minor
frontmatter 中 license 字段为 UNKNOWN
Recommendation: 建议补充明确的许可证信息(如 MIT、Apache-2.0 等)
Highlights
- 文档结构清晰,包含代码示例与失败处理说明
- frontmatter 完整,含同步来源与版本信息
Areas to improve
-
引用文件缺失 Reported severity: Minor
SKILL.md 中引用了 references/npu-hardware-params.md 和 references/npu-arch-guide.md,但未在 ZIP 包中提供
Recommendation: 请将引用的参考文档一并打包,或明确说明这些文档的获取方式
Highlights
- 使用官方 Ascend NPU 接口,参数说明准确
- 明确覆盖异常返回值,提供反例提醒禁止硬编码
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.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
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.
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.