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-data-copy.md
View on GitHub# §1.2 Ascend C · 数据搬运
> 本文件覆盖 Ascend C 的数据搬运优化技术。
| 技术 | 理论说明 | 代码/参数模式 | 性能对比 |
|---|---|---|---|
| 合并小搬运 | DMA 发起开销可能使小包 active bandwidth 偏低;阈值随 SoC、方向和 API 变化 | 在 UB 容量与正确性允许范围内 sweep 搬运粒度 | 同时比较指令数、active bandwidth 与总时延 |
| 地址与长度对齐 | 使用目标 API 要求的最小对齐,并将更大对齐作为候选而非通用规则 | 从目标版本 API 文档获取对齐约束 | 逐档实测,禁止跨 SoC 复用收益数字 |
| DataCopyParams 批量搬运 | 当布局可用 block/stride 描述时,用一次参数化 DMA 替代逐行循环 | `blockCount/blockLen/srcStride/dstStride` 全部按当前 API 单位换算 | 精度通过后检查 DMA 指令数和 MTE 时延 |
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: 118k | 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 |