Skip to main content
Run any Skill in Manus
with one click

triton-ascend-a5-matmul-vector

Stars5
Forks1
UpdatedJune 6, 2026 at 17:10

适用于 A5(Ascend950)Cube/Vector 协同编程的 MatMul + Vector 后处理融合优化指南。当算子的核心计算是矩阵乘法后接逐元素操作(如 bias 加法、ReLU 激活、残差加、量化等)时应选择此指南。本指南采用两段式调度:一个 cube scope 整段循环 + 一个 vector scope 整段循环 + 单 buffer + 一对显式同步事件。覆盖 Cube/Vector 数据流、ROW_SPLIT 拆分、sub_vec_id 索引、显式 sync_block_set/wait 配对、plain matmul kernel 推荐写法、关键约束速查等。不适用于纯 Vector 逐元素运算、也不适用于无后处理的纯 MatMul。

Installation

Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.

SKILL.md
readonly