Triton Ascend Example Softmax

Softmax 归约算子的完整 Triton Ascend 实现示例。展示三阶段归约模式(求 max → 求 sum(exp) → 归一化)、分块累加、标量累加器精度提升等技巧。当生成 reduce 类算子时可参考此示例的代码结构。

wenyi-li Updated

File contents

wenyi-li/awesome-agent-kernel-skills/tree/main/kernel-generator/references/dsl-guides/triton-ascend/examples/triton-ascend-example-softmax commit b9dfea0aa3

Frequently asked questions

npx skillmds@latest add wenyi-li/triton-ascend-example-softmax