This document is relevant for: Inf2
, Trn1
, Trn1n
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
This document is relevant for: Inf2
, Trn1
, Trn1n