GPU tests that cannot run on the adapter say so: SKIPPED lines, a count in scripts/test.ps1, XCL_REQUIRE_GPU (#42) #51

Manually merged
github merged 1 commit from gh-pr/51/head into gh-pr/51/base 2026-11-26 04:06:35 +00:00
Owner

@⁠Foniass on GitHub · 2026-11-22 22:31 UTC · original
Foniass:t3/make-gpu-test-skips-visible → main · +56 −5 · 8 files · 1 commits · merged 2026-11-22 22:38 UTC

Implements option 3 from #42: GPU tests that cannot run on the adapter still pass, but now say so.

  • runner::skip_test(reason) writes SKIPPED <test>: <reason> straight to stderr (so it shows without --nocapture); reason is no GPU, no DXC, no wave64 or no mesh shaders. Called from gpu_ready / gpu_ready_wave32 / mesh_ready, the wave64-only part of gpu_geometry_wave32_prefix_count_over_a_mask, the DXC gates of two more tests, the device gate of the texture test, and the GPU gates in gpu_pso_e2e and console_shaders.
  • XCL_REQUIRE_GPU=wave64 (or mesh, or wave64,mesh) turns a skip that leaves that coverage out into a failure; no GPU / no DXC fail under either.
  • scripts/test.ps1 prints the test output as before and a count at the end. README's Tests section mentions both.

Run on an RTX 5070 Ti (XCL_ADAPTER=nvidia, wave32), no XCL_SAMPLE_* set. The AMD side wasn't run on this machine.

Before (main):

test result: ok. 338 passed; 0 failed; 14 ignored; 0 measured; 0 filtered out; finished in 10.30s
...
(no other output: 367 passed in total, nothing says 40 GPU tests did not run)

After:

SKIPPED gpu::recomp::tests::gpu_atomic_fcmpswap_x2: no wave64
SKIPPED gpu::recomp::tests::far_jumps_are_direct_branches: no wave64
... (41 lines)
test result: ok. 338 passed; 0 failed; 14 ignored; 0 measured; 0 filtered out; finished in 8.02s
...
GPU tests skipped on this adapter: 41 (no wave64)

41 = the 40 gpu_ready() tests plus the native wave64 run inside gpu_geometry_wave32_prefix_count_over_a_mask (its wave32 part runs). Totals are unchanged (367 passed).

With XCL_REQUIRE_GPU=wave64:

thread 'gpu::recomp::tests::gpu_scalar_relative_moves' panicked at crates\xcl\src\gpu\recomp\runner.rs:377:9:
gpu::recomp::tests::gpu_scalar_relative_moves: no wave64, but XCL_REQUIRE_GPU=wave64
test result: FAILED. 0 passed; 1 failed; ...

XCL_REQUIRE_GPU=mesh on the same test: still passes with the SKIPPED line.

🤖 Generated with Claude Code

**@⁠Foniass** on GitHub · 2026-11-22 22:31 UTC · [original](https://github.com/xcl-dev/xcl/pull/51) `Foniass:t3/make-gpu-test-skips-visible` → `main` · +56 −5 · 8 files · 1 commits · merged 2026-11-22 22:38 UTC Implements option 3 from #42: GPU tests that cannot run on the adapter still pass, but now say so. - `runner::skip_test(reason)` writes `SKIPPED <test>: <reason>` straight to stderr (so it shows without `--nocapture`); reason is `no GPU`, `no DXC`, `no wave64` or `no mesh shaders`. Called from `gpu_ready` / `gpu_ready_wave32` / `mesh_ready`, the wave64-only part of `gpu_geometry_wave32_prefix_count_over_a_mask`, the DXC gates of two more tests, the device gate of the texture test, and the GPU gates in `gpu_pso_e2e` and `console_shaders`. - `XCL_REQUIRE_GPU=wave64` (or `mesh`, or `wave64,mesh`) turns a skip that leaves that coverage out into a failure; no GPU / no DXC fail under either. - `scripts/test.ps1` prints the test output as before and a count at the end. README's Tests section mentions both. Run on an RTX 5070 Ti (`XCL_ADAPTER=nvidia`, wave32), no `XCL_SAMPLE_*` set. The AMD side wasn't run on this machine. Before (main): ``` test result: ok. 338 passed; 0 failed; 14 ignored; 0 measured; 0 filtered out; finished in 10.30s ... (no other output: 367 passed in total, nothing says 40 GPU tests did not run) ``` After: ``` SKIPPED gpu::recomp::tests::gpu_atomic_fcmpswap_x2: no wave64 SKIPPED gpu::recomp::tests::far_jumps_are_direct_branches: no wave64 ... (41 lines) test result: ok. 338 passed; 0 failed; 14 ignored; 0 measured; 0 filtered out; finished in 8.02s ... GPU tests skipped on this adapter: 41 (no wave64) ``` 41 = the 40 `gpu_ready()` tests plus the native wave64 run inside `gpu_geometry_wave32_prefix_count_over_a_mask` (its wave32 part runs). Totals are unchanged (367 passed). With `XCL_REQUIRE_GPU=wave64`: ``` thread 'gpu::recomp::tests::gpu_scalar_relative_moves' panicked at crates\xcl\src\gpu\recomp\runner.rs:377:9: gpu::recomp::tests::gpu_scalar_relative_moves: no wave64, but XCL_REQUIRE_GPU=wave64 test result: FAILED. 0 passed; 1 failed; ... ``` `XCL_REQUIRE_GPU=mesh` on the same test: still passes with the `SKIPPED` line. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:06:33 +00:00
github manually merged commit ff9430efbd into gh-pr/51/base 2026-11-26 04:06:35 +00:00
Author
Owner

@⁠ivall on GitHub · 2026-11-22 22:38 UTC · original

Thanks, merged! This is option 3 from #42, as agreed there. Tested with #50 on top of current main, with the MSVC toolchain on Windows and an RX 9070 (wave 32–64, mesh shaders):

  • All tests pass: 342 lib tests and the e2e test title, with no SKIPPED line.
  • XCL_REQUIRE_GPU=wave64,mesh passes too, gpu_pso_e2e included with a retail shaders.rpf (6 / 6), so on this adapter the whole GPU coverage really runs.
  • I checked scripts/test.ps1's loop under Windows PowerShell 5.1, where 2>&1 turns native stderr lines into error records: the SKIPPED lines are counted and the exit code still comes through $LASTEXITCODE.
**@⁠ivall** on GitHub · 2026-11-22 22:38 UTC · [original](https://github.com/xcl-dev/xcl/pull/51#issuecomment-7086971364) Thanks, merged! This is option 3 from #42, as agreed there. Tested with #50 on top of current `main`, with the MSVC toolchain on Windows and an RX 9070 (wave 32–64, mesh shaders): - All tests pass: 342 lib tests and the e2e test title, with no `SKIPPED` line. - `XCL_REQUIRE_GPU=wave64,mesh` passes too, `gpu_pso_e2e` included with a retail `shaders.rpf` (6 / 6), so on this adapter the whole GPU coverage really runs. - I checked `scripts/test.ps1`'s loop under Windows PowerShell 5.1, where `2>&1` turns native stderr lines into error records: the `SKIPPED` lines are counted and the exit code still comes through `$LASTEXITCODE`.
This discussion has been locked. Commenting is limited to contributors.
No description provided.