Skip to content

Generalize iree_gpu.multi_mma to allow arbitrarily-many inputs #20814

Closed

Description

@krzysz00

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)

Activity

  1. added
    enhancement ➕
    compiler/dialects
    codegen
    on May 14, 2025
  2. qedawkins commented on May 14, 2025

    @qedawkins
    Contributor

    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.

  3. krzysz00 commented on Jun 20, 2025

    @krzysz00
    ContributorAuthor

    Closing as completed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    codegencompiler/dialectsenhancement ➕

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions