triton.experimental.gluon.language.max_contiguous

triton.experimental.gluon.language.max_contiguous(input, values, _semantic=None)

Let the compiler know that the elements of input along dimension d form contiguous groups of length values[d]. values must have one entry per dimension of input and each entry must be a power of two.

A 1D array of N elements with contiguity C is viewed as N/C runs of C integers each, where the integers in a run are sequentially contiguous. For example, if values is [4], the array [0, 1, 2, 3, 8, 9, 10, 11] satisfies the hint because it consists of two runs of 4 contiguous values.

Together with multiple_of(), this hint enables vectorized loads and stores of contiguous, aligned regions.