Tests: f32 VOP1 math and bit scans against the CPU on random inputs #2610

Merged
joeypercia merged 1 commit from upstream-pr/2620 into main 2026-12-02 17:39:17 +00:00
joeypercia commented 2026-11-26 02:43:56 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by joeypercia on 2026-11-26T02:43:56Z.


A GPU test of 22 f32 VOP1 ops and the 32-bit bit scans against the CPU on random inputs. It's the test that found #580 (v_frexp_mant_f32 dropped the sign). #587 fixed that, so the test goes up now, as said on #580.

What is in it

  • crates/xcl/src/gpu/recomp/tests.rs: gpu_f32_math_and_bit_scans_random, test only.
    • Ops: floor, ceil, trunc, rndne, fract, the three i32 conversions, frexp mant / exp, rcp, sqrt, rsq, exp, log, sin, cos, ffbh / ffbl / ffbh_i32, bfrev, bcnt.
    • Inputs: random, weighted to the edges: specials, any bit pattern, values next to integers up to 2^33 (ties included), 1/8 steps, and ±300 revolutions for sin / cos.
    • Shape: one wave per dispatch, 50 dispatches by default (XCL_FUZZ_ITERS=n), wave64 and wave32.
    • Checks: bit for bit where the ISA is exact. rcp / sqrt / rsq get 4 ulps. exp / log / sin / cos get a tolerance that only catches a wrong formula, not a driver's precision. Lanes whose input or expected result is an f32 denormal are counted and not checked (the shader's denormal mode).
    • Routes: both, the HLSL route and direct DXIL (XCL_DIRECT_DXIL=1) through direct_or.

Tested

  • NVIDIA GeForce RTX 4070 Ti (driver 621.40) and the AMD Radeon iGPU of a Ryzen 7 7800X3D (RDNA2) with XCL_ADAPTER=Radeon; Windows 11 Pro 26200; Rust 1.100.0 MSVC; DXC 1.8.2502.11; debug.
  • cargo build --workspace, then cargo test --workspace --no-fail-fast -- --test-threads=4 on 6acae83a:
    • RTX 4070 Ti: 1436 passed, 0 failed, 47 ignored. (The first run of the lib tests ended in STATUS_ACCESS_VIOLATION partway through, with 4 threads and no test named; run again, all of them passed. I could not tell which test it was.)
    • RDNA2: 1435 passed, 1 failed, 47 ignored. The failure is gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1, which fails the same way on main b49be183 on this iGPU (#2115).
  • gpu_f32_math_and_bit_scans_random alone on both adapters (exp2 / log2 errors that are NaN fail the test since 6acae83a, as luckyteagirl suggested), with XCL_DIRECT_DXIL=0 and =1: passed in all four.
  • Negative control: on main just before #587 (bd2ac507^1) the test fails on the RTX 4070 Ti with XCL_DIRECT_DXIL=0 and =1.

Regression run

  • None: the change is a test only (crates/xcl/src/gpu/recomp/tests.rs).

Not tested

  • RDNA3 / RDNA4 (native wave64 ran only on the RDNA2 iGPU here), Intel, Linux / Wine.

AI use

  • Claude Code with Claude Opus 5.5: wrote the test (it found #580), ran it and the suite on the hardware above, and wrote this description.
<!-- greyfinch-sync:ivall/xcl:issue:5503040153 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2620). Originally posted by [joeypercia](https://github.com/joeypercia) on 2026-11-26T02:43:56Z. --- A GPU test of 22 f32 VOP1 ops and the 32-bit bit scans against the CPU on random inputs. It's the test that found #580 (`v_frexp_mant_f32` dropped the sign). #587 fixed that, so the test goes up now, as said on #580. **What is in it** - `crates/xcl/src/gpu/recomp/tests.rs`: `gpu_f32_math_and_bit_scans_random`, test only. - **Ops:** floor, ceil, trunc, rndne, fract, the three i32 conversions, frexp mant / exp, rcp, sqrt, rsq, exp, log, sin, cos, ffbh / ffbl / ffbh_i32, bfrev, bcnt. - **Inputs:** random, weighted to the edges: specials, any bit pattern, values next to integers up to 2^33 (ties included), 1/8 steps, and ±300 revolutions for sin / cos. - **Shape:** one wave per dispatch, 50 dispatches by default (`XCL_FUZZ_ITERS=n`), wave64 and wave32. - **Checks:** bit for bit where the ISA is exact. rcp / sqrt / rsq get 4 ulps. exp / log / sin / cos get a tolerance that only catches a wrong formula, not a driver's precision. Lanes whose input or expected result is an f32 denormal are counted and not checked (the shader's denormal mode). - **Routes:** both, the HLSL route and direct DXIL (`XCL_DIRECT_DXIL=1`) through `direct_or`. **Tested** - NVIDIA GeForce RTX 4070 Ti (driver 621.40) and the AMD Radeon iGPU of a Ryzen 7 7800X3D (RDNA2) with `XCL_ADAPTER=Radeon`; Windows 11 Pro 26200; Rust 1.100.0 MSVC; DXC 1.8.2502.11; debug. - `cargo build --workspace`, then `cargo test --workspace --no-fail-fast -- --test-threads=4` on `6acae83a`: - RTX 4070 Ti: **1436 passed, 0 failed, 47 ignored**. (The first run of the lib tests ended in `STATUS_ACCESS_VIOLATION` partway through, with 4 threads and no test named; run again, all of them passed. I could not tell which test it was.) - RDNA2: **1435 passed, 1 failed, 47 ignored**. The failure is `gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1`, which fails the same way on `main` `b49be183` on this iGPU (#2115). - `gpu_f32_math_and_bit_scans_random` alone on both adapters (exp2 / log2 errors that are NaN fail the test since `6acae83a`, as luckyteagirl suggested), with `XCL_DIRECT_DXIL=0` and `=1`: passed in all four. - **Negative control:** on `main` just before #587 (`bd2ac507^1`) the test fails on the RTX 4070 Ti with `XCL_DIRECT_DXIL=0` and `=1`. **Regression run** - None: the change is a test only (`crates/xcl/src/gpu/recomp/tests.rs`). **Not tested** - RDNA3 / RDNA4 (native wave64 ran only on the RDNA2 iGPU here), Intel, Linux / Wine. **AI use** - Claude Code with Claude Opus 5.5: wrote the test (it found #580), ran it and the suite on the hardware above, and wrote this description.
DarkPanda69 commented 2026-11-26 03:06:36 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DarkPanda69 on 2026-11-26T02:46:17Z.


Update for head 6acae83: rerun on main b49be18, same cards. gpu_f32_math_and_bit_scans_random passes on both at the default 50 dispatches and at XCL_FUZZ_ITERS=500, with the same worst-case numbers as in the table below.

RDNA4 run (listed as untested) on an RX 9070 XT, plus an RTX 3060: gpu_f32_math_and_bit_scans_random passes on both, at the default 50 dispatches, at XCL_FUZZ_ITERS=500 and with XCL_DIRECT_DXIL=1.

Head 4630179 applied on main b49be18, debug, Windows 11 Pro 26200, card chosen with XCL_ADAPTER, cargo test -p xcl --lib -- gpu_f32_math_and_bit_scans_random --nocapture. The test's own summary lines:

run RX 9070 XT (RDNA4, 32.0.32029.2010) RTX 3060 (32.0.16.1088)
default ok. wave64: 3199 lanes (+1 denormal), wave32: 1600; worst ulps rcp/sqrt/rsq 1/1/1; worst exp/log/sin/cos 7.3e-8 / 1.2e-7 / 1.2e-7 / 1.0e-7 ok. wave32 only: 1600 lanes; ulps 1/1/1; 1.3e-7 / 1.6e-7 / 9.6e-5 / 9.6e-5
XCL_FUZZ_ITERS=500 ok. wave64: 31983 lanes (+17 denormal), wave32: 15989 (+11); ulps 1/1/1; 7.3e-8 / 1.2e-7 / 1.2e-7 / 1.2e-7 ok. wave32: 15989 (+11); ulps 1/1/1; 1.3e-7 / 1.6e-7 / 9.6e-5 / 9.6e-5
XCL_DIRECT_DXIL=1 ok. wave64 and wave32: ulps 1/1/1; 7.3e-8 / 1.2e-7 / 9.6e-5 / 9.6e-5 ok. 1.3e-7 / 1.6e-7 / 9.6e-5 / 9.6e-5

One thing visible in the numbers: the worst absolute sin/cos error is about 1e-7 on the RX 9070 XT with the HLSL path, and about 9.6e-5 on the RTX 3060 and on the RX 9070 XT with the direct DXIL path. All of these are inside the test's bounds. Why it differs was not looked into.

Not tested: RDNA3, Intel, Linux / Wine.
AI use: Claude Code (Claude Opus 5.5) ran the test on this machine and wrote this report.

<!-- greyfinch-sync:ivall/xcl:comment:7181104013 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2620#issuecomment-7181104013). Originally posted by [DarkPanda69](https://github.com/DarkPanda69) on 2026-11-26T02:46:17Z. --- **Update for head `6acae83`:** rerun on `main` `b49be18`, same cards. `gpu_f32_math_and_bit_scans_random` passes on both at the default 50 dispatches and at `XCL_FUZZ_ITERS=500`, with the same worst-case numbers as in the table below. RDNA4 run (listed as untested) on an RX 9070 XT, plus an RTX 3060: `gpu_f32_math_and_bit_scans_random` passes on both, at the default 50 dispatches, at `XCL_FUZZ_ITERS=500` and with `XCL_DIRECT_DXIL=1`. Head `4630179` applied on `main` `b49be18`, debug, Windows 11 Pro 26200, card chosen with `XCL_ADAPTER`, `cargo test -p xcl --lib -- gpu_f32_math_and_bit_scans_random --nocapture`. The test's own summary lines: | run | RX 9070 XT (RDNA4, 32.0.32029.2010) | RTX 3060 (32.0.16.1088) | |---|---|---| | default | ok. wave64: 3199 lanes (+1 denormal), wave32: 1600; worst ulps rcp/sqrt/rsq 1/1/1; worst exp/log/sin/cos 7.3e-8 / 1.2e-7 / 1.2e-7 / 1.0e-7 | ok. wave32 only: 1600 lanes; ulps 1/1/1; 1.3e-7 / 1.6e-7 / 9.6e-5 / 9.6e-5 | | `XCL_FUZZ_ITERS=500` | ok. wave64: 31983 lanes (+17 denormal), wave32: 15989 (+11); ulps 1/1/1; 7.3e-8 / 1.2e-7 / 1.2e-7 / 1.2e-7 | ok. wave32: 15989 (+11); ulps 1/1/1; 1.3e-7 / 1.6e-7 / 9.6e-5 / 9.6e-5 | | `XCL_DIRECT_DXIL=1` | ok. wave64 and wave32: ulps 1/1/1; 7.3e-8 / 1.2e-7 / 9.6e-5 / 9.6e-5 | ok. 1.3e-7 / 1.6e-7 / 9.6e-5 / 9.6e-5 | One thing visible in the numbers: the worst absolute sin/cos error is about 1e-7 on the RX 9070 XT with the HLSL path, and about 9.6e-5 on the RTX 3060 and on the RX 9070 XT with the direct DXIL path. All of these are inside the test's bounds. Why it differs was not looked into. Not tested: RDNA3, Intel, Linux / Wine. AI use: Claude Code (Claude Opus 5.5) ran the test on this machine and wrote this report.
luckyteagirl commented 2026-11-26 04:07:44 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by luckyteagirl on 2026-11-26T03:45:14Z.


RX 6800M focused result on exact PR head 46301792dc39bed64972396f35b6023815d9d10f (clean checkout): Windows 11 Home build 26200, Ryzen 9 5980HX, AMD Radeon RX 6800M, driver 30.0.13002.13003, Rust 1.99.0 MSVC, debug test build.

$env:XCL_ADAPTER = '6800M'
$env:XCL_REQUIRE_GPU = 'wave64'
$env:XCL_DIRECT_DXIL = '1'
cargo test --locked -p xcl --lib gpu_f32_math_and_bit_scans_random -- --test-threads=1 --show-output

Result: 1 passed, 0 failed, 0 ignored, 1,336 filtered; 0 SKIPPED notices. The guarded run exited 0 with no memory guard trigger. The test reported:

Path Lanes Worst ULPs (rcp/sqrt/rsq) Worst errors (exp/log/sin/cos) Distinct failures
wave64 3,199 (+1 denormal input) 1 / 1 / 1 7.26e-8 / 1.15e-7 / 9.58e-5 / 9.57e-5 0
wave32 1,600 (+0 denormal inputs) 1 / 1 / 1 6.09e-8 / 1.11e-7 / 9.57e-5 / 9.57e-5 0

The fixture uses XCL's DXGI name selector; 6800M uniquely matches this machine's RX 6800M, and XCL_REQUIRE_GPU=wave64 makes unavailable required coverage fail rather than silently pass. The test output itself does not print the adapter name. This was the focused synthetic test only; I did not run the full workspace suite or a retail title on this PR head.

AI use: OpenAI Codex (GPT-6; exact serving variant unavailable) and a Luna subagent selected the test, verified adapter selection, ran it, and prepared this report.

<!-- greyfinch-sync:ivall/xcl:comment:7181993728 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2620#issuecomment-7181993728). Originally posted by [luckyteagirl](https://github.com/luckyteagirl) on 2026-11-26T03:45:14Z. --- RX 6800M focused result on exact PR head `46301792dc39bed64972396f35b6023815d9d10f` (clean checkout): Windows 11 Home build 26200, Ryzen 9 5980HX, AMD Radeon RX 6800M, driver `30.0.13002.13003`, Rust 1.99.0 MSVC, debug test build. ```powershell $env:XCL_ADAPTER = '6800M' $env:XCL_REQUIRE_GPU = 'wave64' $env:XCL_DIRECT_DXIL = '1' cargo test --locked -p xcl --lib gpu_f32_math_and_bit_scans_random -- --test-threads=1 --show-output ``` Result: **1 passed, 0 failed, 0 ignored, 1,336 filtered; 0 `SKIPPED` notices**. The guarded run exited 0 with no memory guard trigger. The test reported: | Path | Lanes | Worst ULPs (rcp/sqrt/rsq) | Worst errors (exp/log/sin/cos) | Distinct failures | | --- | ---: | --- | --- | ---: | | wave64 | 3,199 (+1 denormal input) | 1 / 1 / 1 | 7.26e-8 / 1.15e-7 / 9.58e-5 / 9.57e-5 | 0 | | wave32 | 1,600 (+0 denormal inputs) | 1 / 1 / 1 | 6.09e-8 / 1.11e-7 / 9.57e-5 / 9.57e-5 | 0 | The fixture uses XCL's DXGI name selector; `6800M` uniquely matches this machine's RX 6800M, and `XCL_REQUIRE_GPU=wave64` makes unavailable required coverage fail rather than silently pass. The test output itself does not print the adapter name. This was the focused synthetic test only; I did not run the full workspace suite or a retail title on this PR head. AI use: OpenAI Codex (GPT-6; exact serving variant unavailable) and a Luna subagent selected the test, verified adapter selection, ran it, and prepared this report.
luckyteagirl commented 2026-11-26 05:25:33 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by luckyteagirl on 2026-11-26T05:25:33Z.

Review: COMMENTED


Could the exp2/log2 tolerance checks reject unordered results as the sin/cos check below does? With finite input 1.0, a GPU NaN produces a NaN error against the finite expected answer (2.0 for exp2, 0.0 for log2), and e > 1e-5 is false, so the test records no failure. Using !(e <= 1e-5) in both branches, or checking finiteness, would make the fixture catch this wrong result. Source review only at head 46301792; I did not run the GPU test. AI-assisted with Codex (GPT-6.2 Sol).

<!-- greyfinch-sync:ivall/xcl:review:6068966077 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2620#pullrequestreview-6068966077). Originally posted by [luckyteagirl](https://github.com/luckyteagirl) on 2026-11-26T05:25:33Z. **Review:** COMMENTED --- Could the exp2/log2 tolerance checks reject unordered results as the sin/cos check below does? With finite input `1.0`, a GPU NaN produces a NaN error against the finite expected answer (`2.0` for exp2, `0.0` for log2), and `e > 1e-5` is false, so the test records no failure. Using `!(e <= 1e-5)` in both branches, or checking finiteness, would make the fixture catch this wrong result. Source review only at head `46301792`; I did not run the GPU test. AI-assisted with Codex (GPT-6.2 Sol).
joeypercia commented 2026-11-26 06:06:44 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by joeypercia on 2026-11-26T05:40:09Z.


Yes, thanks. The exp2 and log2 checks now fail on a NaN error (!(e <= 1e-5)), as the sin/cos check does. Amended into 6acae83a. That commit passes the test on the RTX 4070 Ti and on the RDNA2 iGPU, with XCL_DIRECT_DXIL=0 and with =1. The whole suite ran on both adapters too; the counts are in the description. (Claude Code, Claude Opus 5.5)

<!-- greyfinch-sync:ivall/xcl:comment:7183696441 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2620#issuecomment-7183696441). Originally posted by [joeypercia](https://github.com/joeypercia) on 2026-11-26T05:40:09Z. --- Yes, thanks. The exp2 and log2 checks now fail on a NaN error (`!(e <= 1e-5)`), as the sin/cos check does. Amended into `6acae83a`. That commit passes the test on the RTX 4070 Ti and on the RDNA2 iGPU, with `XCL_DIRECT_DXIL=0` and with `=1`. The whole suite ran on both adapters too; the counts are in the description. (Claude Code, Claude Opus 5.5)
zhouzhidong3-hash commented 2026-11-26 07:03:34 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by zhouzhidong3-hash on 2026-11-26T06:26:43Z.


RTX 5070 (Blackwell) confirmation of the original randomized fixture on exact PR head 6acae83ad18727740cfbf2602ce0a10fbc3d8d73, using the unchanged official commit archive.

Tested

Windows 10 Pro 19045, i7-12700KF, NVIDIA GeForce RTX 5070 / driver 591.86, Rust 1.100.0 MSVC debug test build, DXC/DXIL 1.8.2502.11 and local D3D12 Agility SDK. Explicit XCL_ADAPTER=5070, XCL_FUZZ_ITERS=500.

Command, once with XCL_DIRECT_DXIL=0 (HLSL), then once with XCL_DIRECT_DXIL=1 (direct DXIL):

cargo test --locked -p xcl --lib gpu_f32_math_and_bit_scans_random -- --test-threads=1 --nocapture

Each route reported 1 passed, 0 failed, 0 ignored, 1336 filtered out; no SKIPPED messages, and the same fixture summary:

  • Wave32: 15,989 non-denormal input lanes plus 11 denormal input lanes, from 500 dispatches / 16,000 generated input-lane positions. The two routes use the fixture's same deterministic seed; these are not independent random populations.
  • 0 distinct failures.
  • Worst rcp / sqrt / rsq error: 1 / 1 / 1 ULP.
  • Worst exp / log relative error: 1.25e-7 / 1.57e-7.
  • Worst sin / cos absolute error: 9.59e-5 / 9.59e-5, within this fixture's tolerance.

The fixture excludes denormal inputs/results from the relevant floating-point comparisons; its bit-scan checks still precede the denormal-input exclusion. The test selected wave32 only on this card. No SKIPPED messages should not be read as native-wave64 coverage.

The changed tests.rs Git blob matches the GitHub API (94fd176a64d71f6ebe44e289d029c3e4ac9c036d); all 210 Rust source hashes were unchanged before/after. Archive SHA256: 91ff895fd854e0129efc2a1364728ab4c5e3497b3f698c2abd337342ff93f69e.

Not tested

Native wave64, parent/negative control, full workspace, release-host build, other random seeds, other drivers/adapters or retail/gameplay. One test process per route; no timing/FPS conclusion.

AI use

OpenAI Codex (GPT-6; exact serving variant unavailable) fetched and verified the commit archive/API blob, ran the original fixture on both routes, checked nonzero wave32 summaries/skip markers and source integrity, and prepared this report. No source changes.

<!-- greyfinch-sync:ivall/xcl:comment:7184435663 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2620#issuecomment-7184435663). Originally posted by [zhouzhidong3-hash](https://github.com/zhouzhidong3-hash) on 2026-11-26T06:26:43Z. --- RTX 5070 (Blackwell) confirmation of the original randomized fixture on exact PR head `6acae83ad18727740cfbf2602ce0a10fbc3d8d73`, using the unchanged official commit archive. **Tested** Windows 10 Pro 19045, i7-12700KF, NVIDIA GeForce RTX 5070 / driver 591.86, Rust 1.100.0 MSVC debug test build, DXC/DXIL 1.8.2502.11 and local D3D12 Agility SDK. Explicit `XCL_ADAPTER=5070`, `XCL_FUZZ_ITERS=500`. Command, once with `XCL_DIRECT_DXIL=0` (HLSL), then once with `XCL_DIRECT_DXIL=1` (direct DXIL): ```text cargo test --locked -p xcl --lib gpu_f32_math_and_bit_scans_random -- --test-threads=1 --nocapture ``` Each route reported **1 passed, 0 failed, 0 ignored, 1336 filtered out; no SKIPPED messages**, and the same fixture summary: - Wave32: 15,989 non-denormal input lanes plus 11 denormal input lanes, from 500 dispatches / 16,000 generated input-lane positions. The two routes use the fixture's same deterministic seed; these are not independent random populations. - 0 distinct failures. - Worst rcp / sqrt / rsq error: 1 / 1 / 1 ULP. - Worst exp / log relative error: 1.25e-7 / 1.57e-7. - Worst sin / cos absolute error: 9.59e-5 / 9.59e-5, within this fixture's tolerance. The fixture excludes denormal inputs/results from the relevant floating-point comparisons; its bit-scan checks still precede the denormal-input exclusion. The test selected wave32 only on this card. No SKIPPED messages should not be read as native-wave64 coverage. The changed `tests.rs` Git blob matches the GitHub API (`94fd176a64d71f6ebe44e289d029c3e4ac9c036d`); all 210 Rust source hashes were unchanged before/after. Archive SHA256: `91ff895fd854e0129efc2a1364728ab4c5e3497b3f698c2abd337342ff93f69e`. **Not tested** Native wave64, parent/negative control, full workspace, release-host build, other random seeds, other drivers/adapters or retail/gameplay. One test process per route; no timing/FPS conclusion. **AI use** OpenAI Codex (GPT-6; exact serving variant unavailable) fetched and verified the commit archive/API blob, ran the original fixture on both routes, checked nonzero wave32 summaries/skip markers and source integrity, and prepared this report. No source changes.
DavidM1911 commented 2026-11-26 09:07:42 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-26T08:29:22Z.


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

<!-- greyfinch-sync:ivall/xcl:comment:7186655235 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2620#issuecomment-7186655235). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-26T08:29:22Z. --- 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
Foniass commented 2026-12-01 08:29:33 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T08:29:33Z.


Triage (#1607) – head 6acae83

No open or merged PR runs a random-input CPU comparison of the f32 VOP1 math. Main has gpu_f64_math_random and gpu_float_compares_random but no f32 unary one. #736 tests the VOP1 bit scans on fixed inputs, and #2169 compares the HLSL and direct backends with each other, not with the CPU.
No problems found in the diff.
Recommendation: keep open.

AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.

<!-- greyfinch-sync:ivall/xcl:comment:7305388431 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2620#issuecomment-7305388431). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T08:29:33Z. --- **Triage (#1607)** – head 6acae83 No open or merged PR runs a random-input CPU comparison of the f32 VOP1 math. Main has `gpu_f64_math_random` and `gpu_float_compares_random` but no f32 unary one. #736 tests the VOP1 bit scans on fixed inputs, and #2169 compares the HLSL and direct backends with each other, not with the CPU. No problems found in the diff. Recommendation: keep open. AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
BBareth commented 2026-12-01 09:38:42 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by BBareth on 2026-12-01T09:38:42Z.


merge-check claim
head: 6acae83ad1

<!-- greyfinch-sync:ivall/xcl:comment:7306998199 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2620#issuecomment-7306998199). Originally posted by [BBareth](https://github.com/BBareth) on 2026-12-01T09:38:42Z. --- merge-check claim head: 6acae83ad18727740cfbf2602ce0a10fbc3d8d73
BBareth commented 2026-12-01 09:59:48 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by BBareth on 2026-12-01T09:59:48Z.


merge-check
base: 493dbd3dd0
head: 6acae83ad1
merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2901 passed, 0 failed, 51 ignored; 28 SKIPPED lines, as on the base; failing: none. The base alone, same machine, same commit: 2900 passed, 0 failed, 51 ignored, 28 SKIPPED lines (22 no wave64, 2 no heap windows, 2 no d3d12SDKLayers.dll, 1 no D3D12 debug layer, 1 cannot disable the driver cache). The new test gpu_f32_math_and_bit_scans_random ran on the GPU and passed (50 dispatches, the default, in the wave forms gpu_waves() gives on this wave32 adapter).
review: no blocking finding; one file (+145/-0, test code), every line read. One GPU test: 22 instructions (f32 rounding, conversions, frexp, rcp / sqrt / rsq, exp / log / sin / cos, four bit scans and a bit count) on random inputs weighted to edge cases, compared with a CPU reference; the exact ones bit for bit, rcp / sqrt / rsq within 4 ulps, the transcendental ones with a loose tolerance, lanes with denormal inputs counted and left out. The random sequence has a fixed seed, so a failure repeats. Not tested here: an AMD GPU, and more than the default 50 iterations (XCL_FUZZ_ITERS).
performance: none: test code only (it adds a few GPU dispatches to the suite).
verdict: safe to merge
hardware / tool and model: RTX 5070 Ti 16 GB, driver 621.24 (32.0.16.2124); i7-12700K; Windows 11 26200. Claude Code, Claude Fable 5.2 read the diff, ran the build and the suite and wrote this check.

<!-- greyfinch-sync:ivall/xcl:comment:7307511906 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2620#issuecomment-7307511906). Originally posted by [BBareth](https://github.com/BBareth) on 2026-12-01T09:59:48Z. --- merge-check base: 493dbd3dd0cd50b4c3e8d28f73ab9b504fcd8158 head: 6acae83ad18727740cfbf2602ce0a10fbc3d8d73 merge: clean build: cargo build --workspace -> ok tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2901 passed, 0 failed, 51 ignored; 28 SKIPPED lines, as on the base; failing: none. The base alone, same machine, same commit: 2900 passed, 0 failed, 51 ignored, 28 SKIPPED lines (22 no wave64, 2 no heap windows, 2 no d3d12SDKLayers.dll, 1 no D3D12 debug layer, 1 cannot disable the driver cache). The new test `gpu_f32_math_and_bit_scans_random` ran on the GPU and passed (50 dispatches, the default, in the wave forms `gpu_waves()` gives on this wave32 adapter). review: no blocking finding; one file (+145/-0, test code), every line read. One GPU test: 22 instructions (f32 rounding, conversions, frexp, rcp / sqrt / rsq, exp / log / sin / cos, four bit scans and a bit count) on random inputs weighted to edge cases, compared with a CPU reference; the exact ones bit for bit, rcp / sqrt / rsq within 4 ulps, the transcendental ones with a loose tolerance, lanes with denormal inputs counted and left out. The random sequence has a fixed seed, so a failure repeats. Not tested here: an AMD GPU, and more than the default 50 iterations (`XCL_FUZZ_ITERS`). performance: none: test code only (it adds a few GPU dispatches to the suite). verdict: safe to merge hardware / tool and model: RTX 5070 Ti 16 GB, driver 621.24 (32.0.16.2124); i7-12700K; Windows 11 26200. Claude Code, Claude Fable 5.2 read the diff, ran the build and the suite and wrote this check.
brainhay5 commented 2026-12-01 11:44:48 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by brainhay5 on 2026-12-01T11:44:48Z.


merge-check claim
head: 6acae83ad1

<!-- greyfinch-sync:ivall/xcl:comment:7310076491 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2620#issuecomment-7310076491). Originally posted by [brainhay5](https://github.com/brainhay5) on 2026-12-01T11:44:48Z. --- merge-check claim head: 6acae83ad18727740cfbf2602ce0a10fbc3d8d73
brainhay5 commented 2026-12-01 11:48:30 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by brainhay5 on 2026-12-01T11:48:30Z.


merge-check claim withdrawn
Our automated merge-check loop claimed this PR and then stopped before posting a check — two loops were running at once and both are now shut down. No check from us is coming, so this claim is void and the head is free for someone else to take.

AI use: an agent posted this withdrawal.

<!-- greyfinch-sync:ivall/xcl:comment:7310172350 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2620#issuecomment-7310172350). Originally posted by [brainhay5](https://github.com/brainhay5) on 2026-12-01T11:48:30Z. --- merge-check claim withdrawn Our automated merge-check loop claimed this PR and then stopped before posting a check — two loops were running at once and both are now shut down. No check from us is coming, so this claim is void and the head is free for someone else to take. *AI use: an agent posted this withdrawal.*
cj-tomlin commented 2026-12-01 20:12:37 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by cj-tomlin on 2026-12-01T20:12:37Z.


merge-check claim
head: 6acae83ad1

<!-- greyfinch-sync:ivall/xcl:comment:7324257986 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2620#issuecomment-7324257986). Originally posted by [cj-tomlin](https://github.com/cj-tomlin) on 2026-12-01T20:12:37Z. --- merge-check claim head: 6acae83ad18727740cfbf2602ce0a10fbc3d8d73
cj-tomlin commented 2026-12-01 20:18:10 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by cj-tomlin on 2026-12-01T20:18:10Z.


merge-check
base: 6bfb5c5153
head: 6acae83ad1
merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2904 passed, 1 failed, 51 ignored; SKIPPED: 27 (22 no wave64, 2 no heap windows, 3 no D3D12 debug layer / d3d12SDKLayers.dll); failing: gpu_two_pass_cache_e2e::two_pass_driver_cache_reuses_both_passes_and_recovers_corrupt_blobs, which fails on the base too on this machine (6 of 6 runs alone on main 6bfb5c51 today); this PR adds test code only. The new gpu_f32_math_and_bit_scans_random ran on the GPU and passed; run alone with --nocapture: wave32, 1,600 lanes (0 denormal inputs), worst rcp/sqrt/rsq 1 ulp each, worst exp/log relative error 1.25e-7 / 1.57e-7, sin/cos absolute 9.58e-5 / 9.59e-5, 0 failures.
review: none blocking, after reading the whole diff (+145/-0, gpu/recomp/tests.rs, test code only). One GPU test of 22 VOP1 instructions and the bit scans / bcnt against a CPU reference on edge-weighted random inputs with a fixed seed; exact ones bit for bit, rcp/sqrt/rsq within 4 ulps, exp/log/sin/cos within loose tolerances, denormal lanes counted and skipped. Ran on NVIDIA (Ampere, wave32) only, so the wave64 form did not run here; the author's run on an AMD RDNA2 iGPU covers it.
performance: none: test code only.
verdict: safe to merge
hardware / tool and model: NVIDIA GeForce RTX 3080 10 GB, driver 621.40, AMD Ryzen 7 7800X3D, Windows 11 build 26300, debug build / Claude Code (Claude Opus 5.5) merged, built, ran the suite, read the diff and drafted this; I checked it.

<!-- greyfinch-sync:ivall/xcl:comment:7324440013 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2620#issuecomment-7324440013). Originally posted by [cj-tomlin](https://github.com/cj-tomlin) on 2026-12-01T20:18:10Z. --- merge-check base: 6bfb5c5153ccc23517daf30aa1071ddb0fadb53c head: 6acae83ad18727740cfbf2602ce0a10fbc3d8d73 merge: clean build: cargo build --workspace -> ok tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2904 passed, 1 failed, 51 ignored; SKIPPED: 27 (22 no wave64, 2 no heap windows, 3 no D3D12 debug layer / d3d12SDKLayers.dll); failing: `gpu_two_pass_cache_e2e::two_pass_driver_cache_reuses_both_passes_and_recovers_corrupt_blobs`, which fails on the base too on this machine (6 of 6 runs alone on `main` `6bfb5c51` today); this PR adds test code only. The new `gpu_f32_math_and_bit_scans_random` ran on the GPU and passed; run alone with `--nocapture`: wave32, 1,600 lanes (0 denormal inputs), worst rcp/sqrt/rsq 1 ulp each, worst exp/log relative error 1.25e-7 / 1.57e-7, sin/cos absolute 9.58e-5 / 9.59e-5, 0 failures. review: none blocking, after reading the whole diff (+145/-0, `gpu/recomp/tests.rs`, test code only). One GPU test of 22 VOP1 instructions and the bit scans / bcnt against a CPU reference on edge-weighted random inputs with a fixed seed; exact ones bit for bit, rcp/sqrt/rsq within 4 ulps, exp/log/sin/cos within loose tolerances, denormal lanes counted and skipped. Ran on NVIDIA (Ampere, wave32) only, so the wave64 form did not run here; the author's run on an AMD RDNA2 iGPU covers it. performance: none: test code only. verdict: safe to merge hardware / tool and model: NVIDIA GeForce RTX 3080 10 GB, driver 621.40, AMD Ryzen 7 7800X3D, Windows 11 build 26300, debug build / Claude Code (Claude Opus 5.5) merged, built, ran the suite, read the diff and drafted this; I checked it.
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!2610
No description provided.