diff options
| author | Dario Garcia <coto@Mac-mini-de-Dario.local> | 2026-11-23 22:23:45 +0100 |
|---|---|---|
| committer | Dario Garcia <coto@Mac-mini-de-Dario.local> | 2026-11-23 22:24:08 +0100 |
| commit | cc01a77eacad5bfacfcb2bf1c7dfaca5ef6c3096 (patch) | |
| tree | 4398298e6b95953799a3c8ef233b71739304dac5 /docs | |
| parent | 5d74c272363f2703265d44e6aaab1a1df8ddfaf3 (diff) | |
bench_wave64: add emulated-only mode (BUILD-3860)
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/testing.md | 14 |
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 |
| 278 | fails. | 278 | fails. |
| 279 | 279 | ||
| 280 | `scripts/bench_wave64.py` normally compares emulation on AMD and NVIDIA with a native-wave64 AMD reference. On a | ||
| 281 | machine without that reference, use `--emulated-only` to time the current Vulkan device instead: | ||
| 282 | |||
| 283 | ```sh | ||
| 284 | python3 -I scripts/bench_wave64.py --build runtime/build/linux \ | ||
| 285 | --llvm-mc "$(brew --prefix llvm)/bin/llvm-mc" --emulated-only | ||
| 286 | ``` | ||
| 287 | |||
| 288 | This mode builds only the emulated shader, requires every benchmark process to finish the shader's `0 mismatches` | ||
| 289 | self-check and requires the output hash to stay identical between processes. It says `no native reference` in the | ||
| 290 | result: the run establishes deterministic self-consistency on that device, not equality with native Wave64. The mode | ||
| 291 | leaves `LEONIDA_VK_DEVICE`, `VK_DRIVER_FILES` and `VK_LOADER_DRIVERS_SELECT` untouched; on macOS the test tools use | ||
| 292 | MoltenVK 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 |
| 281 | drivers report subgroups of 8..32 and may run it 8 or 16 wide; its second pattern reads lanes 16-31, which then | 295 | drivers report subgroups of 8..32 and may run it 8 or 16 wide; its second pattern reads lanes 16-31, which then |
| 282 | don't run. The test skips when the frame shows that (#1318), and the translation gives 0 for a source lane that | 296 | don't run. The test skips when the frame shows that (#1318), and the translation gives 0 for a source lane that |