kali20gakki/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/cases/ascendc/pr_ascendc_mc2_fusion.md
View on GitHub# 融合算子/MC² 通算融合【非 PR:社区文章, 二手来源】
## 基本信息
- 算子类别:communication(通算融合,兼含 matmul/attention)
- DSL/框架:ascendc
- 类型:非PR(社区文章)
- 来源可信度:二手转载( 二手来源,非 PR 原文,引用时建议标注)
## 来源链接
- PR/出处链接:<https://hwcomputing.csdn.net/6a156a06662f9a54cb7740f2.html>(CANN ops-transformer 技术解读; 已验证可达,验证日期 2026-08)
- 优化代码查看:二手社区文章,无公网代码链接,原文未附代码改动页
## 问题与瓶颈
大模型中 AllGather+MatMul、ReduceScatter+Softmax 等通信与计算串行执行,通信无法与计算重叠。原文未附 profiling 指标数据。
## 优化方法(理论手段)
1. **AllGather+MatMul、ReduceScatter+Softmax 通算融合**:通信与计算重叠,端到端加速比可达 1.3x–1.5x(大模型)。
2. **ops-nn MLA 全链路融合**:Cube 算完直接在 L1 上做 attention,不回写 GM。
## 性能对比
| 指标 | 优化前 | 优化后 | 变化 |
|---|---|---|---|
| 端到端耗时(大模型) | 原文未附 | 原文未附 | 加速比 1.3x–1.5x |
## 适用范围与警示
- ** 风险说明**:以上数字来自社区文章,非 PR 原文,引用时建议标注为二手来源。
- 适用场景:大模型通算融合;具体适用 shape/dtype/芯片原文未附。
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 |