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 dimensiondofinput(seemax_contiguous()for the definition of contiguous group).valuesmust have one entry per dimension ofinput.For a 1D input with contiguity 1, this is equivalent to saying that every element of
inputis a multiple ofvalues[0]. For example, ifvaluesis[16]andinputis[64, 80, 96, 112], the hint is valid because 16 divides 64.This hint enables alignment-dependent optimizations such as vectorized memory accesses.