triton.language.program_id

triton.language.program_id(axis)

返回当前程序实例沿给定 axis 的 ID。

参数:

axis (int) – 3D 启动网格的轴。必须是 0、1 或 2。