Repository navigation
Tests: XCL_REQUIRE_GPU lets a part of a test skip for its own hardware reason - #3231
CharlyRien wants to merge 1 commit into
Conversation
…e reason skip_test fails a skip under XCL_REQUIRE_GPU=mesh unless its reason is exactly "no wave64" (and under =wave64 unless it is exactly "no mesh shaders"). lower_dxil's GPU tests skip only their wave64 half, with the reason of that part: "f32 arithmetic, wave64: no wave64", "const_mask, wave64: no wave64", "mask_ff0_flbit, wave64: no wave64" and three more. On a GPU without wave64 (an RTX 3090) the suite under XCL_REQUIRE_GPU=mesh therefore failed six tests whose only skip is the one that setting allows. The rule is now skip_fails, which takes "<part>: <reason>" as that reason. Nothing else changes: any other reason, and a part skipped for another one, still fails. Test: skip_tests::a_required_gpu_lets_through_its_hardware_reason_also_for_a_part. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
cc6e27b to
a04dcd5
Compare
|
Rebased on Read, CI: the 4 Description refreshed (Tested, Regression run, AI use). The diff only touches the test runner: a Stack: RTX 3090 24 GB (Resizable BAR off), driver 616.56, Ryzen 9 5950X, 32 GB RAM, Windows 11 22631; Rust 1.100.0, release tests, AI use: rebase, test runs and this comment done with Claude Code (Claude Opus 5.5), checked by me. |
|
merge-check claim |
|
merge-check |
|
No open or merged PR makes the same change: the closed #1670 / #1680 also pulled the rule out of AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human. |
|
merge-check AI-written and posted by Foniass without a human check of each point. |
Under
XCL_REQUIRE_GPU=mesh,runner::skip_testturns every skip into a failure unless its reason is exactly"no wave64"; under=wave64, unless it is exactly"no mesh shaders". Six GPU tests ingpu::recomp::lower_dxilskip only their wave64 half, and name that part in the reason:"f32 arithmetic, wave64: no wave64","const_mask, wave64: no wave64", and so on. On a GPU without wave64 (every NVIDIA card) a suite run withXCL_REQUIRE_GPU=meshtherefore fails those six, although their only skip is the one that setting allows.This PR counts
"<part>: no wave64"as"no wave64"(and"<part>: no mesh shaders"as"no mesh shaders"). Any other reason still fails, and so does a part skipped for another reason. Only the test runner's skip rule changes; nothing a title runs.What is in it
crates/xcl/src/gpu/recomp/runner.rs:skip_fails(required, reason): the rule, out ofskip_test, with the suffix case (after": ", the whole hardware reason).skip_testcalls it; the doc comment names the<part>: <reason>form.skip_tests::a_required_gpu_lets_through_its_hardware_reason_also_for_a_part: the six reasons' form undermesh, other reasons and lookalikes ("xno wave64","f32: no wave64 and no GPU") still failing,wave64andwave64,mesh, an unknown setting.Why
XCL_REQUIRE_GPU=meshhad 7 failures that are skips. 6 are these (lower_dxil::tests::{const_and_null_mask_operands_agree_with_hlsl_on_the_gpu, f16_programs_on_the_gpu, f32_programs_on_the_gpu, f64_programs_on_the_gpu, integer_programs_on_the_gpu, mask_ff0_and_flbit_agree_with_hlsl_on_the_gpu}, each "…, wave64: no wave64, but XCL_REQUIRE_GPU=mesh").heap_window_out_of_memory_falls_back_to_the_switch_form("no heap windows"): not a hardware reason, left to Tests: XCL_REQUIRE_GPU does not fail the heap-window opt-in skip (#1651) #1690 / Tests: return early without runner::skip_test on unset XCL_HEAP_WINDOWS (#1651) #1666, which handle it.lower_dxil.rs(format!("{name}, wave64: no wave64")and two literals);skip_testcompares with!=.Tested
a04dcd5onmain7a649b0(rebased 29/11, no conflict;runner.rsand the"{name}, wave64: no wave64"reasons oflower_dxil.rsunchanged onmain). RTX 3090 24 GB (Resizable BAR off), driver 616.56, Ryzen 9 5950X, 32 GB RAM, Windows 11 22631; Rust 1.100.0, release tests.XCL_ADAPTER=warp;XCL_REQUIRE_GPUunset):cargo test --release -p xcl --lib -- gpu::recomp::runner shaders::pipeline_library::tests shaders::warm_library::tests --test-threads=4: 4 passed, 7 failed:skip_tests::a_required_gpu_lets_through_its_hardware_reason_also_for_a_partpassed. The 7 failures are 6shaders::pipeline_library::testsandshaders::warm_library::tests::cold_publish_makes_an_unchanged_corpus_reusable:CreateComputePipelineStatereturns E_INVALIDARG on this machine's WARP, which has no SM 6.6 (the other 6 then fail on the poisoned lock or the same error). That is a local artefact of a WARP run here, not the CI failure (an entry count, 3 against 2).main7a649b0: the same 7 failures with the same errors, nothing else failed (408 passed, 7 failed, 19 ignored for the union of the filters of our five PRs).main7a649b0(no new one).XCL_REQUIRE_GPU=mesh, release):cargo test --release -p xcl --lib -- skip_tests:: --test-threads=1: 1 passed, 0 failed, 0 ignored (skip_tests::a_required_gpu_lets_through_its_hardware_reason_also_for_a_part).cc6e27b. Onmain7a649b0main's own CI fails 8 tests, all inhle::d3d12x::title_textures::tests(run 46261846646): a red Build and test on this head with those 8 ismain's.cc6e27bonmain7db2f39,XCL_REQUIRE_GPU=mesh:gpu::recomp::lower_dxil::tests::andskip_tests::, 24 passed, 0 failed; onmain7db2f39, same setting, the six tests named above failed; there they passed and printed their 17SKIPPEDlines (13 wave64 parts, 1 "no wave64", 3 per-lane refusals of f16 operations that print withoutskip_test, as onmain).Regression run
Same machine as under Tested, same title, 60 s each (the
scripts/smoke.ps1default), both throughmaind52ff48'sscripts/smoke.ps1,XCL_PREPARE=0, the same scripted A presses (XCL_PRESS_A_AT). Each run started from its own copy of the same shader cache, made by anothermaincommit, so cold for both. The head is onmain7a649b0; themainrun is ofmaind52ff48(the newestmaintoday, 244 commits later), not of the head's base: the check asks for a commit ofmain. The diff changes only the test runner's skip rule (gpu/recomp/runner.rs, which the check counts as runtime code by its path), so this pair only checks that the binary still runs the title asmaindoes.maind52ff48:this head
a04dcd5(main7a649b0+ this commit):main's 517 (113.5 %; the check wants at least 80 %), peak commit 15,630 MB against 15,968 MB (97.9 %; at most 125 %). Last three 2 s slices: head 61 61 60,main61 60 61 presents. 60 s covers the start of the title, not a long stay in its world.maind52ff48, so the difference between the two runs includes those commits, not only this PR.Not tested
wave64side of the rule only by the unit test.<part>:form.AI use
AI use: finding the failures in our suite runs, the change and its test, the rebase, the test and smoke runs and this description were done with Claude Code (Claude Opus 5.5), checked and posted by me.
🤖 Generated with Claude Code