Tests: cover split-wave64 and native-wave64 parity on partial waves and cross-lane ops #1620

Open
github-bot wants to merge 1 commit from github-bot/gh-1620 into main AGit
Owner

@⁠GustavoEllwanger on GitHub · 2026-11-24 18:18 UTC · original
GustavoEllwanger:tests/wave64-split-parity → main · +257 −0 · 1 files · 1 commits · open

What is in it

Adds three GPU tests in crates/xcl/src/gpu/recomp/tests.rs that exercise wave64 edge cases across both 32-lane halves, running both native wave64 (split_wave64 = false) and paired split-wave64 (split_wave64 = true) on wave64-capable GPUs (and split_wave64 = true on 32-lane GPUs) against the exact per-lane reference. Each test builds its DXIL through direct_or, as gpu_split_wave64_waves_diverge does, so with XCL_DIRECT_DXIL=1 the same cases also check the direct DXIL translator's split forms (missing partner, partial xn, spin); without it they check the HLSL path (suggested by IgorAntunes66 below).

  • gpu_split_wave64_partial_waves_and_cross_half_exchanges: partial last console waves in Mode::Compute: [48, 1, 1] (asymmetric 32+16 barrier meet), [80, 1, 1] and [96, 1, 1] (unpaired lower half with xcl_xn = 0 under XCL_X_SPIN), [112, 1, 1] and 3-D [7, 4, 4] (asymmetric 32+16 under XCL_X_SPIN + xcl_x_thread reordering). Covers active-lane ballots (v_cmp + s_bcnt1_i32_b64), v_mbcnt_lo/hi, scalar-branch-guarded cross-half v_readlane_b32, and ds_bpermute_b32 (both cross-half reads and zeroing absent lanes).
  • gpu_wave64_writelane_and_permlane16_across_halves: v_writelane_b32 ignoring EXEC on inactive lanes in both halves (constant and SGPR lane indices) with cross-half v_readlane_b32 readback, plus v_permlane16_b32 and v_permlanex16_b32 across all four 16-lane rows under partial EXEC for FI and BOUND_CTRL combinations.
  • gpu_wave64_dpp16_partial_exec_and_masks_across_halves: DPP16 across all four 16-lane rows under partial EXEC (row_shl:1, row_shr:2, row_ror:3, row_xmask:5, ROW_MASK, BANK_MASK, FI, BOUND_CTRL).

Tested

  • AMD Ryzen 7 7700, Windows 11 build 26200.9974, Rust 1.95.0 MSVC, DXC 1.8.2502.11, debug.
    • NVIDIA GeForce RTX 5060 (driver 32.0.16.1088, split wave64), XCL_ADAPTER=5060
    • AMD Radeon RDNA2 iGPU (driver 32.0.21042.62, native wave64 + split wave64), XCL_ADAPTER=Radeon
  • Rebased onto main 889ef3e (main also appends tests at the end of tests.rs; both blocks kept), head 3a18590. On that head:
    • The three tests, cargo test -p xcl --lib -- gpu_split_wave64_partial_waves_and_cross_half_exchanges gpu_wave64_writelane_and_permlane16_across_halves gpu_wave64_dpp16_partial_exec_and_masks_across_halves --test-threads=1: 3 passed, 0 failed on each GPU, both with XCL_DIRECT_DXIL unset (HLSL path) and with XCL_DIRECT_DXIL=1 (direct path; on the iGPU this includes the native wave64 form).
    • cargo test --workspace --no-fail-fast -- --test-threads=4, with main 889ef3e run the same way for comparison:
      • RTX 5060: 1416 passed, 0 failed, 46 ignored, 29 SKIPPED lines (main: 1413 passed, 0 failed, 46 ignored).
      • RDNA2 iGPU: 1415 passed, 1 failed, 46 ignored, 18 SKIPPED lines (main: 1412 passed, 1 failed, 46 ignored). The failure is gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1 (seed 783), the same as on main, #2115.
      • The SKIPPED lines are wave64-only and per-lane gpu:: tests, plus heap_window_out_of_memory_falls_back_to_the_switch_form, shaders::tests::pso_measurement_compiles_an_exact_synthetic_record, the two the title under the debug layer runs and uploads_start_from_each_subresources_state (no debug layer or Developer Mode here), and on the iGPU passthrough_mesh_stream_accepts_a_triangle_driver_blob (no mesh shaders).
  • Earlier heads were also run by DarkPanda69 (RX 9070 XT, RTX 3060), thiagocalile (RX 6600), DavidM1911 (RTX 3060 Ti), JJAutoCompare (Arc A770) and IgorAntunes66 (RTX 5070, including the direct_or change) in the comments below.

Not tested

  • Retail title run (scripts/smoke.ps1): test-only change touching only crates/xcl/src/gpu/recomp/tests.rs.
  • The direct_or change on Intel and on RDNA3/RDNA4.
  • A release build.

AI use

  • Antigravity (Google Gemini): audited gpu::recomp wave64/split-wave64 test coverage, wrote the three GPU tests and ran the first test suites on both GPUs.
  • Claude Code (Claude Opus 5.5): rebased onto 889ef3e, applied the direct_or change, ran the tests above on both GPUs and updated this description.

🤖 Generated with Claude Code

**@⁠GustavoEllwanger** on GitHub · 2026-11-24 18:18 UTC · [original](https://github.com/xcl-dev/xcl/pull/1620) `GustavoEllwanger:tests/wave64-split-parity` → `main` · +257 −0 · 1 files · 1 commits · open **What is in it** Adds three GPU tests in `crates/xcl/src/gpu/recomp/tests.rs` that exercise wave64 edge cases across both 32-lane halves, running **both** native wave64 (`split_wave64 = false`) and paired split-wave64 (`split_wave64 = true`) on wave64-capable GPUs (and `split_wave64 = true` on 32-lane GPUs) against the exact per-lane reference. Each test builds its DXIL through `direct_or`, as `gpu_split_wave64_waves_diverge` does, so with `XCL_DIRECT_DXIL=1` the same cases also check the direct DXIL translator's split forms (missing partner, partial `xn`, spin); without it they check the HLSL path (suggested by IgorAntunes66 below). - `gpu_split_wave64_partial_waves_and_cross_half_exchanges`: partial last console waves in `Mode::Compute`: `[48, 1, 1]` (asymmetric 32+16 barrier meet), `[80, 1, 1]` and `[96, 1, 1]` (unpaired lower half with `xcl_xn = 0` under `XCL_X_SPIN`), `[112, 1, 1]` and 3-D `[7, 4, 4]` (asymmetric 32+16 under `XCL_X_SPIN` + `xcl_x_thread` reordering). Covers active-lane ballots (`v_cmp` + `s_bcnt1_i32_b64`), `v_mbcnt_lo`/`hi`, scalar-branch-guarded cross-half `v_readlane_b32`, and `ds_bpermute_b32` (both cross-half reads and zeroing absent lanes). - `gpu_wave64_writelane_and_permlane16_across_halves`: `v_writelane_b32` ignoring `EXEC` on inactive lanes in both halves (constant and SGPR lane indices) with cross-half `v_readlane_b32` readback, plus `v_permlane16_b32` and `v_permlanex16_b32` across all four 16-lane rows under partial `EXEC` for `FI` and `BOUND_CTRL` combinations. - `gpu_wave64_dpp16_partial_exec_and_masks_across_halves`: `DPP16` across all four 16-lane rows under partial `EXEC` (`row_shl:1`, `row_shr:2`, `row_ror:3`, `row_xmask:5`, `ROW_MASK`, `BANK_MASK`, `FI`, `BOUND_CTRL`). **Tested** - AMD Ryzen 7 7700, Windows 11 build 26200.9974, Rust 1.95.0 MSVC, DXC 1.8.2502.11, debug. - NVIDIA GeForce RTX 5060 (driver 32.0.16.1088, split wave64), `XCL_ADAPTER=5060` - AMD Radeon RDNA2 iGPU (driver 32.0.21042.62, native wave64 + split wave64), `XCL_ADAPTER=Radeon` - Rebased onto `main` `889ef3e` (`main` also appends tests at the end of `tests.rs`; both blocks kept), head `3a18590`. On that head: - The three tests, `cargo test -p xcl --lib -- gpu_split_wave64_partial_waves_and_cross_half_exchanges gpu_wave64_writelane_and_permlane16_across_halves gpu_wave64_dpp16_partial_exec_and_masks_across_halves --test-threads=1`: **3 passed, 0 failed** on each GPU, both with `XCL_DIRECT_DXIL` unset (HLSL path) and with `XCL_DIRECT_DXIL=1` (direct path; on the iGPU this includes the native wave64 form). - `cargo test --workspace --no-fail-fast -- --test-threads=4`, with `main` `889ef3e` run the same way for comparison: - RTX 5060: **1416 passed, 0 failed, 46 ignored**, 29 `SKIPPED` lines (`main`: 1413 passed, 0 failed, 46 ignored). - RDNA2 iGPU: **1415 passed, 1 failed, 46 ignored**, 18 `SKIPPED` lines (`main`: 1412 passed, 1 failed, 46 ignored). The failure is `gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1` (seed 783), the same as on `main`, #2115. - The `SKIPPED` lines are wave64-only and per-lane `gpu::` tests, plus `heap_window_out_of_memory_falls_back_to_the_switch_form`, `shaders::tests::pso_measurement_compiles_an_exact_synthetic_record`, the two `the title under the debug layer` runs and `uploads_start_from_each_subresources_state` (no debug layer or Developer Mode here), and on the iGPU `passthrough_mesh_stream_accepts_a_triangle_driver_blob` (no mesh shaders). - Earlier heads were also run by DarkPanda69 (RX 9070 XT, RTX 3060), thiagocalile (RX 6600), DavidM1911 (RTX 3060 Ti), JJAutoCompare (Arc A770) and IgorAntunes66 (RTX 5070, including the `direct_or` change) in the comments below. **Not tested** - Retail title run (`scripts/smoke.ps1`): test-only change touching only `crates/xcl/src/gpu/recomp/tests.rs`. - The `direct_or` change on Intel and on RDNA3/RDNA4. - A release build. **AI use** - Antigravity (Google Gemini): audited `gpu::recomp` wave64/split-wave64 test coverage, wrote the three GPU tests and ran the first test suites on both GPUs. - Claude Code (Claude Opus 5.5): rebased onto `889ef3e`, applied the `direct_or` change, ran the tests above on both GPUs and updated this description. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
The three tests build their DXIL through direct_or, so with
XCL_DIRECT_DXIL=1 they also check the direct translator's split forms
(missing partner, partial xn, spin) on partial waves (suggested by
IgorAntunes66).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:59:42 +00:00
Author
Owner

@⁠thiagocalile on GitHub · 2026-11-24 20:27 UTC · original

Tested commit c5e71313e2af587cffd5d38a4b59189b1aef8bf8 on an AMD Radeon RX 6600 (RDNA2, native 64-lane waves): all targeted tests passed.

Tested

  • Hardware: AMD Radeon RX 6600 (8146 MiB VRAM, RDNA2, native wave64 + mesh shaders, driver 32.0.21045.29003; XCL_ADAPTER=radeon), AMD Ryzen 7 5700X3D, 47.9 GB RAM, Windows 11 (10.0.26200.0), Rust 1.100.0 (stable-x86_64-pc-windows-msvc), DXC 1.8.2502.11, debug build.
  • XCL_ADAPTER=radeon cargo test -p xcl --lib gpu::recomp::tests -- --test-threads=4: 123 passed, 0 failed, 17 ignored (50.29s).
  • XCL_ADAPTER=radeon cargo test --workspace --no-fail-fast -- --test-threads=4: 776 passed, 3 failed, 41 ignored (50.98s).
    • The 3 workspace failures are pre-existing on main on this RX 6600 (placed_title_textures_share_vram_and_preserve_pixels: 3D mip subresource mismatch, plus 2 mutex-poison cascades transitions_apply_when_their_list_is_submitted and d32s8_targets_take_their_own_size_of_video_memory; tracked by #1028).
    • SKIPPED (not counted as coverage): heap_window_out_of_memory_falls_back_to_the_switch_form: no heap windows (plus D3D12 debug-layer tests skip because d3d12SDKLayers.dll is not installed).

Not tested

  • Retail title run (scripts/smoke.ps1 — no game executable here), D3D12 debug layer, NVIDIA / Intel GPUs, Linux / Wine.

AI use

  • Antigravity (Gemini 4 Neon) ran the test suites on my RX 6600 and drafted this report; I checked the results before posting.
**@⁠thiagocalile** on GitHub · 2026-11-24 20:27 UTC · [original](https://github.com/xcl-dev/xcl/pull/1620#issuecomment-7143565473) Tested commit `c5e71313e2af587cffd5d38a4b59189b1aef8bf8` on an AMD Radeon RX 6600 (RDNA2, native 64-lane waves): all targeted tests passed. **Tested** - Hardware: AMD Radeon RX 6600 (8146 MiB VRAM, RDNA2, native wave64 + mesh shaders, driver `32.0.21045.29003`; `XCL_ADAPTER=radeon`), AMD Ryzen 7 5700X3D, 47.9 GB RAM, Windows 11 (`10.0.26200.0`), Rust `1.100.0` (`stable-x86_64-pc-windows-msvc`), DXC `1.8.2502.11`, debug build. - `XCL_ADAPTER=radeon cargo test -p xcl --lib gpu::recomp::tests -- --test-threads=4`: **123 passed, 0 failed, 17 ignored** (`50.29s`). - `XCL_ADAPTER=radeon cargo test --workspace --no-fail-fast -- --test-threads=4`: **776 passed, 3 failed, 41 ignored** (`50.98s`). - The 3 workspace failures are pre-existing on `main` on this RX 6600 (`placed_title_textures_share_vram_and_preserve_pixels`: 3D mip subresource mismatch, plus 2 mutex-poison cascades `transitions_apply_when_their_list_is_submitted` and `d32s8_targets_take_their_own_size_of_video_memory`; tracked by #1028). - `SKIPPED` (not counted as coverage): `heap_window_out_of_memory_falls_back_to_the_switch_form: no heap windows` (plus D3D12 debug-layer tests skip because `d3d12SDKLayers.dll` is not installed). **Not tested** - Retail title run (`scripts/smoke.ps1` — no game executable here), D3D12 debug layer, NVIDIA / Intel GPUs, Linux / Wine. **AI use** - Antigravity (Gemini 4 Neon) ran the test suites on my RX 6600 and drafted this report; I checked the results before posting.
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-24 20:37 UTC · original

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

  • cargo test -p xcl --lib: all passed, 0 failed, ~22 ignored.

Thanks!

**@⁠DavidM1911** on GitHub · 2026-11-24 20:37 UTC · [original](https://github.com/xcl-dev/xcl/pull/1620#issuecomment-7143841904) Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, ~22 ignored. Thanks!
Author
Owner

@⁠JJAutoCompare on GitHub · 2026-11-25 05:42 UTC · original

Arc A770 compatibility validation for xcl-dev/xcl PR #1620

Tested

Clean detached checkout of c5e71313e2af587cffd5d38a4b59189b1aef8bf8 on STOR-WINLAB. Intel Arc A770 driver 32.0.101.9175, AMD Ryzen 7 3800X, Windows 11 Enterprise Evaluation 25H2 x64 build 26200.9974, Rust 1.100.0 (0ef1bc386, x86_64-pc-windows-msvc), Cargo 1.100.0 (3acc79c0c), DXC and DXIL 1.9.2609.5 (DXC 01b62ad4).

Outside the Arc mutex, cargo test --locked -p xcl --lib --no-run exited 0 in 28.49 s. Test profile was unoptimized with dev and test debuginfo disabled, two Cargo jobs, incremental disabled, target L:/XclTooling/pr1778-2e2ee55-20261125-020159/target, and private TEMP/TMP L:/XclTooling/pr1620/temp.

Under & 'L:/XclTooling/Invoke-ArcTest.ps1' -Test { ... }, ran the prebuilt xcl-77aca8ccb20e299f.exe once per fixture, as <exe> gpu::recomp::tests::<fixture> --exact --nocapture --test-threads=1. Used XCL_ADAPTER=A770, XCL_DIRECT_DXIL=0, and XCL_DXC_DIR=%LOCALAPPDATA%/XclTooling/dxc-1.9.2609/bin/x64. The wrapper ran in a child PowerShell with process-scoped RemoteSigned.

3 passed, 0 failed, 0 ignored, 0 GPU skips. Each native process and the mutex wrapper exited 0. All three fixtures reached GPU assertions through their stock split-wave64 HLSL/DXC path, using paired 32-lane waves.

  • gpu_split_wave64_partial_waves_and_cross_half_exchanges (0.99 s) checked 3,584 output words in two groups each of [48,1,1], [80,1,1], [96,1,1], [112,1,1] and [7,4,4]. The checks covered active-lane counts, masked prefix counts, conditional cross-half readlane, and cross-half bpermute with absent-lane zeroing.
  • gpu_wave64_writelane_and_permlane16_across_halves (0.28 s) checked three scalar write/readback values for lanes 7, 41 and 53 and 384 vector values over all 64 lanes. The checks covered constant and SGPR lane selection, writes under partial EXEC, and five encoded permlane16/permlanex16 cases with FI and BOUND_CTRL.
  • gpu_wave64_dpp16_partial_exec_and_masks_across_halves (0.20 s) checked 384 vector values over all 64 lanes for the encoded row shifts, rotate and XOR with partial EXEC, ROW_MASK, BANK_MASK, FI and BOUND_CTRL.

PR #1620 was open at the exact SHA before and after the run. The visible PR discussion had AMD and NVIDIA results and no equivalent same-head Arc A770 result at either check.

Not tested

Native wave64, standalone wave32, direct DXIL, other adapters or revisions, release profile, full test suite, and retail smoke. The DPP16 fixture covers its six encoded cases, with no row-half-mirror case.

AI use

T3 Code / Codex (gpt-6.2-sol) ran the verification and wrote this report. Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against pr1620/*.stdout.log and published.

**@⁠JJAutoCompare** on GitHub · 2026-11-25 05:42 UTC · [original](https://github.com/xcl-dev/xcl/pull/1620#issuecomment-7154061635) # Arc A770 compatibility validation for xcl-dev/xcl PR #1620 **Tested** Clean detached checkout of `c5e71313e2af587cffd5d38a4b59189b1aef8bf8` on STOR-WINLAB. Intel Arc A770 driver `32.0.101.9175`, AMD Ryzen 7 3800X, Windows 11 Enterprise Evaluation 25H2 x64 build `26200.9974`, Rust `1.100.0` (`0ef1bc386`, `x86_64-pc-windows-msvc`), Cargo `1.100.0` (`3acc79c0c`), DXC and DXIL `1.9.2609.5` (DXC `01b62ad4`). Outside the Arc mutex, `cargo test --locked -p xcl --lib --no-run` exited 0 in 28.49 s. Test profile was unoptimized with dev and test debuginfo disabled, two Cargo jobs, incremental disabled, target `L:/XclTooling/pr1778-2e2ee55-20261125-020159/target`, and private TEMP/TMP `L:/XclTooling/pr1620/temp`. Under `& 'L:/XclTooling/Invoke-ArcTest.ps1' -Test { ... }`, ran the prebuilt `xcl-77aca8ccb20e299f.exe` once per fixture, as `<exe> gpu::recomp::tests::<fixture> --exact --nocapture --test-threads=1`. Used `XCL_ADAPTER=A770`, `XCL_DIRECT_DXIL=0`, and `XCL_DXC_DIR=%LOCALAPPDATA%/XclTooling/dxc-1.9.2609/bin/x64`. The wrapper ran in a child PowerShell with process-scoped `RemoteSigned`. **3 passed, 0 failed, 0 ignored, 0 GPU skips.** Each native process and the mutex wrapper exited 0. All three fixtures reached GPU assertions through their stock split-wave64 HLSL/DXC path, using paired 32-lane waves. - `gpu_split_wave64_partial_waves_and_cross_half_exchanges` (0.99 s) checked 3,584 output words in two groups each of `[48,1,1]`, `[80,1,1]`, `[96,1,1]`, `[112,1,1]` and `[7,4,4]`. The checks covered active-lane counts, masked prefix counts, conditional cross-half readlane, and cross-half bpermute with absent-lane zeroing. - `gpu_wave64_writelane_and_permlane16_across_halves` (0.28 s) checked three scalar write/readback values for lanes 7, 41 and 53 and 384 vector values over all 64 lanes. The checks covered constant and SGPR lane selection, writes under partial EXEC, and five encoded permlane16/permlanex16 cases with FI and BOUND_CTRL. - `gpu_wave64_dpp16_partial_exec_and_masks_across_halves` (0.20 s) checked 384 vector values over all 64 lanes for the encoded row shifts, rotate and XOR with partial EXEC, ROW_MASK, BANK_MASK, FI and BOUND_CTRL. PR #1620 was open at the exact SHA before and after the run. The visible PR discussion had AMD and NVIDIA results and no equivalent same-head Arc A770 result at either check. **Not tested** Native wave64, standalone wave32, direct DXIL, other adapters or revisions, release profile, full test suite, and retail smoke. The DPP16 fixture covers its six encoded cases, with no row-half-mirror case. **AI use** T3 Code / Codex (`gpt-6.2-sol`) ran the verification and wrote this report. Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against `pr1620/*.stdout.log` and published.
Author
Owner

@⁠IgorAntunes66 on GitHub · 2026-11-25 18:01 UTC · original

Test report from a wave32-only Blackwell card, plus a coverage suggestion and a rebase note.

RTX 5070 12 GB (wave32 only → split), driver 621.24, Windows 11 26H2, rustc 1.100.0, DXC 1.9.2602.17; head 8193588's tests appended onto main 68a284a.

Rebase: on main 68a284a the commit no longer applies cleanly: main also appended tests at the end of crates/xcl/src/gpu/recomp/tests.rs (compute_globallycoherent_only_when_needed, …), so the two additions conflict there. Keeping both blocks is all it takes.

The three new tests pass (--exact, --test-threads=1).

Suggestion: they compile with dxc::compile directly, so with XCL_DIRECT_DXIL=1 they still test only the HLSL path (the A770 report above also lists direct DXIL as not tested). Routing the container through direct_or, as gpu_split_wave64_waves_diverge does, makes them cover the direct translator's split forms too (Partner::Missing, partial xn, spin), which no test exercises with partial waves today. Three hunks of this shape:

-            let t = translate(&p, &Options { mode: Mode::Compute(cs), wave64: true, split_wave64, ..Default::default() }).unwrap();
+            let opt = Options { mode: Mode::Compute(cs), wave64: true, split_wave64, ..Default::default() };
+            let t = translate(&p, &opt).unwrap();
             assert!(t.complete(), "split={split_wave64} {dims:?}: {:?}", t.unsupported_why);
-            let dxil = dxc::compile(&t.hlsl, "main", "cs_6_6", &[]).unwrap_or_else(|e| panic!("{e}\n{}", t.hlsl));
+            let dxil = direct_or(&p, &opt, dxc::compile(&t.hlsl, "main", "cs_6_6", &[]).unwrap_or_else(|e| panic!("{e}\n{}", t.hlsl)));

(the same in gpu_wave64_writelane_and_permlane16_across_halves and gpu_wave64_dpp16_partial_exec_and_masks_across_halves, with Mode::Kernel and code). With that change all three pass on this card both without and with XCL_DIRECT_DXIL=1, so the direct translator matches the reference on 48/80/96/112/7×4×4-thread partial waves, writelane/permlane16 and DPP16 under partial EXEC.

Not tested: AMD with the change (the native-wave64 branch also goes through direct_or there), release build.

AI use: Claude Code (claude-opus-5-5) ran the tests, made the change locally and drafted this comment; I reviewed it.

**@⁠IgorAntunes66** on GitHub · 2026-11-25 18:01 UTC · [original](https://github.com/xcl-dev/xcl/pull/1620#issuecomment-7170326284) Test report from a wave32-only Blackwell card, plus a coverage suggestion and a rebase note. RTX 5070 12 GB (wave32 only → split), driver 621.24, Windows 11 26H2, rustc 1.100.0, DXC 1.9.2602.17; head 8193588's tests appended onto main 68a284a. **Rebase:** on main 68a284a the commit no longer applies cleanly: main also appended tests at the end of `crates/xcl/src/gpu/recomp/tests.rs` (`compute_globallycoherent_only_when_needed`, …), so the two additions conflict there. Keeping both blocks is all it takes. The three new tests pass (`--exact`, `--test-threads=1`). **Suggestion:** they compile with `dxc::compile` directly, so with `XCL_DIRECT_DXIL=1` they still test only the HLSL path (the A770 report above also lists direct DXIL as not tested). Routing the container through `direct_or`, as `gpu_split_wave64_waves_diverge` does, makes them cover the direct translator's split forms too (`Partner::Missing`, partial `xn`, spin), which no test exercises with partial waves today. Three hunks of this shape: ```diff - let t = translate(&p, &Options { mode: Mode::Compute(cs), wave64: true, split_wave64, ..Default::default() }).unwrap(); + let opt = Options { mode: Mode::Compute(cs), wave64: true, split_wave64, ..Default::default() }; + let t = translate(&p, &opt).unwrap(); assert!(t.complete(), "split={split_wave64} {dims:?}: {:?}", t.unsupported_why); - let dxil = dxc::compile(&t.hlsl, "main", "cs_6_6", &[]).unwrap_or_else(|e| panic!("{e}\n{}", t.hlsl)); + let dxil = direct_or(&p, &opt, dxc::compile(&t.hlsl, "main", "cs_6_6", &[]).unwrap_or_else(|e| panic!("{e}\n{}", t.hlsl))); ``` (the same in `gpu_wave64_writelane_and_permlane16_across_halves` and `gpu_wave64_dpp16_partial_exec_and_masks_across_halves`, with `Mode::Kernel` and `code`). With that change all three pass on this card both without and with `XCL_DIRECT_DXIL=1`, so the direct translator matches the reference on 48/80/96/112/7×4×4-thread partial waves, writelane/permlane16 and DPP16 under partial EXEC. Not tested: AMD with the change (the native-wave64 branch also goes through `direct_or` there), release build. AI use: Claude Code (claude-opus-5-5) ran the tests, made the change locally and drafted this comment; I reviewed it.
Author
Owner

@⁠GustavoEllwanger on GitHub · 2026-11-25 20:00 UTC · original

Thanks @⁠IgorAntunes66, both points are in.

I rebased onto main 889ef3e keeping both test blocks, and the three tests now go through direct_or as you suggested. The new head is 3a18590.

On an RTX 5060 (split wave64) and an AMD RDNA2 iGPU (native and split wave64), the three tests pass with XCL_DIRECT_DXIL unset and with XCL_DIRECT_DXIL=1, so the AMD native wave64 form you listed as not tested goes through the direct translator too. The whole suite is main plus these three on both cards; the numbers are in the description.

**@⁠GustavoEllwanger** on GitHub · 2026-11-25 20:00 UTC · [original](https://github.com/xcl-dev/xcl/pull/1620#issuecomment-7173046403) Thanks @⁠IgorAntunes66, both points are in. I rebased onto `main` `889ef3e` keeping both test blocks, and the three tests now go through `direct_or` as you suggested. The new head is `3a18590`. On an RTX 5060 (split wave64) and an AMD RDNA2 iGPU (native and split wave64), the three tests pass with `XCL_DIRECT_DXIL` unset and with `XCL_DIRECT_DXIL=1`, so the AMD native wave64 form you listed as not tested goes through the direct translator too. The whole suite is `main` plus these three on both cards; the numbers are in the description.
Author
Owner

@⁠DarkPanda69 on GitHub · 2026-11-24 18:27 UTC · original · edited 2026-11-25 20:14 UTC

Update for head 3a18590: same result. Applied on main 6d12f58, all three new tests pass on the RX 9070 XT (native wave64) and the RTX 3060. Whole gpu:: filter: RX 9070 XT 701 passed, 2 failed (the AMD fuzz seeds tracked in #2115, same on main); RTX 3060 703 passed, 0 failed.


AMD run with native 64-lane waves, so both sides of the parity tests run on one GPU.

Tested: pass, head c5e7131 applied on its base main 9e3831e, debug, Rust 1.100.0, Windows 11 Pro 26200, Ryzen 7 5800X, DXC 1.9.2602.17.
cargo test -p xcl --lib -- gpu::recomp --test-threads=4:

  • AMD RX 9070 XT (RDNA4), driver 32.0.32029.2010, waves 32..64: 195 passed, 0 failed, 18 ignored, 0 SKIPPED. gpu_split_wave64_partial_waves_and_cross_half_exchanges, gpu_wave64_dpp16_partial_exec_and_masks_across_halves and gpu_wave64_writelane_and_permlane16_across_halves ok.
  • NVIDIA RTX 3060, driver 32.0.16.1088, waves 32 only: 195 passed, 0 failed, 18 ignored, 2 SKIPPED (no wave64). The three new tests ok.

Not tested: the whole workspace suite; Intel.

AI use: Claude Code (Claude Opus 5.5) ran the tests on this machine and wrote this report.

**@⁠DarkPanda69** on GitHub · 2026-11-24 18:27 UTC · [original](https://github.com/xcl-dev/xcl/pull/1620#issuecomment-7140663267) · edited 2026-11-25 20:14 UTC **Update for head `3a18590`:** same result. Applied on `main` `6d12f58`, all three new tests pass on the RX 9070 XT (native wave64) and the RTX 3060. Whole `gpu::` filter: RX 9070 XT 701 passed, 2 failed (the AMD fuzz seeds tracked in #2115, same on `main`); RTX 3060 703 passed, 0 failed. --- AMD run with native 64-lane waves, so both sides of the parity tests run on one GPU. **Tested:** pass, head `c5e7131` applied on its base `main` `9e3831e`, debug, Rust 1.100.0, Windows 11 Pro 26200, Ryzen 7 5800X, DXC 1.9.2602.17. `cargo test -p xcl --lib -- gpu::recomp --test-threads=4`: - AMD RX 9070 XT (RDNA4), driver 32.0.32029.2010, waves 32..64: 195 passed, 0 failed, 18 ignored, 0 SKIPPED. `gpu_split_wave64_partial_waves_and_cross_half_exchanges`, `gpu_wave64_dpp16_partial_exec_and_masks_across_halves` and `gpu_wave64_writelane_and_permlane16_across_halves` ok. - NVIDIA RTX 3060, driver 32.0.16.1088, waves 32 only: 195 passed, 0 failed, 18 ignored, 2 SKIPPED (no wave64). The three new tests ok. **Not tested:** the whole workspace suite; Intel. AI use: Claude Code (Claude Opus 5.5) ran the tests on this machine and wrote this report.
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-26 05:58 UTC · original

Re-verification on RTX 3060 Ti (Windows 11), new head merged with current main:

  • cargo test -p xcl --lib: all passed, 0 failed, 27 ignored. The earlier merge conflict is resolved.

Thanks!

— Devin

**@⁠DavidM1911** on GitHub · 2026-11-26 05:58 UTC · [original](https://github.com/xcl-dev/xcl/pull/1620#issuecomment-7183968109) Re-verification on RTX 3060 Ti (Windows 11), new head merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, 27 ignored. The earlier merge conflict is resolved. Thanks! — Devin
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/1620/head:github-bot/gh-1620'
git switch 'github-bot/gh-1620'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-1620'
git switch 'github-bot/gh-1620'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-1620'
git switch 'github-bot/gh-1620'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-1620'
git switch 'main'
git merge --squash 'github-bot/gh-1620'
git switch 'main'
git merge --ff-only 'github-bot/gh-1620'
git switch 'main'
git merge 'github-bot/gh-1620'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.