triton.num_programs¶
-
triton.
num_programs
(axis, builder=None)¶ Returns the number of program instances launched along the given axis.
- Parameters
axis (int) – The axis of the 3D launch grid. Has to be either 0, 1 or 2.
builder (triton.ir.builder) – IR builder to generate code into, optional from within @triton.jit functions