Tests: check v_dot2_f32_f16 and v_dot2c_f32_f16 on the GPU #1157

Closed
github-bot wants to merge 1 commit from gh-pr/1157/head into gh-pr/1157/base
Owner

@⁠mynzjerko on GitHub · 2026-11-24 12:38 UTC · original
tests/dot2-f32-f16-gpu → main · +118 −0 · 1 files · 1 commits · closed without merging

Add GPU test coverage for v_dot2_f32_f16 (ENC_VOP3P) and v_dot2c_f32_f16 (ENC_VOP2) against a pure-Rust reference in both wave64 and wave32.

What is in it

  • crates/xcl/src/gpu/recomp/tests.rs: add gpu_dot2_f32_f16_and_dot2c covering OP_SEL / OP_SEL_HI half selection and broadcast, NEG / NEG_HI, CLAMP, SGPR SRC0 / SRC2, single and chained v_dot2c_f32_f16 accumulation, and partial EXEC masking.

Tested

  • AMD Radeon RX 9070 (RDNA4, native wave64, driver 32.0.32029.2010), AMD Ryzen 5 7500F, Windows 11 Pro 10.0.26300, rustc 1.100.0 (stable-x86_64-pc-windows-msvc), DXC 1.9.2602.17, debug build
  • cargo test -p xcl --lib -- gpu_dot2_f32_f16_and_dot2c --nocapture --test-threads=1: 1 passed, 0 failed, 0 ignored (0 SKIPPED)
  • cargo test --workspace -- --test-threads=4: 742 passed, 0 failed, 41 ignored (xcl --lib: 699 passed, 0 failed, 21 ignored; SKIPPED GPU tests: 0)

Not tested

  • NVIDIA / Intel GPUs, Linux / Wine, release build, retail titles (scripts/smoke.ps1; tests-only change)

AI use

  • Google Antigravity (Gemini 4 Neon) wrote the test, ran the builds and test suite locally, and drafted this description.
**@⁠mynzjerko** on GitHub · 2026-11-24 12:38 UTC · [original](https://github.com/xcl-dev/xcl/pull/1157) `tests/dot2-f32-f16-gpu` → `main` · +118 −0 · 1 files · 1 commits · closed without merging Add GPU test coverage for `v_dot2_f32_f16` (`ENC_VOP3P`) and `v_dot2c_f32_f16` (`ENC_VOP2`) against a pure-Rust reference in both `wave64` and `wave32`. **What is in it** - `crates/xcl/src/gpu/recomp/tests.rs`: add `gpu_dot2_f32_f16_and_dot2c` covering `OP_SEL` / `OP_SEL_HI` half selection and broadcast, `NEG` / `NEG_HI`, `CLAMP`, SGPR `SRC0` / `SRC2`, single and chained `v_dot2c_f32_f16` accumulation, and partial `EXEC` masking. **Tested** - AMD Radeon RX 9070 (RDNA4, native wave64, driver `32.0.32029.2010`), AMD Ryzen 5 7500F, Windows 11 Pro 10.0.26300, `rustc 1.100.0` (`stable-x86_64-pc-windows-msvc`), DXC `1.9.2602.17`, debug build - `cargo test -p xcl --lib -- gpu_dot2_f32_f16_and_dot2c --nocapture --test-threads=1`: 1 passed, 0 failed, 0 ignored (`0 SKIPPED`) - `cargo test --workspace -- --test-threads=4`: 742 passed, 0 failed, 41 ignored (`xcl --lib`: 699 passed, 0 failed, 21 ignored; `SKIPPED` GPU tests: 0) **Not tested** - NVIDIA / Intel GPUs, Linux / Wine, release build, retail titles (`scripts/smoke.ps1`; tests-only change) **AI use** - Google Antigravity (Gemini 4 Neon) wrote the test, ran the builds and test suite locally, and drafted this description.
Add GPU coverage for `v_dot2_f32_f16` (ENC_VOP3P) and `v_dot2c_f32_f16`
(ENC_VOP2) against a pure-Rust reference in both wave64 and wave32,
exercising `OP_SEL` / `OP_SEL_HI` half selection and broadcast, `NEG` /
`NEG_HI`, `CLAMP`, SGPR `SRC0` / `SRC2`, single and chained accumulation,
and partial `EXEC` masking.

Assisted-by: Google Antigravity (Gemini 4 Neon)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:45:28 +00:00
github-bot closed this pull request 2026-11-26 04:45:28 +00:00
Author
Owner

@⁠jesuarchive on GitHub · 2026-11-24 12:42 UTC · original

NVIDIA run, since Not tested lists NVIDIA. Head dcc0787, merged locally onto main 47efa2e (clean merge, nothing pushed).

Tested

  • NVIDIA GeForce RTX 3060 12 GB (Ampere, 32-lane waves only), driver 32.0.16.1088; AMD Ryzen 7 5800XT; Windows 11 Pro build 26300; rustc 1.95.0 stable-x86_64-pc-windows-msvc; DXC 1.9.2602.17 from the Windows SDK; debug.
  • cargo test -p xcl --lib -- gpu_dot2_f32_f16_and_dot2c --nocapture --test-threads=1: 1 passed, 0 failed, 0 ignored, not skipped. On this adapter gpu_waves() gives only wave32, so the test ran its wave32 pass on the NVIDIA driver (no wave64 pass here).
  • cargo test --workspace -- --test-threads=4: 742 passed, 0 failed, 41 ignored. main 47efa2e on the same machine: 741 / 0 / 41; the extra one is this test.
  • SKIPPED on this adapter, the same two on main: gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware (no wave64).

Not tested

  • The wave64 pass (no wave64 on this GPU); Intel GPUs; release build.

AI use

  • Claude Code with Claude Opus 5.5: merged the branch, ran the commands above on this machine and wrote this report.
**@⁠jesuarchive** on GitHub · 2026-11-24 12:42 UTC · [original](https://github.com/xcl-dev/xcl/pull/1157#issuecomment-7131803878) NVIDIA run, since **Not tested** lists NVIDIA. Head `dcc0787`, merged locally onto `main` `47efa2e` (clean merge, nothing pushed). **Tested** - NVIDIA GeForce RTX 3060 12 GB (Ampere, 32-lane waves only), driver 32.0.16.1088; AMD Ryzen 7 5800XT; Windows 11 Pro build 26300; rustc 1.95.0 `stable-x86_64-pc-windows-msvc`; DXC 1.9.2602.17 from the Windows SDK; debug. - `cargo test -p xcl --lib -- gpu_dot2_f32_f16_and_dot2c --nocapture --test-threads=1`: 1 passed, 0 failed, 0 ignored, not skipped. On this adapter `gpu_waves()` gives only wave32, so the test ran its wave32 pass on the NVIDIA driver (no wave64 pass here). - `cargo test --workspace -- --test-threads=4`: 742 passed, 0 failed, 41 ignored. `main` `47efa2e` on the same machine: 741 / 0 / 41; the extra one is this test. - SKIPPED on this adapter, the same two on `main`: `gpu_geometry_wave32_prefix_count_over_a_mask`, `gpu_wave32_program_in_wave64_hardware` (no wave64). **Not tested** - The wave64 pass (no wave64 on this GPU); Intel GPUs; release build. **AI use** - Claude Code with Claude Opus 5.5: merged the branch, ran the commands above on this machine and wrote this report.
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-24 12:46 UTC · original

Independent verification on current main 384f7f7 (branch already contains it — clean).

Machine: Windows 11, Ryzen 9 7900X + RTX 3060 Ti; Rust stable MSVC, debug; DXC 1.8.2502.11.

  • cargo test -p xcl --lib dot2_f32: 1 passed, 0 failed — gpu_dot2_f32_f16_and_dot2c covers both ops on real hardware.

AI use: test runs by Devin (Cognition, SWE-2); no code changes.

**@⁠DavidM1911** on GitHub · 2026-11-24 12:46 UTC · [original](https://github.com/xcl-dev/xcl/pull/1157#issuecomment-7131906622) Independent verification on current `main` `384f7f7` (branch already contains it — clean). **Machine:** Windows 11, Ryzen 9 7900X + RTX 3060 Ti; Rust stable MSVC, debug; DXC 1.8.2502.11. - `cargo test -p xcl --lib dot2_f32`: **1 passed, 0 failed** — `gpu_dot2_f32_f16_and_dot2c` covers both ops on real hardware. AI use: test runs by Devin (Cognition, SWE-2); no code changes.
Author
Owner

@⁠JoaoPauluu on GitHub · 2026-11-24 13:45 UTC · original

A run on Linux with vkd3d-proton, where the shaders go through dxil-spirv to Vulkan instead of a Windows driver's DXIL compiler.

Tested

  • RTX 3060 12 GB (NVIDIA 620.70.06, 32-lane waves), i5-10400F, 16 GB, CachyOS (kernel 7.3.3), Proton Experimental 11.0-20261112 with the patched vkd3d-proton 3.1 from #257 (DXIL → SPIR-V through dxil-spirv), DXC 1.9.2609.5. Release, cross-built for x86_64-pc-windows-gnu. dcc0787 as it is (based on 47efa2e), no uncommitted changes. The lib test binary runs under Wine.
  • gpu::recomp::tests::gpu_dot2_f32_f16_and_dot2c (--exact, one process): ok, no SKIPPED. DXC compiled it and it ran on the GPU in about 0.8 s.

Not tested

  • the rest of the suite on this head; native Windows; AMD / native wave64.

AI use

  • Claude Code (Claude Opus 5.5) built the head, ran the tests and wrote this report. The account owner asked for test reports to be posted and has not reviewed this one.
**@⁠JoaoPauluu** on GitHub · 2026-11-24 13:45 UTC · [original](https://github.com/xcl-dev/xcl/pull/1157#issuecomment-7133286808) A run on Linux with vkd3d-proton, where the shaders go through dxil-spirv to Vulkan instead of a Windows driver's DXIL compiler. **Tested** - RTX 3060 12 GB (NVIDIA 620.70.06, 32-lane waves), i5-10400F, 16 GB, CachyOS (kernel 7.3.3), Proton Experimental 11.0-20261112 with the patched vkd3d-proton 3.1 from #257 (DXIL → SPIR-V through dxil-spirv), DXC 1.9.2609.5. Release, cross-built for `x86_64-pc-windows-gnu`. `dcc0787` as it is (based on `47efa2e`), no uncommitted changes. The lib test binary runs under Wine. - `gpu::recomp::tests::gpu_dot2_f32_f16_and_dot2c` (`--exact`, one process): **ok**, no SKIPPED. DXC compiled it and it ran on the GPU in about 0.8 s. **Not tested** - the rest of the suite on this head; native Windows; AMD / native wave64. **AI use** - Claude Code (Claude Opus 5.5) built the head, ran the tests and wrote this report. The account owner asked for test reports to be posted and has not reviewed this one.

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.