external-gitcode-ascend-triton-operator-code-review
Installation
SKILL.md
Triton 算子静态代码检视(Ascend NPU)
检视原则
- Ascend 特有约束优先:聚焦硬件差异,不检查 Triton 通用知识
- Mask 零容错:Ascend 对越界访问零容忍
严重性分级
| 级别 | 含义 | 典型问题 |
|---|---|---|
| P0 | 必定崩溃或错误结果 | Mask 遗漏、核类型错配、Atomic 循环死锁 |
| P1 | 高概率精度/功能问题 | 归约未升精度、Softmax 未减 max |
| P2 | 性能/可维护性 | 冗余访存、BLOCK 未对齐 |