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/cases/tilelang/pr_tilelang_compiler_prs.md
View on GitHub# 编译器级性能特性 PR(来自 GitCode 镜像 README "最新动态")【PR】
## 基本信息
- 算子类别:misc(编译器级能力,不绑定单一算子)
- DSL/框架:tilelang
- 类型:PR(多个编译器能力 PR 汇总)
- 来源可信度:二手转载(来自 GitCode 镜像 README "最新动态"整理)
## 来源链接
- PR #113 `T.Parallel` 自动向量化(2025-12-08):<https://github.com/tile-ai/tilelang-ascend/pull/113>( 已验证可达,验证日期 2026-08);代码改动页 <https://github.com/tile-ai/tilelang-ascend/pull/113/files>
- PR #101 自动缓冲区复用,减少片上内存占用(2025-11-25):<https://github.com/tile-ai/tilelang-ascend/pull/101>( 已验证可达,验证日期 2026-08);代码改动页 <https://github.com/tile-ai/tilelang-ascend/pull/101/files>
- PR #74 自动插入核内同步指令(2025-11-07):<https://github.com/tile-ai/tilelang-ascend/pull/74>( 已验证可达,验证日期 2026-08);代码改动页 <https://github.com/tile-ai/tilelang-ascend/pull/74/files>
- PR #292 torch_tl_ascend PyTorch 集成示例(2026-01-21):<https://github.com/tile-ai/tilelang-ascend/pull/292>( 已验证可达,验证日期 2026-08);代码改动页 <https://github.com/tile-ai/tilelang-ascend/pull/292/files>
## 问题与瓶颈
原文未附 profiling 瓶颈定位数据;各 PR 针对的是编译器自动化能力(自动向量化、自动 buffer 复用、自动插同步)与框架集成。
## 优化方法(理论手段)
1. PR #113:`T.Parallel` 自动向量化——编译器自动将 `T.Parallel` 循环 lower 为向量指令,免去手写向量原语。
2. PR #101:自动缓冲区复用——编译器分析 buffer 生命周期自动复用,减少片上内存占用。
3. PR #74:自动插入核内同步指令——自动完成核内同步,降低手写 `set_flag/wait_flag` 负担。
4. PR #292:torch_tl_ascend PyTorch 集成示例——提供 PyTorch 侧调用 tilelang-ascend kernel 的集成路径。
## 性能对比
均为编译器能力 PR,无公开量化数字。
## 适用范围与警示
- **二手来源警示**:本案例信息整理自 GitCode 镜像 README "最新动态",非逐一核对 PR 正文,引用时建议点开 PR 链接核实。
- 编译器能力 PR 无公开量化数字。
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 |