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

Merged
Foniass merged 1 commit from upstream-pr/51 into main 2026-11-22 22:38:25 +00:00
Foniass commented 2026-11-22 22:31:59 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-11-22T22:31:59Z.


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

<!-- greyfinch-sync:ivall/xcl:issue:6548664371 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/51). Originally posted by [Foniass](https://github.com/Foniass) on 2026-11-22T22:31:59Z. --- 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)
upstream-sync closed this pull request 2026-11-24 06:56:55 +00:00
ivall commented 2026-11-24 07:00:21 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by ivall on 2026-11-22T22:38:40Z.


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.
<!-- greyfinch-sync:ivall/xcl:comment:7086971364 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/51#issuecomment-7086971364). Originally posted by [ivall](https://github.com/ivall) on 2026-11-22T22:38:40Z. --- 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`.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
xcl-dev/xcl!50
No description provided.