Commit 3ecd6ec
committed
ci: split RVV cross-compile into apt-qemu (vlen>=256) + arch-qemu11 (vlen=128)
QEMU < 11's RVV TCG emulation is dramatically slower than scalar
(QEMU issue #2137). At vlen=128, gcc's RVV codegen for our test_xsimd
ends up running long enough under apt-shipped qemu-user-static
(8.2.x noble, 9.x plucky, 10.x trixie) to overflow the 6h GHA job
timeout while making no observable progress.
Measured locally:
qemu 8.2.2 (Ubuntu 24.04 apt) : test_xsimd at vlen=128 times out
qemu 9.2.1 (Ubuntu 25.04 plucky) : ditto
qemu 10.0.8 (Debian trixie) : ditto
qemu 11.0.0 (Arch) + gcc 15.1 : 367 cases / 5664 asserts in <10 min
Vlens >= 256 stay within the test step budget on apt qemu (smaller
emulator slowdown per logical op).
Keep the existing cross-rvv.yml workflow as-is — multi-compiler
matrix (gcc-14, clang-17/18), apt qemu-user-static — but drop
vector_bits=128 from its matrix and add fail-fast: false plus a
15 min timeout-minutes safety net so a stuck entry doesn't
cancel its peers or burn 6h.
Add a sibling workflow cross-rvv-arch.yml that runs the build
and test inside archlinux:latest (qemu 11 + gcc 15.1) and covers
vector_bits=128/256/512. This restores RVV vlen=128 coverage today
without waiting for ubuntu-latest to ship qemu 11.
References:
QEMU 11.0.0 release notes https://www.qemu.org/2026/04/22/qemu-11-0-0/
QEMU RVV slowdowns issue https://gitlab.com/qemu-project/qemu/-/issues/2137
Ubuntu RVV vstart bug https://bugs.launchpad.net/ubuntu/+source/qemu/+bug/20951691 parent b395957 commit 3ecd6ec
2 files changed
Lines changed: 109 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
1 | 15 | | |
2 | 16 | | |
3 | 17 | | |
| |||
8 | 22 | | |
9 | 23 | | |
10 | 24 | | |
| 25 | + | |
11 | 26 | | |
12 | 27 | | |
13 | 28 | | |
14 | 29 | | |
15 | 30 | | |
16 | 31 | | |
17 | | - | |
18 | 32 | | |
19 | 33 | | |
20 | 34 | | |
| |||
35 | 49 | | |
36 | 50 | | |
37 | 51 | | |
38 | | - | |
39 | | - | |
40 | | - | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
41 | 60 | | |
42 | 61 | | |
43 | 62 | | |
| |||
62 | 81 | | |
63 | 82 | | |
64 | 83 | | |
| 84 | + | |
65 | 85 | | |
66 | 86 | | |
67 | 87 | | |
| |||
0 commit comments