diff options
| author | DadaCap <167002618+DadaCap@users.noreply.github.com> | 2026-11-28 09:04:11 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-11-28 09:04:11 +0100 |
| commit | eb3a0d1f8dce39c51c05d4ba5b3315d3549755f6 (patch) | |
| tree | a99e12e583700d374e635af35523e94cdd31b812 /docs/testing.md | |
| parent | f7ea55c194b075fc82d64f998f74b598c73fcb2a (diff) | |
| parent | de04d88b92643715b0257eee224bd8e35c912e58 (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.md | 16 |
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 | |||
| 842 | its CPU model; add `--negative-control` to check that wrong models are caught. A gfx1150 (RDNA3.5) is not RDNA2: a | 842 | its CPU model; add `--negative-control` to check that wrong models are caught. A gfx1150 (RDNA3.5) is not RDNA2: a |
| 843 | match supports the model and does not prove RDNA2. Run these one at a time: a second job on the same GPU can hang it. | 843 | match 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 | ||
| 848 | a native AMD GPU produced (`--oracle hw,vk`). `tools/vk_model_fuzz.py` runs the same programs, for the same seed, on | ||
| 849 | whatever Vulkan GPU you have and judges them against the fuzzer's reference model instead: | ||
| 850 | |||
| 851 | ```sh | ||
| 852 | python -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 | ||
| 856 | 0 when every judged program matched, 1 on a mismatch (the first few programs are printed), 2 when `vk_compute_test` is | ||
| 857 | missing and 77 when nothing could be judged. A program the model declines counts as a skip. A mismatch here is the GPU | ||
| 858 | disagreeing with the model, which is a driver difference, a translator bug or a model bug: re-read the program with | ||
| 859 | the fuzzer itself (`pk16_diff.py --seed S --programs N`) before reporting it. | ||
| 860 | |||
| 845 | ## Choosing the GPU | 861 | ## Choosing the GPU |
| 846 | 862 | ||
| 847 | With more than one GPU, pick one through the Vulkan loader, for example | 863 | With more than one GPU, pick one through the Vulkan loader, for example |