triton.experimental.gluon.language.multiple_of

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

Let the compiler know that values[d] is the largest power of two that divides the first element of every contiguous group along dimension d of input (see max_contiguous() for the definition of contiguous group). values must have one entry per dimension of input.

For a 1D input with contiguity 1, this is equivalent to saying that every element of input is a multiple of values[0]. For example, if values is [16] and input is [64, 80, 96, 112], the hint is valid because 16 divides 64.

This hint enables alignment-dependent optimizations such as vectorized memory accesses.