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:
Diffstat (limited to 'docs/testing.md')
-rw-r--r--docs/testing.md14
1 files changed, 14 insertions, 0 deletions
diff --git a/docs/testing.md b/docs/testing.md
index 34cb420af..5aa7c6702 100644
--- a/docs/testing.md
+++ b/docs/testing.md
@@ -277,6 +277,20 @@ To test the wave64 emulation that makes them exact on these GPUs, set `LEONIDA_W
277`check.py`, the shaders are checked against the emulated expectations without being emulated, and every wave64 test 277`check.py`, the shaders are checked against the emulated expectations without being emulated, and every wave64 test
278fails. 278fails.
279 279
280`scripts/bench_wave64.py` normally compares emulation on AMD and NVIDIA with a native-wave64 AMD reference. On a
281machine without that reference, use `--emulated-only` to time the current Vulkan device instead:
282
283```sh
284python3 -I scripts/bench_wave64.py --build runtime/build/linux \
285 --llvm-mc "$(brew --prefix llvm)/bin/llvm-mc" --emulated-only
286```
287
288This mode builds only the emulated shader, requires every benchmark process to finish the shader's `0 mismatches`
289self-check and requires the output hash to stay identical between processes. It says `no native reference` in the
290result: the run establishes deterministic self-consistency on that device, not equality with native Wave64. The mode
291leaves `LEONIDA_VK_DEVICE`, `VK_DRIVER_FILES` and `VK_LOADER_DRIVERS_SELECT` untouched; on macOS the test tools use
292MoltenVK directly by default.
293
280`ps_bitmask_perm` is a wave32 pixel shader, and a pixel shader's width can't be requested on every device. Intel 294`ps_bitmask_perm` is a wave32 pixel shader, and a pixel shader's width can't be requested on every device. Intel
281drivers report subgroups of 8..32 and may run it 8 or 16 wide; its second pattern reads lanes 16-31, which then 295drivers report subgroups of 8..32 and may run it 8 or 16 wide; its second pattern reads lanes 16-31, which then
282don't run. The test skips when the frame shows that (#1318), and the translation gives 0 for a source lane that 296don't run. The test skips when the frame shows that (#1318), and the translation gives 0 for a source lane that