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-ascendc-tiling.md
View on GitHub# §1.1 Ascend C · Tiling 与核间负载
> 本文件覆盖 Ascend C 的 Tiling 与核间负载均衡优化技术。
| 技术 | 理论说明 | 代码/参数模式 | 性能对比 |
|---|---|---|---|
| blockDim 候选 | 分别读取目标 SoC 的 AIV、AIC 和 MIX 核组能力;候选不得超过该 kernel 类型可用核数 | 从当前工具链/运行时取核数,按工作量 sweep | 以最长 block 时延和 event 总时延共同选择 |
| L2 工作集切分 | 仅在重复 GM 流量且工作集超过目标设备可用 L2 时,按当前设备容量规划 tile | 记录每 tile 输入、输出、中间量与并发核占用 | 验证 GM 流量、L2 hit 与总时延,不固化容量或带宽常数 |
| 核间负载均衡 | 将整块与尾块工作量显式分配,避免少数 block 长尾 | `base = total / blocks`,前 `total % blocks` 个 block 多处理一个单位 | 比较每 block 任务量与最大/平均时延 |
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 |