Tests: cover V_BFE_U32 width and offset bounds on the GPU #1626

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

@⁠pane33 on GitHub · 2026-11-24 18:23 UTC · original
pane33:tests/gpu-unsigned-bfe-bounds → main · +33 −0 · 1 files · 1 commits · open

Add GPU coverage for the width and offset bounds of V_BFE_U32. The test checks zero width, the maximum effective width, masking of both operands, and extraction across the end of the source word.

What is in it

  • Add gpu_unsigned_bfe_width_and_offset_bounds to crates/xcl/src/gpu/recomp/tests.rs.

Tested

  • Windows 11 Pro build 26300, AMD Ryzen 5 7600X, NVIDIA GeForce RTX 4060, driver 32.0.16.2124, Rust and Cargo 1.100.0 (x86_64-pc-windows-msvc), DXC 1.9.2602.17, debug profile. Tested base 9e3831e1f570d3646e53ab753b19ec07eb8f1485 with the proposed diff applied.
  • cargo test -p xcl --lib gpu_unsigned_bfe_width_and_offset_bounds -- --nocapture — 1 passed, 0 failed, 0 ignored, 0 GPU skips, 748 filtered out. All 32 wave32 lanes matched their expected results, covering all five cases.
  • powershell.exe -NoProfile -ExecutionPolicy Bypass -File .\scripts\test.ps1 with RUST_TEST_NOCAPTURE=1 — 777 passed as reported by Cargo, 0 failed, 41 ignored, 0 filtered out. The pass count includes the three GPU skips below.
  • GPU skips — gpu_geometry_wave32_prefix_count_over_a_mask and gpu_wave32_program_in_wave64_hardware (no wave64), and heap_window_out_of_memory_falls_back_to_the_switch_form (no heap windows).
  • git diff --check — passed.

Regression run

  • The diff is confined to tests.rs. The runtime smoke requirement does not apply.

Not tested

  • AMD adapters, native wave64, and retail-title smoke. Sample-dependent paths had no coverage because the XCL_SAMPLE_* variables were unset.

AI use

  • Codex (GPT-6.2-Sol) checked upstream for overlap, implemented the test, ran the local checks, and drafted this description.
**@⁠pane33** on GitHub · 2026-11-24 18:23 UTC · [original](https://github.com/xcl-dev/xcl/pull/1626) `pane33:tests/gpu-unsigned-bfe-bounds` → `main` · +33 −0 · 1 files · 1 commits · open Add GPU coverage for the width and offset bounds of `V_BFE_U32`. The test checks zero width, the maximum effective width, masking of both operands, and extraction across the end of the source word. **What is in it** - Add `gpu_unsigned_bfe_width_and_offset_bounds` to `crates/xcl/src/gpu/recomp/tests.rs`. **Tested** - Windows 11 Pro build 26300, AMD Ryzen 5 7600X, NVIDIA GeForce RTX 4060, driver `32.0.16.2124`, Rust and Cargo `1.100.0` (`x86_64-pc-windows-msvc`), DXC `1.9.2602.17`, debug profile. Tested base `9e3831e1f570d3646e53ab753b19ec07eb8f1485` with the proposed diff applied. - `cargo test -p xcl --lib gpu_unsigned_bfe_width_and_offset_bounds -- --nocapture` — 1 passed, 0 failed, 0 ignored, 0 GPU skips, 748 filtered out. All 32 wave32 lanes matched their expected results, covering all five cases. - `powershell.exe -NoProfile -ExecutionPolicy Bypass -File .\scripts\test.ps1` with `RUST_TEST_NOCAPTURE=1` — 777 passed as reported by Cargo, 0 failed, 41 ignored, 0 filtered out. The pass count includes the three GPU skips below. - GPU skips — `gpu_geometry_wave32_prefix_count_over_a_mask` and `gpu_wave32_program_in_wave64_hardware` (`no wave64`), and `heap_window_out_of_memory_falls_back_to_the_switch_form` (`no heap windows`). - `git diff --check` — passed. **Regression run** - The diff is confined to `tests.rs`. The runtime smoke requirement does not apply. **Not tested** - AMD adapters, native wave64, and retail-title smoke. Sample-dependent paths had no coverage because the `XCL_SAMPLE_*` variables were unset. **AI use** - Codex (GPT-6.2-Sol) checked upstream for overlap, implemented the test, ran the local checks, and drafted this description.
Exercise zero and maximum effective widths, operand masking, and
extraction across the end of the source word.

Assisted-by: Codex (GPT-6.2-Sol)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:59:52 +00:00
Author
Owner

@⁠Belox17 on GitHub · 2026-11-24 20:02 UTC · original

Test report for d6f33d6f on NVIDIA (RTX 3060 Ti): the new GPU test passes and nothing else changes

Tested

  • NVIDIA GeForce RTX 3060 Ti 8 GB (32-lane waves), driver 32.0.16.2124; Ryzen 5 5600X; Windows 11 build 26300; rustc 1.98.1 MSVC; DXC 1.8.2502.11 (Windows SDK 10.0.26100); debug build. Head d6f33d6f as is (base 9e3831e), clean tree.
  • The new test (gpu_unsigned_bfe_width_and_offset_bounds) with cargo test -p xcl --lib <name>: 1 passed (the GPU part ran on this adapter, no SKIPPED).
  • cargo test --workspace -- --test-threads=4 on the head: 777 passed, 0 failed, 41 ignored; its base 9e3831e on the same machine: 776 passed, 0 failed, 41 ignored. SKIPPED on both: gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware (no wave64), heap_window_out_of_memory_falls_back_to_the_switch_form (no heap windows).
  • Merged into current main c160d86e (clean merge): 859 passed, 0 failed, 42 ignored; main alone: 858 passed, 0 failed, 42 ignored, the same three SKIPPED as above.

Not tested

  • AMD / native wave64 hardware; any retail title (no smoke run).

AI use: Claude Code (Claude Opus 5.5) ran the commands on this machine and wrote this report from those runs.

**@⁠Belox17** on GitHub · 2026-11-24 20:02 UTC · [original](https://github.com/xcl-dev/xcl/pull/1626#issuecomment-7142964972) **Test report for `d6f33d6f` on NVIDIA (RTX 3060 Ti): the new GPU test passes and nothing else changes** **Tested** - NVIDIA GeForce RTX 3060 Ti 8 GB (32-lane waves), driver 32.0.16.2124; Ryzen 5 5600X; Windows 11 build 26300; rustc 1.98.1 MSVC; DXC 1.8.2502.11 (Windows SDK 10.0.26100); debug build. Head `d6f33d6f` as is (base `9e3831e`), clean tree. - The new test (`gpu_unsigned_bfe_width_and_offset_bounds`) with `cargo test -p xcl --lib <name>`: 1 passed (the GPU part ran on this adapter, no `SKIPPED`). - `cargo test --workspace -- --test-threads=4` on the head: **777 passed, 0 failed, 41 ignored**; its base `9e3831e` on the same machine: 776 passed, 0 failed, 41 ignored. SKIPPED on both: `gpu_geometry_wave32_prefix_count_over_a_mask`, `gpu_wave32_program_in_wave64_hardware` (no wave64), `heap_window_out_of_memory_falls_back_to_the_switch_form` (no heap windows). - Merged into current `main` `c160d86e` (clean merge): **859 passed, 0 failed, 42 ignored**; `main` alone: 858 passed, 0 failed, 42 ignored, the same three SKIPPED as above. **Not tested** - AMD / native wave64 hardware; any retail title (no smoke run). **AI use:** Claude Code (Claude Opus 5.5) ran the commands on this machine and wrote this report from those runs.
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-24 20:46 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. (Intermittent single-test flake under parallel scheduling; clean on single-threaded rerun — same flake seen on unmodified main.)

Thanks!

**@⁠DavidM1911** on GitHub · 2026-11-24 20:46 UTC · [original](https://github.com/xcl-dev/xcl/pull/1626#issuecomment-7144041896) Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, ~22 ignored. (Intermittent single-test flake under parallel scheduling; clean on single-threaded rerun — same flake seen on unmodified `main`.) Thanks!
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/1626/head:github-bot/gh-1626'
git switch 'github-bot/gh-1626'

Merge

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