Skip to content
Back to skills

Tilelang Perf Optimization

ASecurity

TileLang NPU 性能优化入口。适用于用户需要性能优化时,根据已选 Ascend910 或 Ascend950 平台读取独立技能;两套规则不混用。

  • 21 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added November 7, 2026
developmentpythonapi

Works with

  • api

Security analysis

A100/100

Pro scans all 17 files and shows the line behind each finding

Scanned November 7, 2026

npx -y skills add hicann/cannbot-skills --skill tilelang-perf-optimization --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Tilelang Perf Optimization?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Tilelang Perf Optimization
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/hicann-tilelang-perf-optimization/badge)](https://www.skillsdirectory.com/skills/hicann-tilelang-perf-optimization)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: tilelang-perf-optimization
description: "TileLang NPU 性能优化入口。适用于用户需要性能优化时,根据已选 Ascend910 或 Ascend950 平台读取独立技能;两套规则不混用。"
---

# TileLang 性能优化

## 平台路由

本文件仅定位技能,不定义公共业务步骤。工作流已确定平台时使用调用方传入的 `Ascend910` 或 `Ascend950`,完整读取下表唯一对应正文,并复用调用方传入的完整硬件探测证据。独立调用且平台未知时,先按名称加载 `ascendc-env-check` Skill(仅使用其探测脚本),将该 Skill 的真实目录设为 `ASCENDC_ENV_CHECK_DIR`,运行 `python3 "$ASCENDC_ENV_CHECK_DIR/scripts/get_npu_arch.py" --json`;仅在退出码为 0 时将完整 JSON 作为 `evidence`,并使用其 `full_soc` 与 `npu_arch` 组合选择平台。Ascend910B1~B4(含 B2C、B4-1)/ Ascend910_93 系列且 NpuArch=2201 时选择 `Ascend910`;Ascend950PR / Ascend950DT 系列且 NpuArch=3510 时选择 `Ascend950`。不得从当前 Skill 目录拼接跨 Skill 相对路径,也不得用静态映射反推本机型号。平台确定后,按名称加载 `npu-arch` Skill 并传入该平台查询架构与硬件能力;脚本失败、Skill 缺失、证据冲突或平台不受支持时停止并报告。

| 平台 | 技能正文 |
|---|---|
| Ascend910 | [性能优化](Ascend910/instructions.md) |
| Ascend950 | [性能优化](Ascend950/instructions.md) |

## 执行

正文中的技能引用、脚本和模板都以所选分支为准。只执行该正文规定的步骤,不读取另一分支、不共享 API 或测试规则。技能根目录的资源链接指向 Ascend910 分支;Ascend950 使用其分支目录内的资源。

Files in this skill

  • Ascend910/instructions.md9.1 KB
  • Ascend910/references/best-practices/cube_optimization_path.md23.2 KB
  • Ascend910/references/best-practices/flash_attn_optimize.md32.5 KB
  • Ascend910/references/best-practices/gemm_intrinsic_optimize.md15.2 KB
  • Ascend910/references/best-practices/rope-developer-mode.md24.3 KB
  • Ascend910/references/best-practices/vector_add_pipeline.md9.6 KB
  • Ascend910/references/optimization-guide.md91.9 KB
  • Ascend910/references/performance-antipatterns.md27.9 KB
  • Ascend910/references/vector-practices/vector_reduce_pass_fusion.md8.7 KB
  • Ascend950/agents/openai.yaml324 B
  • Ascend950/evals/evals.json6.8 KB
  • Ascend950/instructions.md11.9 KB
  • Ascend950/references/evidence-and-diagnosis.md2.5 KB
  • Ascend950/references/plan-and-validation.md3.7 KB
  • Ascend950/references/tiling-and-cases.md2.6 KB
  • SKILL.md1.7 KB
  • evals/evals.json7 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.