hc-skadi/ascendc/ascendc-npu-arch

Claude Code and agent skill by hc-skadi/ascendc

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Ascend NPU 架构知识查询技能。通过芯片型号映射、架构代际划分和 arch35 特性说明,帮助判断目标平台能力、特性支持与条件编译策略。当需要确认芯片型号、NpuArch/SocVersion、架构差异、特性支持或编译分支条件时使用。

Install

npx vskill@latest install hc-skadi/ascendc/ascendc-npu-arch

SKILL.md

Ascend NPU 架构知识

架构代际概述

概念说明
NpuArch芯片架构号,定义指令集和微架构,运行时通过 GetCurNpuArch() 获取
SocVersion片上系统版本,软件命名标识,运行时通过 GetSocVersion() 获取
__NPU_ARCH__Device 侧编译宏,四位数值,用于条件编译

完整映射表

NpuArch__NPU_ARCH__SocVersion产品系列芯片型号
DAV_10011001ASCEND 910Atlas 训练系列Ascend 910
DAV_20022002ASCEND 310PAtlas 推理系列Ascend 310P1, Ascend 310P3
DAV_22012201ASCEND 910BAtlas A2 训练/推理系列Ascend 910B1~B4, Ascend 910B2C
DAV_22012201ASCEND 910BAtlas A3 训练/推理系列Ascend 910_93
DAV_30023002ASCEND 310BAtlas 200I/500 A2 推理产品Ascend 310B1~B4
DAV_35103510ASCEND 950Atlas A5 训练系列Ascend 950DT (Decode)
DAV_35103510ASCEND 950Atlas A5 推理系列Ascend 950PR (Prefill)
注意:Ascend910_93 的 SocVersion 字符串在运行时映射到 SocVersion::ASCEND910B(非独立枚举值),NpuArch 同为 DAV_2201。

获取当前架构

cpp
#include "platform/soc_spec.h"
#include "utils/tiling/platform/platform_ascendc.h"
auto platformInfo = context->GetPlatformInfo();
auto ascendcPlatform = platform_ascendc::PlatformAscendC(platformInfo);
NpuArch npuArch = ascendcPlatform.GetCurNpuArch();
platform_ascendc::SocVersion socVer = ascendcPlatform.GetSocVersion();
  • GetCurNpuArch() 返回 NpuArch 枚举,失败时返回 NpuArch::DAV_RESV
  • GetSocVersion() 返回 SocVersion 枚举,失败时返回 SocVersion::RESERVED_VERSION

Ascend 950 (DAV_3510) 独有特性

特性说明典型算子
Regbase 编程直接操作寄存器量化算子
SIMT 编程线程级并行随机数、排序
FP8 格式8-bit 浮点量化、动态量化

详细文档

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
1
7-day trend score
8

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/hc-skadi/ascendc/ascendc-npu-arch/badge)](https://verified-skill.com/skills/hc-skadi/ascendc/ascendc-npu-arch)

Something wrong with this skill or its page? Tell us.