Repository navigation
GPU tests: treat a missing shaderFloat64 as a SKIP, not a FAIL - #4718
bobcatchris wants to merge 1 commit into
Conversation
judge_cs_dump() mapped exit 77 to a skip only for wave64 fixtures, so a 32-wide module needing shaderFloat64 was judged as a failure on devices without the feature even though the harness named the missing capability. Return a SKIP whenever the harness exits 77 with a shaderFloat64 message, in any dump mode; cs_f64_add already did the same at its own call site. Four tests cover the 32-wide case, the other modes, other exit-77 reasons and a normally running module. Apple M2 / MoltenVK 1.4.2 end-to-end: ItsNotRexed#2537's cs_w32_trig_preop went from FAIL to SKIP with this patch, with no code change to that PR. AI-assisted.
Kam471
left a comment
There was a problem hiding this comment.
Ran this at 0f07fb360 on Windows 11: pytest tests/test_run_gpu_tests.py -q -> 45 passed, 53 subtests passed; git diff --check clean.
A device without shaderFloat64 now reports the affected GPU test as SKIP (with the capability named) instead of FAIL, matching the other capability-miss skips; the added cases pin the skip text and that a real failure is still a failure. No blocking issue.
|
Merge-ready. Cosmetic only: the skip text at Approve. AI-assisted review, no game files, no GPU. |
|
Thanks for the merge-ready check and the negative control. I kept the fixed AI-assisted. |
|
Re-ran at head Confirms the earlier 45/45 run at the same SHA. Red control: AI-assisted (Devin). |
|
Verified on Linux: tests/test_run_gpu_tests.py passes all 45 tests, including the 4 new ones — the capability skip fires only when exit 77 names shaderFloat64 (an unrelated 77 still fails, a running module is still judged by its words, and the skip holds in all four dump modes). The Apple Silicon behaviour it fixes could not be exercised here. Note your commit rides the round-43 stacked base; a rebase onto main would shrink the diff dramatically. AI-assisted: yes. Tested on Linux (RTX 5080 host, CPU-only run). Correction (2026-11-23): the rebase/integration-stack note above was wrong — our verifier tracked a stale main ref. Those base commits are current main; this head contains main and merge-trees cleanly against de67135. No rebase needed; the tests-pass verdict stands unchanged. See the correction note on #4421. |
|
Tested 0f07fb3 merged onto main de67135 on an RTX 5090 (driver 616.92), Windows 11, Vulkan SDK 1.4.363. The GPU test programs were built from the same tree:
AI-assisted (Claude Code). |
TinkerBell-90
left a comment
There was a problem hiding this comment.
Tested 0f07fb36 merged onto main 3faac557 on NVIDIA GeForce RTX 3070 (driver 595.99.02, Vulkan 1.4.329, 32-wide subgroups), Ubuntu 26.04 (Kubuntu), native build of the runtime test programs from main, llvm-mc 21. No game files. I read the whole diff first (one branch in judge_cs_dump and a test class; nothing else is touched).
Unit tests
python3 -I tests/test_run_gpu_tests.py: 45 OK.git diff --check: clean.- This PR's tests against
main'srun_gpu_tests.py: 5 failures, all inFloat64CapabilitySkip. - Negative control: this PR with the two-line
shaderFloat64check removed: the same 5 failures.
GPU
python3 -I scripts/run_gpu_tests.py, main vs this PR; every test has the same status in both:
| run | main | this PR |
|---|---|---|
| default | 170/217 passed, 47 skipped, 0 failed | same |
LEONIDA_W64_EMULATE=1 |
201/217, 16 skipped, 0 failed | same |
shaderFloat64 hidden by a test-only Vulkan layer |
167/217, 50 skipped, 0 failed | same |
same, with LEONIDA_W64_EMULATE=1 |
198/217, 19 skipped, 0 failed | same |
Nothing moves on main today, which is expected: cs_f64_add is the only dump fixture that needs Float64 and it already skips at its call site, and ps_f64_mods and ps_f64_round already SKIP with the feature hidden. The change shows only with a fixture like #2537's cs_w32_trig_preop, which I did not have.
The judge with real harness output
vk_compute_test on cs_f64_add with shaderFloat64 hidden exits 77 with an unsupported: ... uses Float64 ... line. Through judge_cs_dump: main gives FAIL; this PR gives SKIP (no shaderFloat64 on this device), also with emulated=True and with --require-wave64 output that names Float64 (the 3070 is 32-wide, so I built that text from the harness's own lines). A bare 77, an exit 1 that prints an unsupported: line, and the 3070's own "full 64-wide compute subgroups unavailable" 77 behave as before.
Findings
- Only
shaderFloat64. TheOpFmaKHR77 fromvk_compute_testis another exit 77 that names a missing feature. On Mesa llvmpipe (noVK_KHR_shader_fma,LEONIDA_FMA=khr, whole suite)mainand this PR give the same 113/217 passed, 74 skipped, 30 failed,cs_w32_new_opsamong the failures. scripts/run_gpu_tests.py:349:"shaderFloat64" in msgmatches the whole output, module path included.unsupported: /w/cs_shaderFloat64_x.spv needs OpFmaKHR ...is reported asSKIP (no shaderFloat64 on this device). Contrived, a nit.test_other_exit_77_reasons_are_not_mistaken_for_a_float64_skippins an unrelatedunsupported:77 (push constants) as a FAIL. #4262 and #2647 make the opposite choice (anyunsupported:77 is a skip), so the maintainer has to pick one.
Other PRs on the same lines
- #4262 changes the same part of
judge_cs_dumpwith a general rule: any 77 with anunsupported:line is a SKIP quoting it, in every mode. On the same checks it skips this PR's Float64 case too and, on llvmpipe, takes the 30 failures to 0 (it also adds vertex-stage FMA checks to the C++ programs). The two conflict injudge_cs_dump, so only one can land as is. - #2647 at
71067997addscompute_unsupportedtojudge_cs_dump, which also reads the Float64 77 (and the Int64 one). Merging this PR onto it conflicts in that one hunk; taking #2647's side leaves this PR's 6 new test assertions failing, only because #2647 words the skipSKIP (unsupported: ... uses Float64 ...)where they expectSKIP (no shaderFloat64 on this device). If #2647 lands first, this PR's source change is redundant.
AI-assisted.
|
Tested
|
|
Closing as superseded. Current main's judge_cs_dump(77, "... uses Float64 and the device has no shaderFloat64", ...) -> (None, "SKIP (/tmp/x.spv uses Float64 and the device has no shaderFloat64)") My narrower branch also conflicts with that generic rule (it expects a different fixed string), and rebasing it would regress main's behaviour. The original finding is fixed on main, so there is nothing left for this PR to do. Verified on current main AI-assisted. |
|
Closing as superseded: |
Fixes the misclassification found during my Apple M2 check of #2537.
What and why
judge_cs_dump()inscripts/run_gpu_tests.pymapped harness exit 77 to a SKIP only whenwave64=True. A 32-wide fixture that needsshaderFloat64(e.g. #2537'scs_w32_trig_preop) exits 77 on a device without the feature, and was reported as a FAIL with theunsupported: ... no shaderFloat64line as its detail.cs_f64_addalready special-cased the same thing at its call site.Now any exit 77 whose message names
shaderFloat64returns(None, "SKIP (no shaderFloat64 on this device)"), in every dump mode. Other exit-77 reasons are unchanged (still a failure for a non-wave64 fixture).Tested
python -I tests/test_run_gpu_tests.py: 45/45 OK, including four new tests inFloat64CapabilitySkip(32-wide case, all dump modes, unrelated exit-77 reasons, and a normally running module).python -m compileall -q scripts/run_gpu_tests.py tests/test_run_gpu_tests.py: clean.7d3623eawith only this patch applied,python -I scripts/run_gpu_tests.py --filter cs_w32_trig_preop --build <harness>went fromFAIL ... no shaderFloat64toSKIP (no shaderFloat64 on this device), 0/1 passed, 1 skipped. No code change to rdna2spirv: v_dot2_f32_f16, v_dot2c_f32_f16 and v_trig_preop_f64 (SHADER-449) #2537.No game data; synthetic fixtures and counts only.
AI-assisted.