Ascend/msagent / skills/operator/ops-performance-tuning
ops-performance-tuning
VerifiedCompile, profile, diagnose, optimize, and compare Ascend NPU operators across CANN versions and A2/A3/A5 for Ascend C, CATLASS, Triton-Ascend, TileLang-Ascend, PyPTO, and SHMEM/MC2. Use when an operator already has a runnable implementation and the user asks for msOpProf collection, bottleneck analysis, source-level tuning, or a reproducible before/after performance report. Do not use as the primary workflow for operator creation, migration, or unresolved correctness failures.
references/optimize/optimize-memory-hierarchy.md
View on GitHub# §1.4 Ascend C · 内存层级利用
> 本文件覆盖 Ascend C 的内存层级利用优化技术。
- 存储层级表:GM ~1.6TB/s、L2 ~192MB/7TB/s、L1、L0A/L0B、L0C、UB、BT/FP Buffer。
- **UB Buffer 融合**:n 次连续 Vector 运算 GM 搬运从 2n 降为 2(文字模式:中间结果留 UB,不落 GM)。
- **L0C 原地累加矩阵乘**;**小矩阵长驻 L1**;**BT Buffer 放 bias**(Mmad 一步融合);**FP Buffer 随路量化(Fixpipe)**。
- 反模式:FP16/BF16 先 Cast FP32、GM↔UB 用 DataCopyPad、kernel 内使用 std 数学函数、repeatTime>255。
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| planning-and-task-breakdownaddyosmani/agent-skillsBreaks work into ordered tasks. Use when you have a spec or clear requirements and need to break work into implementable tasks. Use when a task feels too large to start, when you need to estimate scope, or when parallel work is possible. | Stars: 119k | Updated | Claude CodeCodex | Verified | Install |
| screenpipethedotmack/claude-memSearch screen and audio history recorded by Screenpipe and optionally save selected context into claude-mem. Use when the user asks to recall desktop activity, a meeting, or something seen in another app through Screenpipe. | Stars: 118k | Updated | Claude CodeCodex | Verified | Install |
| contact-widgetnexu-io/open-designSelf-contained floating chat widget with welcome screen, social links, meeting button, and message input. Single HTML file, zero dependencies. | Stars: 108k | Updated | Claude CodeCodex | Verified | Install |
| meeting-notesnexu-io/open-designMeeting notes page — title bar with attendees, agenda checklist, decisions block, action items table with owners + dates, and a "next meeting" footer. Use when the brief mentions "meeting notes", "minutes", "1:1 notes", "all-hands recap", or "会议纪要". | Stars: 108k | Updated | Claude CodeCodex | Verified | Install |