Tests: check v_dot2_f32_f16 and v_dot2c_f32_f16 on the GPU #1148

Closed
mynzjerko wants to merge 1 commit from upstream-pr/1157 into main
mynzjerko commented 2026-11-24 12:38:22 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by mynzjerko on 2026-11-24T12:38:22Z.


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.
<!-- greyfinch-sync:ivall/xcl:issue:6581962289 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1157). Originally posted by [mynzjerko](https://github.com/mynzjerko) on 2026-11-24T12:38:22Z. --- 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.
jesuarchive commented 2026-11-24 13:03:42 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by jesuarchive on 2026-11-24T12:42:12Z.


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.
<!-- greyfinch-sync:ivall/xcl:comment:7131803878 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/1157#issuecomment-7131803878). Originally posted by [jesuarchive](https://github.com/jesuarchive) on 2026-11-24T12:42:12Z. --- 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.
DavidM1911 commented 2026-11-24 13:03:44 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-24T12:46:44Z.


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.

<!-- greyfinch-sync:ivall/xcl:comment:7131906622 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/1157#issuecomment-7131906622). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-24T12:46:44Z. --- 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.
JoaoPauluu commented 2026-11-24 14:06:38 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by JoaoPauluu on 2026-11-24T13:45:16Z.


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.
<!-- greyfinch-sync:ivall/xcl:comment:7133286808 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/1157#issuecomment-7133286808). Originally posted by [JoaoPauluu](https://github.com/JoaoPauluu) on 2026-11-24T13:45:16Z. --- 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.
upstream-sync closed this pull request 2026-11-25 00:07:13 +00:00

Pull request closed

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!1148
No description provided.