Tests: heap_window_out_of_memory_falls_back_to_the_switch_form fails under XCL_REQUIRE_GPU=mesh (opt-in skip counted as missing coverage) #1651
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl#1651
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@futurepro62 on GitHub · 2026-11-24 18:42 UTC · original
On main
9e3831e(code unchanged atc160d86),cargo test --workspacewithXCL_REQUIRE_GPU=meshfails intests/gpu_compute_e2e.rs:Cause. The test (added in
927adcc) callsrunner::skip_test("no heap windows")whenXCL_HEAP_WINDOWSis unset.skip_testturns every skip reason except"no wave64"into a panic underXCL_REQUIRE_GPU=mesh(and every reason except"no mesh shaders"under=wave64). So an opt-in feature that is off by default reads as missing GPU coverage.Effect. It fails on any GPU when
XCL_REQUIRE_GPUis set withoutXCL_HEAP_WINDOWS=1. Without--no-fail-fast, cargo also stops at that test binary, so the test binaries aftergpu_compute_e2edon't run: 25 ignored instead of 41 here. In a batch of 31 PRs based on9e3831e, all failed this way on an RTX 5070 Ti. WithoutXCL_REQUIRE_GPU, it is the "no heap windows" skip others list in their reports.Possible fix. Let
skip_testpass opt-in reasons through, e.g. add"no heap windows"next to"no wave64"/"no mesh shaders"in thematch. Or have the test return early with a plain message instead ofskip_test, since nothing about the adapter is missing.Tested
AI use
github-bot referenced this issue2026-11-26 05:00:56 +00:00
github-bot referenced this issue2026-11-26 05:01:45 +00:00
@mantavisual on GitHub · 2026-11-24 20:28 UTC · original
The four open fixes run side by side on native Windows with an NVIDIA card: RTX 4060 8 GB (driver 616.92, wave32), i5-13600K, Windows 11 Pro 22631, Rust 1.100.0 MSVC, DXC 1.9.2602.17, debug.
cargo test -p xcl --locked --test gpu_compute_e2e -- --exact heap_window_out_of_memory_falls_back_to_the_switch_form --nocapture:XCL_REQUIRE_GPU=meshSKIPPEDXCL_HEAP_WINDOWS=1c160d86(base of all four)bf6459dscripts/test.ps1does not count it94ce38d(draft)cfef9d8cfb4730#1670 and #1680 change
skip_testand bring unit tests, which pass here merged with mainb9b6ea6. #1666 and #1690 change only this test. #1690's head withXCL_REQUIRE_GPU=mesh, whole suite: 858 passed, 0 failed, 42 ignored.A second skip now fails the same way. On main
b9b6ea6,XCL_REQUIRE_GPU=meshfailsshaders::tests::pso_measurement_compiles_an_exact_synthetic_recordon this PC:cannot disable the driver cache (Windows Developer Mode is required). Developer Mode is off here. WithoutXCL_REQUIRE_GPUthe test printsSKIPPEDand passes. It still fails with each of the four merged intob9b6ea6.Not tested: AMD,
XCL_REQUIRE_GPU=wave64, Developer Mode on.AI use: Claude Code (Claude Opus 5.5) ran this on my machine, wrote the report and posted it for me.
@futurepro62 on GitHub · 2026-11-24 22:18 UTC · original
A third case on main
266b845(still there on689f2db), from9231d48("Tests: f32 programs for the per-lane lowering"): fourlower_dxilGPU tests fail underXCL_REQUIRE_GPU=meshon a card without wave64.lower_dxil.rs:584skips withformat!("{name}, wave64: no wave64"), butrunner::skip_testonly exempts the exact reason"no wave64"formesh, so the skip becomes a panic:Failing:
f16_programs_on_the_gpu,f32_programs_on_the_gpu,integer_programs_on_the_gpu,f64_programs_on_the_gpu(all ingpu::recomp::lower_dxil::tests). Line 645 in the same file uses the plain"no wave64"and is fine.Seen in a full-suite run of #1739's head
b488696(rebased onto266b845; the PR does not touchlower_dxil.rs), RTX 5070 Ti (wave32 only), driver 616.64, Windows 11 Home 26300, Rust 1.100.0 MSVC, debug,XCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4.None of the open fixes covers this one: #1666 and #1690 change only the heap-window test. Matching on a suffix in
skip_test, or passing the bare"no wave64"here, would both fix it.Separately, to confirm @mantavisual's second case:
pso_measurement_compiles_an_exact_synthetic_recordfailed here the same way on main7f7e768with Developer Mode off (0x887A002D).AI use: Claude Code (Claude Opus 5.5) ran the tests and wrote this comment. I checked it before posting.
@gabrielsteglich on GitHub · 2026-11-24 22:48 UTC · original
I'll take the per-lane DXIL wave64 skip reported in this comment. The test will pass the same
no wave64reason as the other GPU tests, so mesh-only validation can skip the native-wave64 cases. I'll verify bothXCL_REQUIRE_GPU=meshandXCL_REQUIRE_GPU=wave64on an RTX 3090.This is the
lower_dxil.rscase. The heap-window and Developer Mode reports have their own call sites.@evnw on GitHub · 2026-11-25 02:01 UTC · original
AMD RDNA2 data point (Radeon RX 6600) for the open heap-window fixes, and the Developer Mode case
Tested
stable-x86_64-pc-windows-msvc, debug.cargo test -p xcl --locked --test gpu_compute_e2e -- --exact heap_window_out_of_memory_falls_back_to_the_switch_form --nocapture, each PR head as it is (not merged with currentmain),mainat656c0e8:XCL_REQUIRE_GPU=meshSKIPPEDXCL_HEAP_WINDOWS=1XCL_REQUIRE_GPUmain656c0e8cfb4730bf6459dSame outcome as the NVIDIA table above.
Developer Mode skip.
shaders::tests::pso_measurement_compiles_an_exact_synthetic_recordfails the same way on this card. With Developer Mode off,measure_pso_resultreturnsUnavailable("cannot disable the driver cache (Windows Developer Mode is required): ... (0x887A002D)"), the test passes that text torunner::skip_test, andXCL_REQUIRE_GPU=meshturns it into a panic atrunner.rs:620. Without the variable it printsSKIPPEDand passes. I did not find an open PR that changes this skip: of the 40 open PRs that touchcrates/xcl/src/shaders.rs, none changes the test or itsskip_testcall. I plan to open a PR for this case only, in the style of #1690 (print theSKIPPEDline, do not callskip_test), unless someone already has it.Also seen, not claimed. On this card with
XCL_REQUIRE_GPU=mesh,gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpuandf32_programs_on_the_gpupanic on theper-lane form: refused (unsupported V_MUL_F16 ...)and(unsupported V_CVT_F16_F32 ...)skips (lower_dxil.rs:673). That is a different line from theno wave64skip that #1903 changes. I have not checked whether anyone has this one.Not tested
main; the whole suite on each PR; release builds;XCL_REQUIRE_GPU=wave64.AI use
@AmateurWizrd on GitHub · 2026-11-25 04:41 UTC · original
A case under
XCL_REQUIRE_GPU=wave64(the others here are under=mesh): on a GPU that has wave64,f16_programs_on_the_gpuandf32_programs_on_the_gpufail because a wave32 per-lane case the recompiler refuses goes throughskip_test, and=wave64turns every reason except "no mesh shaders" into a panic (runner.rs:617-628oncbc296a).The refusal is not missing wave64 coverage: the same cases are refused at both widths, because the recompiler does not take those instructions in the per-lane form. Without
XCL_REQUIRE_GPUthe two tests pass on this card and print 6SKIPPEDlines, wave32 and wave64 alike (f16 arithmetic,f16 packed,f32 conversions, eachwave32, per-lane form: refused (...)andwave64, per-lane form: refused (...)). With=wave64the first refused case panics.Tested
XCL_ADAPTER=radeon; Windows 11 build 26200; Rust 1.100.0; debugcargo test -p xcl --lib -- gpu::recomp --test-threads=4withXCL_REQUIRE_GPU=wave64: 351 passed, 2 failed (these two), 19 ignored onmaincbc296a; the same 2 fail on #2064's head743a612cargo test -p xcl --lib -- lower_dxil::tests::f --test-threads=1 --nocaptureoncbc296a: 3 passed withoutXCL_REQUIRE_GPU; 1 passed, 2 failed withXCL_REQUIRE_GPU=wave64Not tested
lower_dxilone claimed above) covers this; NVIDIA (no wave64, so=wave64is not used there)AI use: omp. Claude Fable 5.2 ran the tests and wrote this note.
github-bot referenced this issue2026-11-26 06:18:30 +00:00