Skip to content

[RVV] Add SpaceMiT IME (xsmtvdot) narrow M0=8/4 mmt4d tiles #24769

Closed

Description

@TMahlatini

Sub-issue of #24576. Deferred from #24706.

Summary

#24706 lands the SpaceMiT IME (+xsmtvdot / smt.vmadot) s8s8s32 mmt4d path with the primary tile only: a 3×4 grid of the SEW=8 MAC atom.

VLEN (Copies=1) Atom Primary tile (M0×N0×K0)
256 4×4×8 12×16×8
1024 8×8×16 24×32×16
4096 16×16×32 48×64×32

Compiler enumerateMatmulTileRiscv64 and the runtime ukernel currently register only those primary shapes. Remaining-M rows that are not a multiple of M0 fall back to non-IME paths (or padding), which leaves performance on the table for narrow-M workloads.

Goal

Add narrow / truncation IME tiles for the 2×4 and 1×4 atom grids (same N0/K0 as the matching VLEN primary):

VLEN Narrow tiles
256 8×16×8, 4×16×8
1024 16×32×16, 8×32×16 (if we keep the same relative truncations)
4096 32×64×32, 16×64×32 (same)

At minimum, ship and validate the VLEN=256 cases (M0∈{8,4}) on BPI-F3 / X60; wider-VLEN truncations can follow the same IREE_UK_MMT4D_TILE_FUNC_IMPL_FOR_M0 pattern already used for {12,24,48}.

Out of scope

Activity

  1. github-actions commented on Jul 29, 2026

    @github-actions

    Hello @TMahlatini 👋

    Thank you for submitting an issue to IREE! It looks like it's your first one.

    The volume of issues is huge, and triage times may vary. If you need quicker assistance on the issue, consider posting it on IREE Discord and providing short context there.
    Feel free to identify the most frequent contributors to the corresponding part of the codebase via Git history/CODEOWNERS and (gently!) tag them below.


    Action required: acknowledge IREE project policies

    IREE is a Linux Foundation project. All participants are expected to follow the LF Projects Code of Conduct.

    Please note that all contributions to IREE, including GitHub issues, must follow our IREE AI Tool Use Policy. This means:

    • Issue reporters must fully understand the primary issue and the impact of the problem.
      For bug reports, specifics of the use-case, workflow and/or crash scenario usually suffice.
      For improvement suggestions, this usually implies deeper understanding of suboptimal code, IR design choices, assumed performance tradeoffs, etc.
    • Contributors must write the summary of the issue themselves, so that the exact impact and scenario is clear to other participants.
    • Issue authors are expected to review and understand all LLM/AI-assisted segments of the report, if any. E.g.: CLI commands and IR reproducers, model/framework details, lowering pipeline details, assumptions about problematic behaviors of IREE components.
    • Substantial use of LLM/generative AI tools must be disclaimed in the header or footer of the issue description.

    Before the issue can be triaged, we kindly ask you to reply to this message and confirm that you understand and accept the proposed policy. As required, please adjust your initial issue description.


    If you have any questions, feel free to leave a comment here, or ask away on IREE Discord.

    Thank you,
    The IREE Community

  2. TMahlatini commented on Jul 29, 2026

    @TMahlatini
    ContributorAuthor

    I understand and accept the proposed policy.

  3. added a commit that references this issue on Aug 11, 2026
    74dd33d
  4. added a commit that references this issue on Aug 28, 2026
    473699f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions