liveBook · Manning

Tl.argmin

As explained in GPU Programming with Triton

tl.argmin is a Triton operation that returns the index of a minimum value along a tensor dimension.

tl.argmin returns the index of a minimum value along a tensor dimension. In Triton, the reduction operates on a tile held by one program instance, not across the full launch grid. section 4.1.2

To reduce across program instances, use a multi-kernel approach with partial results or consider atomics; tl.argmin alone does not perform a grid-wide reduction. section 4.1.2

How GPU Programming with Triton covers it

How deep it goes
Defines the reduction’s tile-local scope and distinguishes it from grid-wide reductions, without detailing argmin implementation.
How it connects
Connects tl.argmin to Triton reductions, program instances, and global reductions.

This explainer was generated by Manning's knowledge graph from the text of GPU Programming with Triton. The section links point to the parts of the book it draws on.