Triton cuda error fix

From mindspore-ai/akg · View interactive version

Triton cuda error fix is an AI agent skill from the GitHub repository mindspore-ai/akg. triton-cuda常见错误及修复方法,用于代码生成时避免同类问题

How to use this skill

Skill file

数学函数调用错误

# 错误:直接使用 tl.tanh
result = 0.5 * x * (1.0 + tl.tanh(inner))

# 正确:通过 libdevice 调用
result = 0.5 * x * (1.0 + tl.extra.cuda.libdevice.tanh(inner))
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.