triton.language.program_id

triton.language.program_id(axis)

Returns the id of the current program instance along the given axis.

Parameters

axis (int) – The axis of the 3D launch grid. Has to be either 0, 1 or 2.