Tests: label bench_split_wave64 by the form x64_spin really picks #1987

Manually merged
github merged 1 commit from gh-pr/1987/head into gh-pr/1987/base 2026-11-26 05:13:11 +00:00
Owner

@⁠lautaroandres375-code on GitHub · 2026-11-25 00:25 UTC · original
lautaroandres375-code:tests/bench-split-wave64-label → main · +4 −1 · 1 files · 1 commits · merged 2026-11-25 01:16 UTC

bench_split_wave64 labels every 64-thread group "split, barrier", but since #798 the split wave64 exchange uses the bounded arrival counters for one-console-wave groups too, unless XCL_WAVE64_SPIN=0. The benchmark's output therefore named a form it did not measure. This takes the label from the same rule as x64_spin (threads > 64, or XCL_WAVE64_SPIN unset or not "0"). Complements #1262, which updates docs/wave64-on-wave32.md for the same change.

What is in it

  • crates/xcl/src/gpu/recomp/tests.rs: the label of the ignored bench_split_wave64 follows x64_spin. Test-only (an #[ignore] benchmark); no runtime code changes.

Measured with it, 64 threads per group, v_cmp + v_cndmask + v_readfirstlane (1 exchange per iteration), GPU time, median of 9:

form wave32 wave64 split ratio
default (counter-paired) 61.8 ms 239.4 ms 3.87x
XCL_WAVE64_SPIN=0 (barrier) 61.8 ms 105.1 ms 1.70x

On this GPU the bounded-spin default costs ~2.3x against the group barrier for one-console-wave groups (the 256-thread counter-paired case: 3.62x either way; mask-only loops: 1.00–1.10x). The table in docs/wave64-on-wave32.md was taken with the barrier, so it no longer describes the default.

Tested

  • hardware: NVIDIA GeForce RTX 2050 (laptop, 32-lane waves only), driver 621.24, Intel Core i5-12450H; rustc 1.100.0 (0ef1bc386 2026-11-09); debug for the suite, release for the benchmark
  • head commit 2091b24
  • cargo test --workspace --no-fail-fast -- --test-threads=4: 975 passed, 0 failed, 45 ignored. SKIPPED GPU tests (23): 18 "no wave64" (the wave64 variants of lower::tests / lower_dxil::tests, gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware), 3 "wave32, per-lane form: refused" (f16_programs_on_the_gpu ×2, f32_programs_on_the_gpu conversions), heap_window_out_of_memory_falls_back_to_the_switch_form (no heap windows), pso_measurement_compiles_an_exact_synthetic_record (cannot disable the driver cache)
  • cargo test --release -p xcl --lib -- --ignored bench_split_wave64 --nocapture, with XCL_WAVE64_SPIN unset (all four rows labelled "split, counter-paired") and with XCL_WAVE64_SPIN=0 (the 64-thread rows labelled "split, barrier")

Regression run
Not needed: tests only.

Not tested

  • GPUs with 64-lane waves (the label there is "native", unchanged)
  • no smoke run on a title (test-only diff)

AI use

  • Claude (Claude Opus 5.5) found the stale label, wrote the change and this description, and read the logs of the runs above; the runs were made on the hardware named.
**@⁠lautaroandres375-code** on GitHub · 2026-11-25 00:25 UTC · [original](https://github.com/xcl-dev/xcl/pull/1987) `lautaroandres375-code:tests/bench-split-wave64-label` → `main` · +4 −1 · 1 files · 1 commits · merged 2026-11-25 01:16 UTC `bench_split_wave64` labels every 64-thread group "split, barrier", but since #798 the split wave64 exchange uses the bounded arrival counters for one-console-wave groups too, unless `XCL_WAVE64_SPIN=0`. The benchmark's output therefore named a form it did not measure. This takes the label from the same rule as `x64_spin` (`threads > 64`, or `XCL_WAVE64_SPIN` unset or not `"0"`). Complements #1262, which updates `docs/wave64-on-wave32.md` for the same change. **What is in it** - `crates/xcl/src/gpu/recomp/tests.rs`: the label of the ignored `bench_split_wave64` follows `x64_spin`. Test-only (an `#[ignore]` benchmark); no runtime code changes. Measured with it, 64 threads per group, `v_cmp + v_cndmask + v_readfirstlane` (1 exchange per iteration), GPU time, median of 9: | form | wave32 | wave64 split | ratio | |---|---|---|---| | default (counter-paired) | 61.8 ms | 239.4 ms | 3.87x | | `XCL_WAVE64_SPIN=0` (barrier) | 61.8 ms | 105.1 ms | 1.70x | On this GPU the bounded-spin default costs ~2.3x against the group barrier for one-console-wave groups (the 256-thread counter-paired case: 3.62x either way; mask-only loops: 1.00–1.10x). The table in `docs/wave64-on-wave32.md` was taken with the barrier, so it no longer describes the default. **Tested** - hardware: NVIDIA GeForce RTX 2050 (laptop, 32-lane waves only), driver 621.24, Intel Core i5-12450H; rustc 1.100.0 (0ef1bc386 2026-11-09); debug for the suite, release for the benchmark - head commit 2091b24 - `cargo test --workspace --no-fail-fast -- --test-threads=4`: 975 passed, 0 failed, 45 ignored. SKIPPED GPU tests (23): 18 "no wave64" (the wave64 variants of `lower::tests` / `lower_dxil::tests`, `gpu_geometry_wave32_prefix_count_over_a_mask`, `gpu_wave32_program_in_wave64_hardware`), 3 "wave32, per-lane form: refused" (`f16_programs_on_the_gpu` ×2, `f32_programs_on_the_gpu` conversions), `heap_window_out_of_memory_falls_back_to_the_switch_form` (no heap windows), `pso_measurement_compiles_an_exact_synthetic_record` (cannot disable the driver cache) - `cargo test --release -p xcl --lib -- --ignored bench_split_wave64 --nocapture`, with `XCL_WAVE64_SPIN` unset (all four rows labelled "split, counter-paired") and with `XCL_WAVE64_SPIN=0` (the 64-thread rows labelled "split, barrier") **Regression run** Not needed: tests only. **Not tested** - GPUs with 64-lane waves (the label there is "native", unchanged) - no smoke run on a title (test-only diff) **AI use** - Claude (Claude Opus 5.5) found the stale label, wrote the change and this description, and read the logs of the runs above; the runs were made on the hardware named.
Since 066ae5b the split wave64 exchange uses the bounded arrival counters
for groups of one console wave as well, unless XCL_WAVE64_SPIN=0. The
benchmark still labelled every group of 64 threads "split, barrier", so its
output named a form it did not measure. Take the label from the same rule
as x64_spin (threads > 64, or XCL_WAVE64_SPIN unset or not "0").

Measured on an NVIDIA GeForce RTX 2050 (32-lane waves), v_cmp + v_cndmask +
v_readfirstlane, 64 threads per group, median of 9 dispatches:
- default (counters): wave32 61.8 ms, wave64 split 239.5 ms = 3.87x
- XCL_WAVE64_SPIN=0 (group barrier): wave32 61.8 ms, wave64 split 105.0 ms = 1.70x

Assisted-by: Claude (Claude Opus 5.5)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:13:09 +00:00
github manually merged commit 2091b2408f into gh-pr/1987/base 2026-11-26 05:13:11 +00:00
Author
Owner

@⁠futurepro62 on GitHub · 2026-11-25 00:58 UTC · original · edited 2026-11-25 01:09 UTC

Full-suite run, since this PR has no test report yet. Tested exact head 2091b24 (on its base 689f2db).

Tested

  • NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell, 32-lane waves only, mesh shaders), driver 621.40, Ryzen 7 9800X3D, Windows 11 Home 26300, Rust 1.100.0 MSVC, DXC + dxil.dll 1.9.2602.17 (Windows SDK 10.0.26100), debug, D3D12 debug layer installed.
  • cargo build --workspace, then XCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4 --skip heap_window_out_of_memory_falls_back_to_the_switch_form --skip gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::integer_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::f64_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::const_and_null_mask_operands_agree_with_hlsl_on_the_gpu --skip gpu::dxil::fuzz_tests: 965 passed, 0 failed, 43 ignored. SKIPPED (no wave64): a_2d_or_3d_group_agrees_with_the_hlsl_path_on_the_gpu, a_per_lane_2d_or_3d_group_runs_on_the_gpu, coalesced_guarded_runs_agree_with_the_hlsl_path_on_the_gpu, cross_lane_reads_agree_with_the_hlsl_path_on_the_gpu, gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware, the_wave64_lowering_agrees_with_the_hlsl_path_on_the_gpu.
  • No new #[test] functions in the diff.
  • Same head on the AMD Radeon integrated GPU (iGPU) of the Ryzen 7 9800X3D (RDNA2, XCL_ADAPTER=radeon), cargo test --workspace -- --test-threads=4 --skip gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1: 974 passed, 0 failed, 45 ignored. SKIPPED: f16_programs_on_the_gpu (f16 arithmetic, wave32, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's))), f16_programs_on_the_gpu (f16 arithmetic, wave64, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's))), f16_programs_on_the_gpu (f16 packed, wave32, per-lane form: refused (unsupported V_PK_MUL_F16: VOP3 modifiers (its #1426 semantics differ from the console's))), f16_programs_on_the_gpu (f16 packed, wave64, per-lane form: refused (unsupported V_PK_MUL_F16: VOP3 modifiers (its #1426 semantics differ from the console's))), 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))), f32_programs_on_the_gpu (f32 conversions, wave64, per-lane form: refused (unsupported V_CVT_F16_F32 (its #1426 semantics differ from the console's))), heap_window_out_of_memory_falls_back_to_the_switch_form (no heap windows).
  • --skip leaves out tests that fail on main 7994cd1 too, not because of this PR. On NVIDIA: heap_window_out_of_memory_falls_back_to_the_switch_form (#1651), the four gpu::recomp::lower_dxil::tests::*_programs_on_the_gpu tests and const_and_null_mask_operands_agree_with_hlsl_on_the_gpu (follow-up on #1651) fail because runner::skip_test turns their skips into failures under XCL_REQUIRE_GPU=mesh, and gpu::dxil::fuzz_tests seeds 70, 545, 1019 and 1507 fail CreateComputePipelineState with E_OUTOFMEMORY on this card (drivers 616.64 and 621.40). On AMD: fuzz_validate_and_gpu_1 fails on seed 540 (res[833] 0x7 vs CPU 0x6). The AMD run does not set XCL_REQUIRE_GPU.

Not tested

  • a release build, a game (test run only).

AI use

  • Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
**@⁠futurepro62** on GitHub · 2026-11-25 00:58 UTC · [original](https://github.com/xcl-dev/xcl/pull/1987#issuecomment-7149081612) · edited 2026-11-25 01:09 UTC Full-suite run, since this PR has no test report yet. Tested exact head `2091b24` (on its base `689f2db`). **Tested** - NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell, 32-lane waves only, mesh shaders), driver 621.40, Ryzen 7 9800X3D, Windows 11 Home 26300, Rust 1.100.0 MSVC, DXC + dxil.dll 1.9.2602.17 (Windows SDK 10.0.26100), debug, D3D12 debug layer installed. - `cargo build --workspace`, then `XCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4 --skip heap_window_out_of_memory_falls_back_to_the_switch_form --skip gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::integer_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::f64_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::const_and_null_mask_operands_agree_with_hlsl_on_the_gpu --skip gpu::dxil::fuzz_tests`: **965 passed, 0 failed, 43 ignored**. SKIPPED (no wave64): `a_2d_or_3d_group_agrees_with_the_hlsl_path_on_the_gpu`, `a_per_lane_2d_or_3d_group_runs_on_the_gpu`, `coalesced_guarded_runs_agree_with_the_hlsl_path_on_the_gpu`, `cross_lane_reads_agree_with_the_hlsl_path_on_the_gpu`, `gpu_geometry_wave32_prefix_count_over_a_mask`, `gpu_wave32_program_in_wave64_hardware`, `the_wave64_lowering_agrees_with_the_hlsl_path_on_the_gpu`. - No new `#[test]` functions in the diff. - Same head on the AMD Radeon integrated GPU (iGPU) of the Ryzen 7 9800X3D (RDNA2, `XCL_ADAPTER=radeon`), `cargo test --workspace -- --test-threads=4 --skip gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1`: **974 passed, 0 failed, 45 ignored**. SKIPPED: `f16_programs_on_the_gpu` (f16 arithmetic, wave32, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's))), `f16_programs_on_the_gpu` (f16 arithmetic, wave64, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's))), `f16_programs_on_the_gpu` (f16 packed, wave32, per-lane form: refused (unsupported V_PK_MUL_F16: VOP3 modifiers (its #1426 semantics differ from the console's))), `f16_programs_on_the_gpu` (f16 packed, wave64, per-lane form: refused (unsupported V_PK_MUL_F16: VOP3 modifiers (its #1426 semantics differ from the console's))), `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))), `f32_programs_on_the_gpu` (f32 conversions, wave64, per-lane form: refused (unsupported V_CVT_F16_F32 (its #1426 semantics differ from the console's))), `heap_window_out_of_memory_falls_back_to_the_switch_form` (no heap windows). - `--skip` leaves out tests that fail on main `7994cd1` too, not because of this PR. On NVIDIA: `heap_window_out_of_memory_falls_back_to_the_switch_form` (#1651), the four `gpu::recomp::lower_dxil::tests::*_programs_on_the_gpu` tests and `const_and_null_mask_operands_agree_with_hlsl_on_the_gpu` ([follow-up on #1651](https://git.gtahub.st/github/xcl-dev--xcl/issues/1651)) fail because `runner::skip_test` turns their skips into failures under `XCL_REQUIRE_GPU=mesh`, and `gpu::dxil::fuzz_tests` seeds 70, 545, 1019 and 1507 fail `CreateComputePipelineState` with `E_OUTOFMEMORY` on this card (drivers 616.64 and 621.40). On AMD: `fuzz_validate_and_gpu_1` fails on seed 540 (`res[833]` 0x7 vs CPU 0x6). The AMD run does not set `XCL_REQUIRE_GPU`. **Not tested** - a release build, a game (test run only). **AI use** - Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
Author
Owner

@⁠raylitebull on GitHub · 2026-11-25 01:12 UTC · original

Diff audit passed (bench_split_wave64 label matches x64_spin in tests.rs) and NVIDIA verification is green on 2091b24; CI is now queued. Only an independent AMD check (or wave64 sanity confirmation) remains before merge.

**@⁠raylitebull** on GitHub · 2026-11-25 01:12 UTC · [original](https://github.com/xcl-dev/xcl/pull/1987#issuecomment-7149308761) Diff audit passed (`bench_split_wave64` label matches `x64_spin` in `tests.rs`) and NVIDIA verification is green on `2091b24`; CI is now queued. Only an independent **AMD** check (or wave64 sanity confirmation) remains before merge.
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-25 03:31 UTC · original

Verification on RTX 3060 Ti (Windows 11), branch merged with current main:

  • cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)

Thanks!

**@⁠DavidM1911** on GitHub · 2026-11-25 03:31 UTC · [original](https://github.com/xcl-dev/xcl/pull/1987#issuecomment-7151996104) Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.) Thanks!
This discussion has been locked. Commenting is limited to contributors.
No description provided.