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:
authorDadaCap <167002618+DadaCap@users.noreply.github.com>2026-11-28 09:04:11 +0100
committerGitHub <noreply@github.com>2026-11-28 09:04:11 +0100
commiteb3a0d1f8dce39c51c05d4ba5b3315d3549755f6 (patch)
treea99e12e583700d374e635af35523e94cdd31b812 /docs/testing.md
parentf7ea55c194b075fc82d64f998f74b598c73fcb2a (diff)
parentde04d88b92643715b0257eee224bd8e35c912e58 (diff)
Merge pull request #1938 from levi2m/feat/vk-model-oracle
vk_model_fuzz: judge pk16_diff, vint_diff and sdwa_diff on any Vulkan GPU against their reference model (VK-MODEL-ORACLE)
Diffstat (limited to 'docs/testing.md')
-rw-r--r--docs/testing.md16
1 files changed, 16 insertions, 0 deletions
diff --git a/docs/testing.md b/docs/testing.md
index ca17d790c..3e1ad6935 100644
--- a/docs/testing.md
+++ b/docs/testing.md
@@ -842,6 +842,22 @@ exits 77, so CI skips it. `image_fuzz.py --oracle hw` loads a linear texture thr
842its CPU model; add `--negative-control` to check that wrong models are caught. A gfx1150 (RDNA3.5) is not RDNA2: a 842its CPU model; add `--negative-control` to check that wrong models are caught. A gfx1150 (RDNA3.5) is not RDNA2: a
843match supports the model and does not prove RDNA2. Run these one at a time: a second job on the same GPU can hang it. 843match supports the model and does not prove RDNA2. Run these one at a time: a second job on the same GPU can hang it.
844 844
845## Model oracle on any Vulkan GPU (no AMD hardware)
846
847`pk16_diff.py`, `vint_diff.py` and `sdwa_diff.py` judge their translated programs on a Vulkan GPU only against the words
848a native AMD GPU produced (`--oracle hw,vk`). `tools/vk_model_fuzz.py` runs the same programs, for the same seed, on
849whatever Vulkan GPU you have and judges them against the fuzzer's reference model instead:
850
851```sh
852python -I tools/vk_model_fuzz.py pk16_diff --programs 1500 --seed 11 --build runtime/build
853```
854
855`--build` is the folder with `vk_compute_test`; `llvm-mc` with the AMDGPU target is needed as for `valu_fuzz.py`. It exits
8560 when every judged program matched, 1 on a mismatch (the first few programs are printed), 2 when `vk_compute_test` is
857missing and 77 when nothing could be judged. A program the model declines counts as a skip. A mismatch here is the GPU
858disagreeing with the model, which is a driver difference, a translator bug or a model bug: re-read the program with
859the fuzzer itself (`pk16_diff.py --seed S --programs N`) before reporting it.
860
845## Choosing the GPU 861## Choosing the GPU
846 862
847With more than one GPU, pick one through the Vulkan loader, for example 863With more than one GPU, pick one through the Vulkan loader, for example