You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Generalize iree_gpu.multi_mma to allow arbitrarily-many inputs #20814
codegenShared code generation infrastructure and dialectscompiler/dialectsRelating to the IREE compiler dialects (flow, hal, vm)enhancement ➕New feature or request
In order to allow useful representations of scaled mutrix multiplication (that is, acc := acc + (lhs * broadcast(scale)) x (rhs * broadcast(scale))), we'll want to have a more general version of iree_gpu.multi_mma that can take arbitrarily-many input operands (and one accumulator). This'll involve converting lhs and rhs into a variadic of inputs, and similarly making lhs_perm and rhs_perm into input_perms, an array of arrays.
While we're here, we can probably copy the op out of iree_gpu and name it ... something. Name suggestions? ( @qedawkins since I remember you having a good one)
This would be awesome! For sure we want to move the op out of iree_gpu. It grew up there but was always destined for somewhere else :)
Not sure if I had a good name, but maybe iree_codegen.tiled_operator or iree_codegen.packed_operator? Definitely open to suggestions though. Also LinalgExt might be more suitable for this op. My only concern is that the interface for mma_attr (renamed to operator_descriptor or something) is going to be fairly codegen specific.
codegenShared code generation infrastructure and dialectscompiler/dialectsRelating to the IREE compiler dialects (flow, hal, vm)enhancement ➕New feature or request
Activity
qedawkins commentedon May 14, 2025
This would be awesome! For sure we want to move the op out of
iree_gpu. It grew up there but was always destined for somewhere else :)Not sure if I had a good name, but maybe
iree_codegen.tiled_operatororiree_codegen.packed_operator? Definitely open to suggestions though. AlsoLinalgExtmight be more suitable for this op. My only concern is that the interface formma_attr(renamed tooperator_descriptoror something) is going to be fairly codegen specific.[Codegen] Generalize iree_gpu.multi_mma to iree_codegen.inner_tiled (#…
krzysz00 commentedon Jun 20, 2025
Closing as completed
[Codegen] Generalize iree_gpu.multi_mma to iree_codegen.inner_tiled (#…