Repository navigation
[CI] Add LLVMCPU aarch64 and riscv64 lit tests only if LLVM has the target - #25234
Merged
Merged
Conversation
…arget early_data_tiling.mlir, early_data_tiling_convolution.mlir and early_data_tiling_dynamic.mlir, added in iree-org#24969, and roundeven_native.mlir, added in iree-org#25219, compile for aarch64. roundeven_native.mlir also compiles for riscv64. byo_llvm.sh builds LLVM with only the X86 target, so iree-compile stops with "createTargetMachine(...) failed" and the tests fail the scheduled linux_x64_clang_byollvm job. Add these tests in the same way as iree-org#25221 did for ukernel_inlining.mlir: CMake adds them only if iree_compiler_targeting_iree_arch() is true for their architecture. The Bazel build always has these targets. roundeven_native.mlir has one check prefix per architecture, so its aarch64 and riscv64 RUN lines move into their own files. The early data tiling tests check mainly aarch64 output, and their x86-64 RUN lines reuse the aarch64 check prefixes. Splitting them would copy the IR, so the whole files move into the aarch64 suite. A build without the AArch64 target therefore skips their x86-64 RUN lines too. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Tobias Fuchs <[email protected]>
Moving the whole files into the aarch64 suite also removed their x86-64 RUN lines from builds without the AArch64 target. Copy the IR into *_aarch64.mlir files instead. The x86-64 and vmvx RUN lines stay in the original files and run in every build. Each file keeps only the check prefixes that its RUN lines use. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Tobias Fuchs <[email protected]>
devtbi
marked this pull request as ready for review
November 10, 2026 13:52
devtbi
requested review from
Manewing,
egebeysel and
jschuhmacher
as code owners
November 10, 2026 13:52
devtbi
enabled auto-merge (squash)
November 10, 2026 14:10
egebeysel
approved these changes
Nov 10, 2026
egebeysel
left a comment
Contributor
There was a problem hiding this comment.
LGTM, maybe just for parity we could have the suffixes on the x86 ones.
iree/async/platform/posix/cts/socket_tests times out in every linux_x64_clang_byollvm run since the ubuntu-24.04 runner image moved to kernel 7.0.0-1017-azure. The test log stops at CTS/SocketPosixTest.UnixDgram_ConnectedLoopback/posix_poll. That kernel has a NULL pointer dereference in AppArmor, fixed upstream by torvalds/linux@4de32fd05ce9. It triggers when an AppArmor-confined process uses write() or writev() on a connected AF_UNIX datagram socket. This test is the first one that does so. The fault ends only the calling thread. The worker threads of the proactor stay alive, so the process prints nothing more and waits until ctest stops it. Only this job is affected because it is the only one that runs the tests in a container on the GitHub-hosted ubuntu-24.04 image. Docker confines the container with its default AppArmor profile. The runtime jobs use the same image without a container, so their processes are not confined and the test passes there. The kernel log of the runner was not available. The cause follows from the kernel source of that build and from the upstream fix, which reports the same call path. The test still runs in the other Linux jobs. Remove the exclusion when the runner image has a kernel with the fix. Co-Authored-By: Claude Fable 5.2 <[email protected]> Signed-off-by: Tobias Fuchs <[email protected]>
devtbi
requested review from
AGindinson,
kuhar and
schuermans-roofline
as code owners
November 11, 2026 13:23
The aarch64 and riscv64 RUN lines are in *_aarch64.mlir and *_riscv64.mlir files. Name the files that hold the x86-64 RUN lines in the same way, as materialize_encoding_x86_64.mlir does in Codegen/Common. The vmvx RUN line of early_data_tiling.mlir needs no LLVM target. It stays in early_data_tiling.mlir, and the x86-64 RUN line moves into early_data_tiling_x86_64.mlir with a copy of the IR. The other three files are renamed without changes. Co-Authored-By: Claude Fable 5.2 <[email protected]> Signed-off-by: Tobias Fuchs <[email protected]>
Contributor
Author
|
renamed for parity & disabled CTS test for the BYO LLVM, because it seems to fail due to some known issue in the container image |
AGindinson
reviewed
Nov 11, 2026
AGindinson
approved these changes
Nov 11, 2026
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 tests
byo_llvm.sh builds LLVM with only the X86 target, so iree-compile stops with "createTargetMachine(...) failed" and the tests fail linux_x64_clang_byollvm job.
Add these tests in the same way as #25221: CMake adds them only if iree_compiler_targeting_iree_arch() is true for their architecture.
Theaarch64 and riscv64 RUN lines move into *_aarch64.mlir and *_riscv64.mlir files, which copy the IR.
ci-extra: linux_x64_clang_byollvm