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

Open
opened 2026-11-26 05:00:34 +00:00 by github-bot · 5 comments
Owner

@⁠futurepro62 on GitHub · 2026-11-24 18:42 UTC · original

On main 9e3831e (code unchanged at c160d86), cargo test --workspace with XCL_REQUIRE_GPU=mesh fails in tests/gpu_compute_e2e.rs:

no heap windows (opt-in: XCL_HEAP_WINDOWS=1; or no shared heap) – skipping
thread 'heap_window_out_of_memory_falls_back_to_the_switch_form' panicked at crates\xcl\src\gpu\recomp\runner.rs:439:9:
heap_window_out_of_memory_falls_back_to_the_switch_form: no heap windows, but XCL_REQUIRE_GPU=mesh

Cause. The test (added in 927adcc) calls runner::skip_test("no heap windows") when XCL_HEAP_WINDOWS is unset. skip_test turns every skip reason except "no wave64" into a panic under XCL_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_GPU is set without XCL_HEAP_WINDOWS=1. Without --no-fail-fast, cargo also stops at that test binary, so the test binaries after gpu_compute_e2e don't run: 25 ignored instead of 41 here. In a batch of 31 PRs based on 9e3831e, all failed this way on an RTX 5070 Ti. Without XCL_REQUIRE_GPU, it is the "no heap windows" skip others list in their reports.

Possible fix. Let skip_test pass opt-in reasons through, e.g. add "no heap windows" next to "no wave64" / "no mesh shaders" in the match. Or have the test return early with a plain message instead of skip_test, since nothing about the adapter is missing.

Tested

  • NVIDIA GeForce RTX 5070 Ti, driver 616.64, Windows 11 Home 26300, Rust 1.100.0 MSVC, DXC 1.9.2602.17.

AI use

  • Claude Code (Claude Opus 5.5) found the cause and wrote this issue. I checked it before posting.
**@⁠futurepro62** on GitHub · 2026-11-24 18:42 UTC · [original](https://github.com/xcl-dev/xcl/issues/1651) On main `9e3831e` (code unchanged at `c160d86`), `cargo test --workspace` with `XCL_REQUIRE_GPU=mesh` fails in `tests/gpu_compute_e2e.rs`: ``` no heap windows (opt-in: XCL_HEAP_WINDOWS=1; or no shared heap) – skipping thread 'heap_window_out_of_memory_falls_back_to_the_switch_form' panicked at crates\xcl\src\gpu\recomp\runner.rs:439:9: heap_window_out_of_memory_falls_back_to_the_switch_form: no heap windows, but XCL_REQUIRE_GPU=mesh ``` **Cause.** The test (added in `927adcc`) calls `runner::skip_test("no heap windows")` when `XCL_HEAP_WINDOWS` is unset. `skip_test` turns every skip reason except `"no wave64"` into a panic under `XCL_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_GPU` is set without `XCL_HEAP_WINDOWS=1`. Without `--no-fail-fast`, cargo also stops at that test binary, so the test binaries after `gpu_compute_e2e` don't run: 25 ignored instead of 41 here. In a batch of 31 PRs based on `9e3831e`, all failed this way on an RTX 5070 Ti. Without `XCL_REQUIRE_GPU`, it is the "no heap windows" skip others list in their reports. **Possible fix.** Let `skip_test` pass opt-in reasons through, e.g. add `"no heap windows"` next to `"no wave64"` / `"no mesh shaders"` in the `match`. Or have the test return early with a plain message instead of `skip_test`, since nothing about the adapter is missing. **Tested** - NVIDIA GeForce RTX 5070 Ti, driver 616.64, Windows 11 Home 26300, Rust 1.100.0 MSVC, DXC 1.9.2602.17. **AI use** - Claude Code (Claude Opus 5.5) found the cause and wrote this issue. I checked it before posting.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:00:34 +00:00
Author
Owner

@⁠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=mesh prints SKIPPED also XCL_HEAP_WINDOWS=1
main c160d86 (base of all four) fails – passes
#1666 bf6459d passes no, so scripts/test.ps1 does not count it passes
#1670 94ce38d (draft) passes yes passes
#1680 cfef9d8 passes yes passes
#1690 cfb4730 passes yes passes

#1670 and #1680 change skip_test and bring unit tests, which pass here merged with main b9b6ea6. #1666 and #1690 change only this test. #1690's head with XCL_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=mesh fails shaders::tests::pso_measurement_compiles_an_exact_synthetic_record on this PC: cannot disable the driver cache (Windows Developer Mode is required). Developer Mode is off here. Without XCL_REQUIRE_GPU the test prints SKIPPED and passes. It still fails with each of the four merged into b9b6ea6.

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.

**@⁠mantavisual** on GitHub · 2026-11-24 20:28 UTC · [original](https://github.com/xcl-dev/xcl/issues/1651#issuecomment-7143600173) 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=mesh` | prints `SKIPPED` | also `XCL_HEAP_WINDOWS=1` | |---|---|---|---| | main `c160d86` (base of all four) | fails | – | passes | | #1666 `bf6459d` | passes | no, so `scripts/test.ps1` does not count it | passes | | #1670 `94ce38d` (draft) | passes | yes | passes | | #1680 `cfef9d8` | passes | yes | passes | | #1690 `cfb4730` | passes | yes | passes | #1670 and #1680 change `skip_test` and bring unit tests, which pass here merged with main `b9b6ea6`. #1666 and #1690 change only this test. #1690's head with `XCL_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=mesh` fails `shaders::tests::pso_measurement_compiles_an_exact_synthetic_record` on this PC: `cannot disable the driver cache (Windows Developer Mode is required)`. Developer Mode is off here. Without `XCL_REQUIRE_GPU` the test prints `SKIPPED` and passes. It still fails with each of the four merged into `b9b6ea6`. **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.
Author
Owner

@⁠futurepro62 on GitHub · 2026-11-24 22:18 UTC · original

A third case on main 266b845 (still there on 689f2db), from 9231d48 ("Tests: f32 programs for the per-lane lowering"): four lower_dxil GPU tests fail under XCL_REQUIRE_GPU=mesh on a card without wave64.

lower_dxil.rs:584 skips with format!("{name}, wave64: no wave64"), but runner::skip_test only exempts the exact reason "no wave64" for mesh, so the skip becomes a panic:

gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 arithmetic, wave64: no wave64, but XCL_REQUIRE_GPU=mesh

Failing: f16_programs_on_the_gpu, f32_programs_on_the_gpu, integer_programs_on_the_gpu, f64_programs_on_the_gpu (all in gpu::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 onto 266b845; the PR does not touch lower_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_record failed here the same way on main 7f7e768 with Developer Mode off (0x887A002D).

AI use: Claude Code (Claude Opus 5.5) ran the tests and wrote this comment. I checked it before posting.

**@⁠futurepro62** on GitHub · 2026-11-24 22:18 UTC · [original](https://github.com/xcl-dev/xcl/issues/1651#issuecomment-7146069648) A third case on main `266b845` (still there on `689f2db`), from `9231d48` ("Tests: f32 programs for the per-lane lowering"): four `lower_dxil` GPU tests fail under `XCL_REQUIRE_GPU=mesh` on a card without wave64. `lower_dxil.rs:584` skips with `format!("{name}, wave64: no wave64")`, but `runner::skip_test` only exempts the exact reason `"no wave64"` for `mesh`, so the skip becomes a panic: ``` gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 arithmetic, wave64: no wave64, but XCL_REQUIRE_GPU=mesh ``` Failing: `f16_programs_on_the_gpu`, `f32_programs_on_the_gpu`, `integer_programs_on_the_gpu`, `f64_programs_on_the_gpu` (all in `gpu::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 onto `266b845`; the PR does not touch `lower_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_record` failed here the same way on main `7f7e768` with Developer Mode off (`0x887A002D`). **AI use:** Claude Code (Claude Opus 5.5) ran the tests and wrote this comment. I checked it before posting.
Author
Owner

@⁠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 wave64 reason as the other GPU tests, so mesh-only validation can skip the native-wave64 cases. I'll verify both XCL_REQUIRE_GPU=mesh and XCL_REQUIRE_GPU=wave64 on an RTX 3090.

This is the lower_dxil.rs case. The heap-window and Developer Mode reports have their own call sites.

**@⁠gabrielsteglich** on GitHub · 2026-11-24 22:48 UTC · [original](https://github.com/xcl-dev/xcl/issues/1651#issuecomment-7146660966) I'll take the per-lane DXIL wave64 skip reported in [this comment](https://git.gtahub.st/github/xcl-dev--xcl/issues/1651). The test will pass the same `no wave64` reason as the other GPU tests, so mesh-only validation can skip the native-wave64 cases. I'll verify both `XCL_REQUIRE_GPU=mesh` and `XCL_REQUIRE_GPU=wave64` on an RTX 3090. This is the `lower_dxil.rs` case. The heap-window and Developer Mode reports have their own call sites.
Author
Owner

@⁠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

  • AMD Radeon RX 6600 (RDNA2, Navi 23, native wave64 + mesh shaders), driver 32.0.21045.29003, Ryzen 5 5600XT, Windows 11 Home 26300, Rust 1.100.0 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 current main), main at 656c0e8:
XCL_REQUIRE_GPU=mesh prints SKIPPED also XCL_HEAP_WINDOWS=1 no XCL_REQUIRE_GPU
main 656c0e8 fails - passes not run
#1690 cfb4730 passes yes passes passes
#1666 bf6459d passes no passes passes

Same outcome as the NVIDIA table above.

Developer Mode skip. shaders::tests::pso_measurement_compiles_an_exact_synthetic_record fails the same way on this card. With Developer Mode off, measure_pso_result returns Unavailable("cannot disable the driver cache (Windows Developer Mode is required): ... (0x887A002D)"), the test passes that text to runner::skip_test, and XCL_REQUIRE_GPU=mesh turns it into a panic at runner.rs:620. Without the variable it prints SKIPPED and passes. I did not find an open PR that changes this skip: of the 40 open PRs that touch crates/xcl/src/shaders.rs, none changes the test or its skip_test call. I plan to open a PR for this case only, in the style of #1690 (print the SKIPPED line, do not call skip_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_gpu and f32_programs_on_the_gpu panic on the per-lane form: refused (unsupported V_MUL_F16 ...) and (unsupported V_CVT_F16_F32 ...) skips (lower_dxil.rs:673). That is a different line from the no wave64 skip that #1903 changes. I have not checked whether anyone has this one.

Not tested

  • The PR heads merged with current main; the whole suite on each PR; release builds; XCL_REQUIRE_GPU=wave64.
  • Developer Mode on (it is off on this machine).

AI use

  • Claude Code, Claude Sonnet 5.5: ran the tests above and wrote this comment.
**@⁠evnw** on GitHub · 2026-11-25 02:01 UTC · [original](https://github.com/xcl-dev/xcl/issues/1651#issuecomment-7150231702) **AMD RDNA2 data point (Radeon RX 6600) for the open heap-window fixes, and the Developer Mode case** **Tested** - AMD Radeon RX 6600 (RDNA2, Navi 23, native wave64 + mesh shaders), driver 32.0.21045.29003, Ryzen 5 5600XT, Windows 11 Home 26300, Rust 1.100.0 `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 current `main`), `main` at `656c0e8`: | | `XCL_REQUIRE_GPU=mesh` | prints `SKIPPED` | also `XCL_HEAP_WINDOWS=1` | no `XCL_REQUIRE_GPU` | |---|---|---|---|---| | `main` `656c0e8` | fails | - | passes | not run | | #1690 `cfb4730` | passes | yes | passes | passes | | #1666 `bf6459d` | passes | no | passes | passes | Same outcome as the NVIDIA table above. **Developer Mode skip.** `shaders::tests::pso_measurement_compiles_an_exact_synthetic_record` fails the same way on this card. With Developer Mode off, `measure_pso_result` returns `Unavailable("cannot disable the driver cache (Windows Developer Mode is required): ... (0x887A002D)")`, the test passes that text to `runner::skip_test`, and `XCL_REQUIRE_GPU=mesh` turns it into a panic at `runner.rs:620`. Without the variable it prints `SKIPPED` and passes. I did not find an open PR that changes this skip: of the 40 open PRs that touch `crates/xcl/src/shaders.rs`, none changes the test or its `skip_test` call. I plan to open a PR for this case only, in the style of #1690 (print the `SKIPPED` line, do not call `skip_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_gpu` and `f32_programs_on_the_gpu` panic on the `per-lane form: refused (unsupported V_MUL_F16 ...)` and `(unsupported V_CVT_F16_F32 ...)` skips (`lower_dxil.rs:673`). That is a different line from the `no wave64` skip that #1903 changes. I have not checked whether anyone has this one. **Not tested** - The PR heads merged with current `main`; the whole suite on each PR; release builds; `XCL_REQUIRE_GPU=wave64`. - Developer Mode on (it is off on this machine). **AI use** - Claude Code, Claude Sonnet 5.5: ran the tests above and wrote this comment.
Author
Owner

@⁠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_gpu and f32_programs_on_the_gpu fail because a wave32 per-lane case the recompiler refuses goes through skip_test, and =wave64 turns every reason except "no mesh shaders" into a panic (runner.rs:617-628 on cbc296a).

gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu: f16 arithmetic, wave32, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's)), but XCL_REQUIRE_GPU=wave64
gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 conversions, wave32, per-lane form: refused (unsupported V_CVT_F16_F32 (its #1426 semantics differ from the console's)), but XCL_REQUIRE_GPU=wave64

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_GPU the two tests pass on this card and print 6 SKIPPED lines, wave32 and wave64 alike (f16 arithmetic, f16 packed, f32 conversions, each wave32, per-lane form: refused (...) and wave64, per-lane form: refused (...)). With =wave64 the first refused case panics.

Tested

  • AMD Radeon integrated graphics of a Ryzen 7 7800X3D (RDNA2, wave32 and wave64), driver 32.0.21045.16010, XCL_ADAPTER=radeon; Windows 11 build 26200; Rust 1.100.0; debug
  • cargo test -p xcl --lib -- gpu::recomp --test-threads=4 with XCL_REQUIRE_GPU=wave64: 351 passed, 2 failed (these two), 19 ignored on main cbc296a; the same 2 fail on #2064's head 743a612
  • cargo test -p xcl --lib -- lower_dxil::tests::f --test-threads=1 --nocapture on cbc296a: 3 passed without XCL_REQUIRE_GPU; 1 passed, 2 failed with XCL_REQUIRE_GPU=wave64

Not tested

  • Which of the open fixes (#1666, #1690, and the lower_dxil one claimed above) covers this; NVIDIA (no wave64, so =wave64 is not used there)

AI use: omp. Claude Fable 5.2 ran the tests and wrote this note.

**@⁠AmateurWizrd** on GitHub · 2026-11-25 04:41 UTC · [original](https://github.com/xcl-dev/xcl/issues/1651#issuecomment-7153069868) **A case under `XCL_REQUIRE_GPU=wave64` (the others here are under `=mesh`): on a GPU that has wave64, `f16_programs_on_the_gpu` and `f32_programs_on_the_gpu` fail because a wave32 per-lane case the recompiler refuses goes through `skip_test`, and `=wave64` turns every reason except "no mesh shaders" into a panic (`runner.rs:617-628` on `cbc296a`).** ``` gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu: f16 arithmetic, wave32, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's)), but XCL_REQUIRE_GPU=wave64 gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 conversions, wave32, per-lane form: refused (unsupported V_CVT_F16_F32 (its #1426 semantics differ from the console's)), but XCL_REQUIRE_GPU=wave64 ``` 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_GPU` the two tests pass on this card and print 6 `SKIPPED` lines, wave32 and wave64 alike (`f16 arithmetic`, `f16 packed`, `f32 conversions`, each `wave32, per-lane form: refused (...)` and `wave64, per-lane form: refused (...)`). With `=wave64` the first refused case panics. **Tested** - AMD Radeon integrated graphics of a Ryzen 7 7800X3D (RDNA2, wave32 and wave64), driver 32.0.21045.16010, `XCL_ADAPTER=radeon`; Windows 11 build 26200; Rust 1.100.0; debug - `cargo test -p xcl --lib -- gpu::recomp --test-threads=4` with `XCL_REQUIRE_GPU=wave64`: 351 passed, 2 failed (these two), 19 ignored on `main` `cbc296a`; the same 2 fail on #2064's head `743a612` - `cargo test -p xcl --lib -- lower_dxil::tests::f --test-threads=1 --nocapture` on `cbc296a`: 3 passed without `XCL_REQUIRE_GPU`; 1 passed, 2 failed with `XCL_REQUIRE_GPU=wave64` **Not tested** - Which of the open fixes (#1666, #1690, and the `lower_dxil` one claimed above) covers this; NVIDIA (no wave64, so `=wave64` is not used there) **AI use**: omp. Claude Fable 5.2 ran the tests and wrote this note.
This discussion has been locked. Commenting is limited to contributors.
No description provided.