upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/docs/testing.md
diff options
context:
space:
mode:
authorItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com>2026-11-22 23:07:05 -0500
committerItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com>2026-11-22 23:07:05 -0500
commit5e2ea6cfa2915d785d53b57a232198cd4ede7f72 (patch)
tree8be79f5e779ae0c62504577fde2c5c1491b154e7 /docs/testing.md
parent3343a45b21169c0668ed44bcfcb163534c0ce547 (diff)
parent291767e54fdc279d4c5f170f4f71c5abd80ed609 (diff)
Merge pull request #3248 from 0xTehuti
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'docs/testing.md')
-rw-r--r--docs/testing.md17
1 files changed, 9 insertions, 8 deletions
diff --git a/docs/testing.md b/docs/testing.md
index cca9fbe0f..3007f2c1b 100644
--- a/docs/testing.md
+++ b/docs/testing.md
@@ -22,10 +22,11 @@ This page collects the setup steps and the problems testers have run into so far
22 22
23 On Linux and macOS, the distribution's or Homebrew's `llvm-mc` on `PATH` is enough, if it is 21 or newer. 23 On Linux and macOS, the distribution's or Homebrew's `llvm-mc` on `PATH` is enough, if it is 21 or newer.
24 24
25 An older `llvm-mc` is not enough for everything. Ubuntu 24.04's `llvm-18` (18.1.3) runs `run_gpu_tests.py`, 25 An older `llvm-mc` is not enough for everything. Ubuntu 24.04's default `llvm-18` (18.1.3) works for
26 `valu_fuzz.py --family mem` and `lds_fuzz.py`, but rejects `op_sel` on the 16-bit integer VOP3 forms that 26 `valu_fuzz.py --family mem` and `lds_fuzz.py`, but rejects `ps_sdwa_f16_const`. LLVM 19+ assembles the stock CI
27 `valu_fuzz.py --family f16` generates (`v_ashrrev_i16_e64 ... op_sel:[0,0,0]`: "not a valid operand"), so no f16 27 test fixtures. However, full f16 fuzzing with `valu_fuzz.py --family f16` requires LLVM 21+, as LLVM 19 still
28 program assembles. 23.1.6 assembles them. 28 rejects `op_sel` on the 16-bit integer VOP3 forms that the fuzzer generates
29 (`v_ashrrev_i16_e64 ... op_sel:[0,0,0]`: "not a valid operand").
29 30
30 On Windows, ROCm 7.2's bundled `llvm-mc.exe` reports LLVM 21.0.0git. It assembled the TEST-71 memory and 31 On Windows, ROCm 7.2's bundled `llvm-mc.exe` reports LLVM 21.0.0git. It assembled the TEST-71 memory and
31 LDS programs but rejected the 16-bit shift used by the f16 generator. To check an assembler directly in 32 LDS programs but rejected the 16-bit shift used by the f16 generator. To check an assembler directly in
@@ -305,13 +306,13 @@ for every pull request that touches the runtime, the scripts or a tool the jobs
305lists them), and you can do the same on Linux without a GPU: 306lists them), and you can do the same on Linux without a GPU:
306 307
307```sh 308```sh
308sudo apt-get install -y libvulkan-dev mesa-vulkan-drivers vulkan-tools spirv-tools llvm-18 309sudo apt-get install -y libvulkan-dev mesa-vulkan-drivers vulkan-tools spirv-tools llvm-19
309cmake -S runtime -B runtime/build/linux && cmake --build runtime/build/linux --parallel 310cmake -S runtime -B runtime/build/linux && cmake --build runtime/build/linux --parallel
310python -I scripts/run_gpu_tests.py --build runtime/build/linux --llvm-mc /usr/lib/llvm-18/bin/llvm-mc 311python -I scripts/run_gpu_tests.py --build runtime/build/linux --llvm-mc /usr/lib/llvm-19/bin/llvm-mc
311LEONIDA_W64_EMULATE=1 python -I scripts/run_gpu_tests.py --build runtime/build/linux \ 312LEONIDA_W64_EMULATE=1 python -I scripts/run_gpu_tests.py --build runtime/build/linux \
312 --llvm-mc /usr/lib/llvm-18/bin/llvm-mc --filter cs_ 313 --llvm-mc /usr/lib/llvm-19/bin/llvm-mc --filter cs_
313LEONIDA_BARY_FALLBACK=1 python -I scripts/run_gpu_tests.py --build runtime/build/linux \ 314LEONIDA_BARY_FALLBACK=1 python -I scripts/run_gpu_tests.py --build runtime/build/linux \
314 --llvm-mc /usr/lib/llvm-18/bin/llvm-mc 315 --llvm-mc /usr/lib/llvm-19/bin/llvm-mc
315``` 316```
316 317
317With Mesa 25.2 (llvmpipe, LLVM 20) the first run passes 52 of 88 and skips 36, the second passes 37 of 39 and 318With Mesa 25.2 (llvmpipe, LLVM 20) the first run passes 52 of 88 and skips 36, the second passes 37 of 39 and