Getting Started
Python API
program_id()
Programming Guide
Returns the id of the current program instance along the given axis.
axis
axis (int) – The axis of the 3D launch grid. Has to be either 0, 1 or 2.