triton.experimental.gluon.language.max_contiguous
- triton.experimental.gluon.language.max_contiguous(input, values, _semantic=None)
Let the compiler know that the elements of
inputalong dimensiondform contiguous groups of lengthvalues[d].valuesmust have one entry per dimension ofinputand each entry must be a power of two.A 1D array of
Nelements with contiguityCis viewed asN/Cruns ofCintegers each, where the integers in a run are sequentially contiguous. For example, ifvaluesis[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.