nki.language.program_id#

nki.language.program_id(axis)[source]#

Index of the current SPMD program along the given axis in the launch grid.

Parameters:

axis – The axis of the ND launch grid.

Returns:

The program id along axis in the launch grid