Repository navigation
run_gpu_tests: take the wave32 dump list from check.py - #3904
JRamos1993 wants to merge 2 commits into
Conversation
run_gpu_tests.py kept its own copy of check.py's WAVE32_DUMPS to decide which compute dumps run with --require-wave64. A wave32 fixture added to check.py only was run as wave64 and reported SKIP on every 32-wide GPU (cs_w32_lds_wrxchg2 and cs_w32_lds_b64_bitwise in ItsNotRexed#3208). The runner now imports WAVE32_DUMPS, as it already imports WAVE32_LANE_DUMPS. tests/test_run_gpu_tests.py DumpWaveWidth drives run_suite over every dump fixture of check.py with run_cmd mocked and checks that --require-wave64 is passed exactly for the non-wave32, non-partial ones (none under LEONIDA_W64_EMULATE=1), that each fixture reaches the dump branch, and that every cs_w32_* / cs_*_w32 fixture is in WAVE32_DUMPS. The two lists agreed on main, so no fixture's wave decision changes.
|
Second check on Windows at a4e60ec. All 44 runner tests passed with the f16 fallback set explicitly. With harnesses stubbed, the parent and head each dispatched the same 62 dump cases and one image-store control exactly once. I added one already runnable dump to check.WAVE32_DUMPS before importing the runner. Only that dump changed: the parent kept --require-wave64 and this head dropped it. The existing wave32 case, partial-wave pin, image-store path, and emulation controls behaved as expected. One test isolation gap: running the new DumpWaveWidth case with LEONIDA_F16_INTERP_FALLBACK unset attempted a subprocess call to tools/vk_subgroup_info.py. I intercepted the call with a mock. The helper can query a real Vulkan adapter even though run_cmd is stubbed. Set the fallback explicitly in dump_commands() or stub that probe to keep this test device-independent. AI-assisted. |
|
Tested at the head on Windows 11 / Python 3.13.0: The list is genuinely single-sourced: One gap: the missing-entry detection is name-based only ( Pre-existing nit: Approve. AI-assisted review, no game files, no GPU. |
|
Tested
No game files. AI-assisted (Claude Code). |
…evice DumpWaveWidth now pins check.py's WAVE32_DUMPS to its 33 names and checks that every entry is a CS_DUMPS fixture with an .asm file. A wave32 dump whose name does not say so (cs_store, cs_dpp) dropped from the list, or a misspelt entry, used to leave the tests green. Its run_suite calls set LEONIDA_F16_INTERP_FALLBACK, clear the cached device answer and make any subprocess fail the test, so the runner never asks tools/vk_subgroup_info.py (a Vulkan instance) about the device.
|
GPU run, as promised: a4e60ec merged onto Follow-up commit 0224598 (tests only) answers both reviews above. Thanks @Vonsek and @tupacfan04.
AI-assisted (Claude Code). |
|
Tested
AI-assisted (Claude Code). |
|
Tested 0224598 on Windows 11 (MSVC BuildTools 2022, Ninja, RelWithDebInfo, -j 4; no Vulkan validation layer installed), one GPU at a time, device line confirmed: AMD Radeon RDNA2 iGPU (driver 26.10.1) and NVIDIA RTX 5080 (driver 616.92). Ran AI-assisted. |
|
The two red checks on this run come from
Same as on #3905. The branch still merges cleanly. AI-assisted (Claude Code). |
new item (claimed in #3796).
What
scripts/run_gpu_tests.pydecided which compute dumps run with--require-wave64from its own copy ofruntime/test/shaders/check.py'sWAVE32_DUMPS(wave64 = name not in ("cs_store", ..., "cs_w32_andn2_exec") and not emulated and not partial, line 1057 on main aa2988c). A wave32 fixture added tocheck.pyonly runs as wave64 thereand reports
SKIP (no 64-wide compute subgroup on this device)on every 32-wide GPU (NVIDIA, Intel), with nothingfailing. That happened in #3208:
cs_w32_lds_wrxchg2andcs_w32_lds_b64_bitwiseare incheck.pyonly.The runner now imports
WAVE32_DUMPSfromcheck.py, as it already importsWAVE32_LANE_DUMPS, and drops its tuple.A comment at
WAVE32_DUMPSsays both runners read it. The two lists held the same 33 names on main, so no fixture'swave decision changes.
tests/test_run_gpu_tests.pyDumpWaveWidthrunsrun_suiteover every dump fixture ofcheck.py(CS_DUMPS,W64X_DUMPS,W64X_PARTIAL) withrun_cmdmocked, and checks that:--require-wave64is passed exactly for the fixtures that are neither inWAVE32_DUMPSnor partial, and for noneunder
LEONIDA_W64_EMULATE=1;cs_w32_*/cs_*_w32fixture inruntime/test/shadersis inWAVE32_DUMPS;run_gpu_tests.WAVE32_DUMPSischeck.WAVE32_DUMPS.Tested
Windows 11, Python 3.14.3 and 3.13.13, CPU only.
python -I tests/test_run_gpu_tests.py: 44 tests OK.tests/test_run_gpu_tests_paths.py20 OK,tests/test_shader_checks.py75 OK,tests/test_text_write_line_endings.py3 OK,tests/test_tool_stdout_encoding.py4 OK, and the other tests that import the runner or
check.py(14 files) pass.python -m compileall -qon thechanged files.
run_suitewithrun_cmdmocked: identical before and after for all62
vk_compute_testcalls, native and withLEONIDA_W64_EMULATE=1.DumpWaveWidthfails forcs_w32_lds_wrxchg2andcs_w32_lds_b64_bitwiseonly (both get--require-wave64); with the fix it passes and both run without it.test_runner_reads_check_py_listfails (the runner has noWAVE32_DUMPS); the other threepass, since the lists agree there.
emulated(27), removingcs_w32_salu64fromWAVE32_DUMPS(1): all caught.was verified unchanged on the CPU (above). The RTX 5090 run of
scripts/run_gpu_tests.pywill follow as a comment.No game files. AI-assisted (Claude Code).