Repository navigation
fix(CI): long-running emulated rv64 matmul integration tests - #24593
Merged
Merged
Conversation
Signed-off-by: Ege Beysel <[email protected]>
bjacob
approved these changes
Jun 9, 2026
bjacob
left a comment
Collaborator
There was a problem hiding this comment.
LGTM, but if you might also consider the alternative, instead of disabling long-running tests on slow targets, of instead switching the --shapes to a set of shapes that avoids large matmul sizes. After all, matmul latency grows like N^3, so moderately smaller shapes allow to gain an order of magnitude of latency.
Signed-off-by: Ege Beysel <[email protected]>
Contributor
Author
|
@bjacob Thanks, makes sense! |
bjacob
approved these changes
Jun 9, 2026
TMahlatini
added a commit
to TMahlatini/iree
that referenced
this pull request
Sep 15, 2026
Lower MMA_RISCV_V_VFMACC_*_F32_F32 to llvm.riscv.vfmacc. N is vlen/8. Introduce lowerRiscvVFmaccLike. Restrict RISC-V inner_tiled e2e to --shapes=small (iree-org#24593). Towards iree-org#24311 Signed-off-by: Terence <[email protected]> Co-authored-by: Cursor <[email protected]>
TMahlatini
added a commit
to TMahlatini/iree
that referenced
this pull request
Oct 1, 2026
Lower MMA_RISCV_V_VFMACC_*_F32_F32 to llvm.riscv.vfmacc. N is vlen/8. Introduce lowerRiscvVFmaccLike. Restrict RISC-V inner_tiled e2e to --shapes=small (iree-org#24593). Towards iree-org#24311 Signed-off-by: Terence <[email protected]> Co-authored-by: Cursor <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The RISCV-64 e2e matmul integration tests without the ukernels are very long-running under QEMU emulation, and were causing timeouts in CI. This PR disables the generic (non-uk) vectorization path for those tests until we properly support codegen.
(Claude-generated summary)
Summary
The RISC-V 64 e2e matmul integration tests that run without ukernels
(
--iree-opt-data-tiling --iree-llvmcpu-enable-ukernels=none) are extremelyslow under QEMU and were timing out CI (60 s per-test limit). This PR adds
noriscvto all non-ukerneldt/experimental_dtmatmul variants, since thegeneric vectorization path for data-tiled matmul is not yet properly supported
on RISC-V — only the ukernel path is validated there.
Why it's slow: with data-tiling on but ukernels off, the packed
mmt4dislowered through generic vectorization. For the wide
M0×N0tile it selects(
N0 = VLEN/8,M0 = 7), the widening multiply-accumulate has no vector×scalarform, so the inner loop rebuilds the LHS broadcast every K-step via a storm of
vsetvlireconfigurations andvrgather/vslideuppermutes — e.g. for i8 atVLEN=256, ~118
vsetvli+ ~19vrgatherper dispatch, vs ~2vsetvliand nogathers for the ukernel. QEMU emulates every vector instruction
element-by-element, and
vsetvli/vrgather/vslideare among the costliest toemulate, so the full shape set runs for tens of seconds and trips the timeout.
dt_i8_i32andexperimental_dt_i8_i32hit it first;dt_f32_f32was alreadyat ~52 s (one slow runner from flaking).
Failing CI run: https://github.com/iree-org/iree/actions/runs/27192246864/job/80276315195
Emulation vs. real hardware: the timeout is largely a QEMU artifact. On a
SpaceMiT X60 (VLEN=256, native), the heaviest shape (540×332×516) runs in
milliseconds — but the generic path is still 3.5–6× slower than the ukernel
path, confirming it exercises an unsupported/unoptimized path rather than just
an emulator quirk:
(The gap is specific to the wide-
M0tile; narrow-M shapes pickM0=1, emitclean
vwmacc.vx, and are ~1.3×.)Assisted-by: Claude Code