Tests: GPU tests of f64 instructions skip on an adapter without doubles #787

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

@⁠Lucasyudi on GitHub · 2026-11-24 05:23 UTC · original
Lucasyudi:tests/skip-f64-without-doubles → main · +57 −12 · 4 files · 1 commits · open

An adapter that reports no DoublePrecisionFloatShaderOps still runs the recompiled f64 instructions, but with wrong results. On Apple's D3DMetal (macOS under CrossOver; the flag is 0 there, checked with a plain D3D12 program) v_cmp_eq_f64(-0, 0) is false, v_rsq_f64(-0) is 0 instead of -inf, v_ldexp_f64(-0, 5) is +0, and a literal's high word reads as 0.0. A program that holds any f64 instruction gets 0 for its other results too: an integer v_add_nc_u32 of 5 and 7 next to a v_add_f64 reads 0, while the same add alone reads 12. So the f64 tests fail there, and so do the tests that mix f64 with other work in one program, instead of saying the adapter cannot run them, as the wave64 and mesh tests do. Part of #258.

What is in it

  • gpu/recomp/runner.rs: f64_supported(), read from D3D12_OPTIONS at init. XCL_REQUIRE_GPU=wave64 / mesh does not turn a "no f64" skip into a failure.
  • gpu/recomp/tests.rs: no_doubles(). It is true only when there is a GPU that has no doubles; without a GPU, gpu_ready / gpu_waves report "no GPU" as before. The 9 f64 tests return through it, and so do gpu_clamp_and_omod_per_instruction and gpu_valu_16_and_64_bit, whose programs mix f64 with f16 / integer instructions (their f16 "failures" here came from that). gpu_float_compares_random builds one program per type and skips only the F64 one; F32 and F16 still run.
  • CONTRIBUTING.md, README.md: "no f64" added to the list of skip reasons.

Tested

  • Apple M4 Pro, macOS 27.2.1, CrossOver 26.3 with D3DMetal (32-lane waves only, no doubles), Rosetta 2. Cross-built with mingw-w64 (GCC 16.2.0), Rust 1.100.0, debug. DXC 1.9.2609.
  • Each gpu::recomp::tests::gpu_* test in its own process, on main 64b3f35: 53 ok, 23 failed, 8 hung (the graphics / wave64 ones listed in #258). 12 of the failures are the ones below.
  • With this commit, each in its own process: gpu_f64_class_compare, gpu_rndne_f64, gpu_frexp_f64_exp_and_mant, gpu_f64_rounding_and_conversions, gpu_f64_roots, gpu_ldexp_f64, gpu_f64_compares_with_nan, gpu_f64_math_random, gpu_f64_literal_high_word, gpu_clamp_and_omod_per_instruction, gpu_valu_16_and_64_bit, gpu_float_compares_random pass with SKIPPED …: no f64 (the last one runs F32 and F16, 0 failures).
  • How the mixed tests were told apart (local probes, not in the PR): v_cvt_f16_f32 with clamp / plain / omod alone on this host gives 0x3C00 / 0x4200 / 0x4600, as expected; after a v_add_f64 and a v_cvt_f32_f64 in the same program every result is 0, the integer add included.
  • Head 46695ab, rebased onto main 930e8b4: the 12 tests above skip with SKIPPED …: no f64 again, each in its own process; gpu_atomic_fcmpswap_x2 fails as on main (#983). It merges cleanly with #983 (the earlier head 8b73108 conflicted there, on the _x2 guards) and with #553 #750 #794 #890 #957 #982 #996 #1024 stacked together.
  • Spot checks: gpu_global_atomics_and_sub_dword_access, gpu_image_sample_offset still pass; gpu_wave32_program_in_wave64_hardware still skips with "no wave64".

Regression run

Test-only change (plus docs); the pair is a regression check.

From @⁠Toons29: AMD Radeon RX 9070 (RDNA4, driver 32.0.32029.2010), Ryzen 7 7800X3D, Windows 11 build 26300, release builds, scripts/smoke.ps1, the same retail title for 60 s, main 4178e88 and this head: 101 % of main's frames, 100 % of its peak commit, no crash, no device removal.

xcl-smoke v1
commit: 4178e888c0b5be50a2887eda45cdb832763b68a4
gpu: AMD Radeon RX 9070
title: game.exe
seconds: 60
exit: 0x0
frames shown: 1618 (PresentX 1618)
presents per 2 s (last 3): 61 60 60
device removals: 0
crashes: 0
peak commit: 14831 MB
xcl-smoke v1
commit: 46695abf51ea2ceaae6b11eb4ed4f06440d5f383
gpu: AMD Radeon RX 9070
title: game.exe
seconds: 60
exit: 0x0
frames shown: 1633 (PresentX 1634)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14816 MB

Not in this PR: gpu_atomic_fcmpswap_x2, gpu_atomic_fmin_fmax_x2 and gpu_more_atomics_sub_dword_scratch_valu also fail here, but their programs have no doubles (fcmpswap_x2 is InterlockedCompareExchange64, fmin / fmax_x2 go through 64-bit integer min / max in emit.rs); they fail on D3DMetal's 64-bit atomics, which #983 handles. An earlier head of this PR skipped the two _x2 ones on "no f64"; that would have dropped passing coverage on an adapter with no doubles but working 64-bit atomics (the A770 in #42), so they are out (thanks @⁠vakaobr, @⁠us3r40456).

Not tested

  • Windows and any adapter with doubles: not run. There f64_supported() is true and nothing is skipped, but no run shows it.
  • cargo test --workspace as a whole (it does not finish under CrossOver, see #258).
  • #682 adds more f64 GPU tests; if both land, those would need no_doubles() too.

AI use

  • Claude Code with Claude Opus 5.5 (claude-opus-5-5): ran the sweep, wrote the change and this description.
**@⁠Lucasyudi** on GitHub · 2026-11-24 05:23 UTC · [original](https://github.com/xcl-dev/xcl/pull/787) `Lucasyudi:tests/skip-f64-without-doubles` → `main` · +57 −12 · 4 files · 1 commits · open An adapter that reports no `DoublePrecisionFloatShaderOps` still runs the recompiled f64 instructions, but with wrong results. On Apple's D3DMetal (macOS under CrossOver; the flag is 0 there, checked with a plain D3D12 program) `v_cmp_eq_f64(-0, 0)` is false, `v_rsq_f64(-0)` is 0 instead of -inf, `v_ldexp_f64(-0, 5)` is +0, and a literal's high word reads as 0.0. A program that holds any f64 instruction gets 0 for its other results too: an integer `v_add_nc_u32` of 5 and 7 next to a `v_add_f64` reads 0, while the same add alone reads 12. So the f64 tests fail there, and so do the tests that mix f64 with other work in one program, instead of saying the adapter cannot run them, as the wave64 and mesh tests do. Part of #258. **What is in it** - `gpu/recomp/runner.rs`: `f64_supported()`, read from `D3D12_OPTIONS` at init. `XCL_REQUIRE_GPU=wave64` / `mesh` does not turn a "no f64" skip into a failure. - `gpu/recomp/tests.rs`: `no_doubles()`. It is true only when there is a GPU that has no doubles; without a GPU, `gpu_ready` / `gpu_waves` report "no GPU" as before. The 9 f64 tests return through it, and so do `gpu_clamp_and_omod_per_instruction` and `gpu_valu_16_and_64_bit`, whose programs mix f64 with f16 / integer instructions (their f16 "failures" here came from that). `gpu_float_compares_random` builds one program per type and skips only the F64 one; F32 and F16 still run. - `CONTRIBUTING.md`, `README.md`: "no f64" added to the list of skip reasons. **Tested** - Apple M4 Pro, macOS 27.2.1, CrossOver 26.3 with D3DMetal (32-lane waves only, no doubles), Rosetta 2. Cross-built with mingw-w64 (GCC 16.2.0), Rust 1.100.0, debug. DXC 1.9.2609. - Each `gpu::recomp::tests::gpu_*` test in its own process, on `main` 64b3f35: 53 ok, 23 failed, 8 hung (the graphics / wave64 ones listed in #258). 12 of the failures are the ones below. - With this commit, each in its own process: `gpu_f64_class_compare`, `gpu_rndne_f64`, `gpu_frexp_f64_exp_and_mant`, `gpu_f64_rounding_and_conversions`, `gpu_f64_roots`, `gpu_ldexp_f64`, `gpu_f64_compares_with_nan`, `gpu_f64_math_random`, `gpu_f64_literal_high_word`, `gpu_clamp_and_omod_per_instruction`, `gpu_valu_16_and_64_bit`, `gpu_float_compares_random` pass with `SKIPPED …: no f64` (the last one runs F32 and F16, 0 failures). - How the mixed tests were told apart (local probes, not in the PR): `v_cvt_f16_f32` with clamp / plain / omod alone on this host gives 0x3C00 / 0x4200 / 0x4600, as expected; after a `v_add_f64` and a `v_cvt_f32_f64` in the same program every result is 0, the integer add included. - Head 46695ab, rebased onto `main` `930e8b4`: the 12 tests above skip with `SKIPPED …: no f64` again, each in its own process; `gpu_atomic_fcmpswap_x2` fails as on `main` (#983). It merges cleanly with #983 (the earlier head 8b73108 conflicted there, on the `_x2` guards) and with #553 #750 #794 #890 #957 #982 #996 #1024 stacked together. - Spot checks: `gpu_global_atomics_and_sub_dword_access`, `gpu_image_sample_offset` still pass; `gpu_wave32_program_in_wave64_hardware` still skips with "no wave64". **Regression run** Test-only change (plus docs); the pair is a regression check. From @⁠Toons29: AMD Radeon RX 9070 (RDNA4, driver 32.0.32029.2010), Ryzen 7 7800X3D, Windows 11 build 26300, release builds, `scripts/smoke.ps1`, the same retail title for 60 s, `main` `4178e88` and this head: 101 % of `main`'s frames, 100 % of its peak commit, no crash, no device removal. ``` xcl-smoke v1 commit: 4178e888c0b5be50a2887eda45cdb832763b68a4 gpu: AMD Radeon RX 9070 title: game.exe seconds: 60 exit: 0x0 frames shown: 1618 (PresentX 1618) presents per 2 s (last 3): 61 60 60 device removals: 0 crashes: 0 peak commit: 14831 MB ``` ``` xcl-smoke v1 commit: 46695abf51ea2ceaae6b11eb4ed4f06440d5f383 gpu: AMD Radeon RX 9070 title: game.exe seconds: 60 exit: 0x0 frames shown: 1633 (PresentX 1634) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14816 MB ``` Not in this PR: `gpu_atomic_fcmpswap_x2`, `gpu_atomic_fmin_fmax_x2` and `gpu_more_atomics_sub_dword_scratch_valu` also fail here, but their programs have no doubles (`fcmpswap_x2` is `InterlockedCompareExchange64`, `fmin` / `fmax_x2` go through 64-bit integer min / max in `emit.rs`); they fail on D3DMetal's 64-bit atomics, which #983 handles. An earlier head of this PR skipped the two `_x2` ones on "no f64"; that would have dropped passing coverage on an adapter with no doubles but working 64-bit atomics (the A770 in #42), so they are out (thanks @⁠vakaobr, @⁠us3r40456). **Not tested** - Windows and any adapter with doubles: not run. There `f64_supported()` is true and nothing is skipped, but no run shows it. - `cargo test --workspace` as a whole (it does not finish under CrossOver, see #258). - #682 adds more f64 GPU tests; if both land, those would need `no_doubles()` too. **AI use** - Claude Code with Claude Opus 5.5 (`claude-opus-5-5`): ran the sweep, wrote the change and this description.
An adapter that reports no DoublePrecisionFloatShaderOps still runs the
recompiled f64 instructions, with wrong results: on Apple's D3DMetal (macOS,
CrossOver) a program holding any f64 instruction gets 0 for its other results
too (an integer add of 5 and 7 next to a v_add_f64 reads 0). The 9 f64 tests
failed there, and so did gpu_clamp_and_omod_per_instruction and
gpu_valu_16_and_64_bit, whose programs mix f64 with f16 and integer work.

runner::f64_supported() reads the flag at init. Those 11 tests print
"SKIPPED <test>: no f64" there; gpu_float_compares_random, which builds one
program per type, skips only its F64 program. XCL_REQUIRE_GPU=wave64 / mesh
does not turn a "no f64" skip into a failure.

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

@⁠futurepro62 on GitHub · 2026-11-24 07:04 UTC · original

Full-suite run, since this PR has no test report yet. Tested exact head 8b73108 (on its base 64b3f35).

Tested

  • NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell, 32-lane waves only, mesh shaders), driver 616.64, Ryzen 7 9800X3D, Windows 11 Home 26300, Rust 1.100.0 MSVC, debug, D3D12 debug layer installed.
  • cargo build --workspace, then XCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4: 701 passed, 0 failed, 41 ignored. SKIPPED (no wave64): gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware.
  • This covers the "Windows and any adapter with doubles" gap: no test skipped with "no f64" on the RTX 5070 Ti, so all the f64 tests, gpu_clamp_and_omod_per_instruction, gpu_valu_16_and_64_bit and gpu_float_compares_random ran and passed.
  • Same head, cargo test -p xcl --lib gpu::recomp::tests -- --test-threads=4 --nocapture with XCL_ADAPTER=radeon (AMD Radeon integrated graphics in the 9800X3D, RDNA2, driver 32.0.21036.18) and XCL_ADAPTER=nvidia: 115 passed, 0 failed, 17 ignored each. On the Radeon nothing skipped at all (it has wave64 and doubles); on the NVIDIA card only the two wave64 tests above skipped. So f64_supported() reads true on both, and no f64 test is skipped by mistake on either.

Not tested

  • An adapter without doubles (I have none), a release build.

AI use

  • Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
**@⁠futurepro62** on GitHub · 2026-11-24 07:04 UTC · [original](https://github.com/xcl-dev/xcl/pull/787#issuecomment-7124580432) Full-suite run, since this PR has no test report yet. Tested exact head `8b73108` (on its base `64b3f35`). **Tested** - NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell, 32-lane waves only, mesh shaders), driver 616.64, Ryzen 7 9800X3D, Windows 11 Home 26300, Rust 1.100.0 MSVC, debug, D3D12 debug layer installed. - `cargo build --workspace`, then `XCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4`: **701 passed, 0 failed, 41 ignored**. SKIPPED (no wave64): `gpu_geometry_wave32_prefix_count_over_a_mask`, `gpu_wave32_program_in_wave64_hardware`. - This covers the "Windows and any adapter with doubles" gap: no test skipped with "no f64" on the RTX 5070 Ti, so all the f64 tests, `gpu_clamp_and_omod_per_instruction`, `gpu_valu_16_and_64_bit` and `gpu_float_compares_random` ran and passed. - Same head, `cargo test -p xcl --lib gpu::recomp::tests -- --test-threads=4 --nocapture` with `XCL_ADAPTER=radeon` (AMD Radeon integrated graphics in the 9800X3D, RDNA2, driver 32.0.21036.18) and `XCL_ADAPTER=nvidia`: 115 passed, 0 failed, 17 ignored each. On the Radeon nothing skipped at all (it has wave64 and doubles); on the NVIDIA card only the two wave64 tests above skipped. So `f64_supported()` reads true on both, and no f64 test is skipped by mistake on either. **Not tested** - An adapter without doubles (I have none), a release build. **AI use** - Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
Author
Owner

@⁠vakaobr on GitHub · 2026-11-24 09:30 UTC · original

A note from #258 that applies to this PR too (my own diff had the same two tests in its list): @⁠us3r40456's SFI0 check (https://github.com/ivall/xcl/issues/258#issuecomment-7121781360) shows gpu_atomic_fcmpswap_x2 and gpu_atomic_fmin_fmax_x2 compile without the Doubles flag (SFI0 0xc000, 64-bit integer atomics only). They fail on D3DMetal because of its 64-bit integer atomics, not for want of doubles. They are not among the A770's failures in #42, so skipping them on "no f64" would drop passing coverage on an adapter that has no doubles. Keeping them out of the no_doubles() list leaves them failing on D3DMetal, which is the true state there.

I have not checked the SFI0 flags myself; the finding is @⁠us3r40456's. On my M5 Pro (CrossOver 26.3, D3DMetal) both tests fail at feb49be of mac-on-main-wip (tests.rs:4581 and tests.rs:4712), as on the other Macs in #258.

AI use: Claude Code, Claude Opus 5.5 compared the two diffs and drafted this note.

**@⁠vakaobr** on GitHub · 2026-11-24 09:30 UTC · [original](https://github.com/xcl-dev/xcl/pull/787#issuecomment-7127510124) A note from #258 that applies to this PR too (my own diff had the same two tests in its list): @⁠us3r40456's SFI0 check (https://github.com/ivall/xcl/issues/258#issuecomment-7121781360) shows `gpu_atomic_fcmpswap_x2` and `gpu_atomic_fmin_fmax_x2` compile without the Doubles flag (SFI0 `0xc000`, 64-bit integer atomics only). They fail on D3DMetal because of its 64-bit integer atomics, not for want of doubles. They are not among the A770's failures in #42, so skipping them on "no f64" would drop passing coverage on an adapter that has no doubles. Keeping them out of the `no_doubles()` list leaves them failing on D3DMetal, which is the true state there. I have not checked the SFI0 flags myself; the finding is @⁠us3r40456's. On my M5 Pro (CrossOver 26.3, D3DMetal) both tests fail at `feb49be` of `mac-on-main-wip` (`tests.rs:4581` and `tests.rs:4712`), as on the other Macs in #258. AI use: Claude Code, Claude Opus 5.5 compared the two diffs and drafted this note.
Author
Owner

@⁠us3r40456 on GitHub · 2026-11-24 11:47 UTC · original

Tested on an Apple Silicon Mac, where D3DMetal reports DoublePrecisionFloatShaderOps = 0. I compared the head 8b73108 with its base 64b3f35.

Tested

  • MacBook Pro, Apple M5 Pro (20-core GPU), 24 GB, macOS 27.2.1, Rosetta 2. CrossOver 26.3.0.39832 with D3DMetal 3.0. MSVC debug build, cross-built with cargo-xwin 0.24.1 (Rust 1.100.0, clang-cl / lld 23.1.6). DXC 1.9.2609 (XCL_DXC_DIR). Builds with no new warning.
  • The tests the diff touches, plus gpu_float_compares_random, one per process:
    • 14 go from failed to ok with SKIPPED <test>: no f64: gpu_f64_roots, gpu_f64_compares_with_nan, gpu_f64_class_compare, gpu_f64_literal_high_word, gpu_f64_rounding_and_conversions, gpu_f64_math_random, gpu_frexp_f64_exp_and_mant, gpu_ldexp_f64, gpu_rndne_f64, gpu_clamp_and_omod_per_instruction, gpu_valu_16_and_64_bit, gpu_float_compares_random, gpu_atomic_fcmpswap_x2 and gpu_atomic_fmin_fmax_x2.
    • gpu_more_atomics_sub_dword_scratch_valu fails on both: its program has 64-bit atomics (#983).
    • gpu_atomic_fmin_fmax_negative_zero, gpu_dword_addtid_per_lane_addresses, gpu_fract_f32_edges, gpu_ldexp_f32 and gpu_valu_float_and_int pass on both.
  • As noted on this PR, the two *_x2 atomic tests skip here with no f64, but their programs have no doubles. On this host they fail because of the 64-bit atomics (#983). On an adapter that has no doubles but working 64-bit atomics (the A770 in #42), they would be skipped although they pass.

Not tested

  • Windows, and the rest of the suite.

AI use

  • Claude Code, Claude Opus 5.5 ran these tests on this machine and wrote this report.
**@⁠us3r40456** on GitHub · 2026-11-24 11:47 UTC · [original](https://github.com/xcl-dev/xcl/pull/787#issuecomment-7130548013) Tested on an Apple Silicon Mac, where D3DMetal reports `DoublePrecisionFloatShaderOps = 0`. I compared the head 8b73108 with its base 64b3f35. **Tested** - MacBook Pro, Apple M5 Pro (20-core GPU), 24 GB, macOS 27.2.1, Rosetta 2. CrossOver 26.3.0.39832 with D3DMetal 3.0. MSVC debug build, cross-built with cargo-xwin 0.24.1 (Rust 1.100.0, clang-cl / lld 23.1.6). DXC 1.9.2609 (`XCL_DXC_DIR`). Builds with no new warning. - The tests the diff touches, plus `gpu_float_compares_random`, one per process: - 14 go from failed to `ok` with `SKIPPED <test>: no f64`: `gpu_f64_roots`, `gpu_f64_compares_with_nan`, `gpu_f64_class_compare`, `gpu_f64_literal_high_word`, `gpu_f64_rounding_and_conversions`, `gpu_f64_math_random`, `gpu_frexp_f64_exp_and_mant`, `gpu_ldexp_f64`, `gpu_rndne_f64`, `gpu_clamp_and_omod_per_instruction`, `gpu_valu_16_and_64_bit`, `gpu_float_compares_random`, `gpu_atomic_fcmpswap_x2` and `gpu_atomic_fmin_fmax_x2`. - `gpu_more_atomics_sub_dword_scratch_valu` fails on both: its program has 64-bit atomics (#983). - `gpu_atomic_fmin_fmax_negative_zero`, `gpu_dword_addtid_per_lane_addresses`, `gpu_fract_f32_edges`, `gpu_ldexp_f32` and `gpu_valu_float_and_int` pass on both. - As noted on this PR, the two `*_x2` atomic tests skip here with `no f64`, but their programs have no doubles. On this host they fail because of the 64-bit atomics (#983). On an adapter that has no doubles but working 64-bit atomics (the A770 in #42), they would be skipped although they pass. **Not tested** - Windows, and the rest of the suite. **AI use** - Claude Code, Claude Opus 5.5 ran these tests on this machine and wrote this report.
Author
Owner

@⁠shortside on GitHub · 2026-11-24 11:56 UTC · original

Test report from a second Mac, head 8b73108 against its merge base 64b3f35.

Tested

  • MacBook Pro M5 Pro, macOS 27.2.1, Rosetta 2; CrossOver 26.3 (Wine 11.0), Windows 10 bottle, D3DMetal; DXC 1.9.2609. Cross-built for x86_64-pc-windows-msvc with clang-cl / lld-link 23.1.6 and an xwin SDK 10.0.26100, Rust 1.100.0, debug. The lib test binary run under Wine, one test per process (--exact --nocapture, 60 s cap).
  • Every lib test matching f64, plus gpu_float_compares_random, gpu_clamp_and_omod_per_instruction and gpu_valu_16_and_64_bit (16 tests): base 4 passed, 12 failed; head 4 passed, 12 passed with SKIPPED … no f64, 0 failed.
  • The 12: gpu_clamp_and_omod_per_instruction, gpu_f64_class_compare, gpu_f64_compares_with_nan, gpu_f64_literal_high_word, gpu_f64_math_random, gpu_f64_roots, gpu_f64_rounding_and_conversions, gpu_float_compares_random, gpu_frexp_f64_exp_and_mant, gpu_ldexp_f64, gpu_rndne_f64, gpu_valu_16_and_64_bit. The 4 that pass on both are the non-GPU ones.

Not tested

  • Windows (where none of these should skip), the rest of the suite. Skipped tests are not coverage: f64 instructions stay untested on this host.

AI use

  • Claude Code with Claude Fable 5.2 built both commits, ran the tests and wrote this report.
**@⁠shortside** on GitHub · 2026-11-24 11:56 UTC · [original](https://github.com/xcl-dev/xcl/pull/787#issuecomment-7130757235) Test report from a second Mac, head `8b73108` against its merge base `64b3f35`. **Tested** - MacBook Pro M5 Pro, macOS 27.2.1, Rosetta 2; CrossOver 26.3 (Wine 11.0), Windows 10 bottle, D3DMetal; DXC 1.9.2609. Cross-built for `x86_64-pc-windows-msvc` with clang-cl / lld-link 23.1.6 and an xwin SDK 10.0.26100, Rust 1.100.0, debug. The lib test binary run under Wine, one test per process (`--exact --nocapture`, 60 s cap). - Every lib test matching `f64`, plus `gpu_float_compares_random`, `gpu_clamp_and_omod_per_instruction` and `gpu_valu_16_and_64_bit` (16 tests): base 4 passed, 12 failed; head 4 passed, 12 passed with `SKIPPED … no f64`, 0 failed. - The 12: `gpu_clamp_and_omod_per_instruction`, `gpu_f64_class_compare`, `gpu_f64_compares_with_nan`, `gpu_f64_literal_high_word`, `gpu_f64_math_random`, `gpu_f64_roots`, `gpu_f64_rounding_and_conversions`, `gpu_float_compares_random`, `gpu_frexp_f64_exp_and_mant`, `gpu_ldexp_f64`, `gpu_rndne_f64`, `gpu_valu_16_and_64_bit`. The 4 that pass on both are the non-GPU ones. **Not tested** - Windows (where none of these should skip), the rest of the suite. Skipped tests are not coverage: f64 instructions stay untested on this host. **AI use** - Claude Code with Claude Fable 5.2 built both commits, ran the tests and wrote this report.
Author
Owner

@⁠Lucasyudi on GitHub · 2026-11-24 12:37 UTC · original

@⁠vakaobr @⁠us3r40456 right, thanks: fcmpswap_x2 is InterlockedCompareExchange64 and fmin / fmax_x2 go through 64-bit integer min / max (emit.rs, rmw64 / float_minmax_mem), so neither program holds a double. Head 01a236c takes both out of no_doubles(); they fail again on D3DMetal, as on main, and #983 is where they belong. The PR now skips 11 tests whole plus the F64 part of gpu_float_compares_random (the 12 @⁠shortside counted).

@⁠futurepro62 thanks for the Windows run on the 5070 Ti and the Radeon; this head only removes two skips, so nothing changes where f64_supported() is true.

AI-assisted (Claude Code, Claude Opus 5.5).

**@⁠Lucasyudi** on GitHub · 2026-11-24 12:37 UTC · [original](https://github.com/xcl-dev/xcl/pull/787#issuecomment-7131692615) @⁠vakaobr @⁠us3r40456 right, thanks: `fcmpswap_x2` is `InterlockedCompareExchange64` and `fmin` / `fmax_x2` go through 64-bit integer min / max (`emit.rs`, `rmw64` / `float_minmax_mem`), so neither program holds a double. Head `01a236c` takes both out of `no_doubles()`; they fail again on D3DMetal, as on `main`, and #983 is where they belong. The PR now skips 11 tests whole plus the F64 part of `gpu_float_compares_random` (the 12 @⁠shortside counted). @⁠futurepro62 thanks for the Windows run on the 5070 Ti and the Radeon; this head only removes two skips, so nothing changes where `f64_supported()` is true. AI-assisted (Claude Code, Claude Opus 5.5).
Author
Owner

@⁠mikebuckets171 on GitHub · 2026-11-24 16:25 UTC · original

#787 measured on a third Mac (M5 Pro, CrossOver 26 + D3DMetal): base 47efa2e → head 01a236c, each test in its own process.

The host flag, from a plain D3D12 program (no XCL, reads no files): DoublePrecisionFloatShaderOps 0, OutputMergerLogicOp 1, MinPrecisionSupport 0x2 (16-bit), ROVs 1, TypedUAVLoadAdditionalFormats 1. So the premise holds here independently of the other two Mac reports.

Base 47efa2e: all 12 tests the gate covers fail. The gated set is 12, not 11 — gpu_float_compares_random is gated through its helper float_compares_random(), which a scan of the #[test] fns alone misses. Representative assertions:

  • gpu_f64_class_compare — tests.rs:520:5, left: (0, 0), right: (4294967295, 4294967295)
  • gpu_rndne_f64 — 697:9, left: 0, right: 9223372036854775808
  • gpu_frexp_f64_exp_and_mant — 756:9, left: 0, right: 4605212093963042816
  • gpu_clamp_and_omod_per_instruction — 1074:9, left: 0.0, right: 0.3
  • gpu_f64_literal_high_word — 7035:13, left: 0.0, right: 2.5
  • gpu_valu_16_and_64_bit — 2707:9, left: 0, right: 3203351424, on v_add_f16 keeps the high half
  • gpu_float_compares_random — 6526:5, left: 25107, right: 0
  • also failing: gpu_f64_roots (894:5), gpu_f64_rounding_and_conversions (854:5), gpu_ldexp_f64 (952:5), gpu_f64_compares_with_nan (6232:5), gpu_f64_math_random

Head 01a236c: the same 12 all report SKIPPED …: no f64 and the process exits 0, printing no doubles in shaders on this GPU – skipping the f64 instructions. Reproduced on a second pass of gpu_f64_math_random, gpu_float_compares_random and gpu_f64_literal_high_word (0.05 s, 0.44 s, 0.04 s against 0.36-0.58 s when they run). Five controls unchanged on both sides, ok: gpu_valu_float_and_int, gpu_fract_f32_edges, gpu_ldexp_f32, gpu_atomic_fmin_fmax_negative_zero, gpu_dword_addtid_per_lane_addresses.

What this host's f64 fault actually is, which is worth having on the record for the skip. It is wrong values from f64 operands, not missing writes. gpu_float_compares_random prints the breakdown for one program: wave32 F32: 1600 lanes x 33 compares, 0 distinct failures, wave32 F16: 1600 lanes x 33 compares, 0 distinct failures, wave32 F64: 1600 lanes x 33 compares, 25107 distinct failures — with F64 CMPX LT(-1.00375e2, 7.3125e1) = false among them. The f32 and f16 halves of the same program compute correctly. That is a different fault from the 64-bit atomics, where a program holding one produces no writes at all (my probe readback note higher up in this thread).

One interaction, because it changed between heads of this PR. At 01a236c the two 64-bit-atomic tests are not gated and still fail here: gpu_atomic_fcmpswap_x2 tests.rs:4647:9, left: 4609434218613702656 (0x3FF8_0000_0000_0000, the test's own INIT, never replaced), right: 12682136550675316736; gpu_atomic_fmin_fmax_x2 4778:13, left: -inf, right: 42.5. In a tree that also carries #983's no_int64_atomics() gate — 47efa2e plus cherry-picks of #890 #957 #982 #983 #996 #1024 #787, measured today — both become SKIPPED … no 64-bit atomics / ok, and all 12 f64 tests skip as intended. So the two PRs cover different faults and neither skip hides the other's problem. That also matches @⁠us3r40456's 14 tests on the earlier head: 12 here plus the two that 8b73108 also gated before @⁠Lucasyudi moved them to the atomics gate.

Not tested: Windows — this machine has no Windows host. Counts, line numbers, timings and result codes only; no game data.

Host: macOS 27.2.1 (Apple silicon, M5 Pro, 48 GB), CrossOver 26 with D3DMetal, Rust 1.100.0, x86_64-pc-windows-gnullvm (LLVM-MinGW, clang 23.1.6), --release --locked. AI use: GPT-6 Luna built the trees, ran the tests and drafted this; the assertions, line numbers and timings are quoted from those runs.

**@⁠mikebuckets171** on GitHub · 2026-11-24 16:25 UTC · [original](https://github.com/xcl-dev/xcl/pull/787#issuecomment-7137654494) **#787 measured on a third Mac (M5 Pro, CrossOver 26 + D3DMetal): base `47efa2e` → head `01a236c`, each test in its own process.** **The host flag, from a plain D3D12 program (no XCL, reads no files):** `DoublePrecisionFloatShaderOps 0`, `OutputMergerLogicOp 1`, `MinPrecisionSupport 0x2` (16-bit), `ROVs 1`, `TypedUAVLoadAdditionalFormats 1`. So the premise holds here independently of the other two Mac reports. **Base `47efa2e`: all 12 tests the gate covers fail.** The gated set is 12, not 11 — `gpu_float_compares_random` is gated through its helper `float_compares_random()`, which a scan of the `#[test]` fns alone misses. Representative assertions: - `gpu_f64_class_compare` — `tests.rs:520:5`, `left: (0, 0)`, `right: (4294967295, 4294967295)` - `gpu_rndne_f64` — `697:9`, `left: 0`, `right: 9223372036854775808` - `gpu_frexp_f64_exp_and_mant` — `756:9`, `left: 0`, `right: 4605212093963042816` - `gpu_clamp_and_omod_per_instruction` — `1074:9`, `left: 0.0`, `right: 0.3` - `gpu_f64_literal_high_word` — `7035:13`, `left: 0.0`, `right: 2.5` - `gpu_valu_16_and_64_bit` — `2707:9`, `left: 0`, `right: 3203351424`, on `v_add_f16 keeps the high half` - `gpu_float_compares_random` — `6526:5`, `left: 25107`, `right: 0` - also failing: `gpu_f64_roots` (`894:5`), `gpu_f64_rounding_and_conversions` (`854:5`), `gpu_ldexp_f64` (`952:5`), `gpu_f64_compares_with_nan` (`6232:5`), `gpu_f64_math_random` **Head `01a236c`: the same 12 all report `SKIPPED …: no f64` and the process exits 0**, printing `no doubles in shaders on this GPU – skipping the f64 instructions`. Reproduced on a second pass of `gpu_f64_math_random`, `gpu_float_compares_random` and `gpu_f64_literal_high_word` (0.05 s, 0.44 s, 0.04 s against 0.36-0.58 s when they run). Five controls unchanged on both sides, `ok`: `gpu_valu_float_and_int`, `gpu_fract_f32_edges`, `gpu_ldexp_f32`, `gpu_atomic_fmin_fmax_negative_zero`, `gpu_dword_addtid_per_lane_addresses`. **What this host's f64 fault actually is, which is worth having on the record for the skip.** It is wrong values from f64 operands, not missing writes. `gpu_float_compares_random` prints the breakdown for one program: `wave32 F32: 1600 lanes x 33 compares, 0 distinct failures`, `wave32 F16: 1600 lanes x 33 compares, 0 distinct failures`, `wave32 F64: 1600 lanes x 33 compares, 25107 distinct failures` — with `F64 CMPX LT(-1.00375e2, 7.3125e1) = false` among them. The f32 and f16 halves of the same program compute correctly. That is a different fault from the 64-bit atomics, where a program holding one produces no writes at all (my probe readback note higher up in this thread). **One interaction, because it changed between heads of this PR.** At `01a236c` the two 64-bit-atomic tests are not gated and still fail here: `gpu_atomic_fcmpswap_x2` `tests.rs:4647:9`, `left: 4609434218613702656` (`0x3FF8_0000_0000_0000`, the test's own `INIT`, never replaced), `right: 12682136550675316736`; `gpu_atomic_fmin_fmax_x2` `4778:13`, `left: -inf`, `right: 42.5`. In a tree that also carries #983's `no_int64_atomics()` gate — `47efa2e` plus cherry-picks of #890 #957 #982 #983 #996 #1024 #787, measured today — both become `SKIPPED … no 64-bit atomics` / `ok`, and all 12 f64 tests skip as intended. So the two PRs cover different faults and neither skip hides the other's problem. That also matches @⁠us3r40456's 14 tests on the earlier head: 12 here plus the two that `8b73108` also gated before @⁠Lucasyudi moved them to the atomics gate. Not tested: Windows — this machine has no Windows host. Counts, line numbers, timings and result codes only; no game data. Host: macOS 27.2.1 (Apple silicon, M5 Pro, 48 GB), CrossOver 26 with D3DMetal, Rust 1.100.0, `x86_64-pc-windows-gnullvm` (LLVM-MinGW, clang 23.1.6), `--release --locked`. **AI use**: GPT-6 Luna built the trees, ran the tests and drafted this; the assertions, line numbers and timings are quoted from those runs.
Author
Owner

@⁠Lucasyudi on GitHub · 2026-11-24 16:34 UTC · original

@⁠mikebuckets171 thanks for the third Mac. One correction on the fault, since it bears on why two of these tests skip whole: gpu_float_compares_random builds a separate program per type (for ty in ["F32", "F64", "F16"], each through its own kernel_wave, tests.rs around 6480–6493 at this head), so its F32 and F16 lines come from programs with no f64 in them and do not show that f64 leaves the rest of a program intact. What I measured with both in one program (the probe in the description) is the other way: v_add_nc_u32 5 + 7 reads 12 alone and 0 next to a v_add_f64 / v_cvt_f32_f64, and v_cvt_f16_f32 with clamp / omod gives the right values alone and 0 next to them. A compare that comes out false, like your CMPX LT(-100.375, 73.125), is what an all-zero result looks like too. That is why gpu_clamp_and_omod_per_instruction and gpu_valu_16_and_64_bit skip whole rather than only their f64 asserts.

AI-assisted (Claude Code, Claude Opus 5.5).

**@⁠Lucasyudi** on GitHub · 2026-11-24 16:34 UTC · [original](https://github.com/xcl-dev/xcl/pull/787#issuecomment-7137870952) @⁠mikebuckets171 thanks for the third Mac. One correction on the fault, since it bears on why two of these tests skip whole: `gpu_float_compares_random` builds a separate program per type (`for ty in ["F32", "F64", "F16"]`, each through its own `kernel_wave`, `tests.rs` around 6480–6493 at this head), so its F32 and F16 lines come from programs with no f64 in them and do not show that f64 leaves the rest of a program intact. What I measured with both in one program (the probe in the description) is the other way: `v_add_nc_u32` 5 + 7 reads 12 alone and 0 next to a `v_add_f64` / `v_cvt_f32_f64`, and `v_cvt_f16_f32` with clamp / omod gives the right values alone and 0 next to them. A compare that comes out false, like your `CMPX LT(-100.375, 73.125)`, is what an all-zero result looks like too. That is why `gpu_clamp_and_omod_per_instruction` and `gpu_valu_16_and_64_bit` skip whole rather than only their f64 asserts. AI-assisted (Claude Code, Claude Opus 5.5).
Author
Owner

@⁠mikebuckets171 on GitHub · 2026-11-24 16:40 UTC · original

#787 measured on a third Mac (M5 Pro, CrossOver 26 + D3DMetal): base 47efa2e → head 01a236c, each test in its own process.

The host flag, from a plain D3D12 program (no XCL, reads no files): DoublePrecisionFloatShaderOps 0, OutputMergerLogicOp 1, MinPrecisionSupport 0x2 (16-bit), ROVs 1, TypedUAVLoadAdditionalFormats 1. So the premise holds here independently of the other two Mac reports.

Base 47efa2e: all 12 tests the gate covers fail. The gated set is 12, not 11 — gpu_float_compares_random is gated through its helper float_compares_random(), which a scan of the #[test] fns alone misses. Representative assertions:

  • gpu_f64_class_compare — tests.rs:520:5, left: (0, 0), right: (4294967295, 4294967295)
  • gpu_rndne_f64 — 697:9, left: 0, right: 9223372036854775808
  • gpu_frexp_f64_exp_and_mant — 756:9, left: 0, right: 4605212093963042816
  • gpu_clamp_and_omod_per_instruction — 1074:9, left: 0.0, right: 0.3
  • gpu_f64_literal_high_word — 7035:13, left: 0.0, right: 2.5
  • gpu_valu_16_and_64_bit — 2707:9, left: 0, right: 3203351424, on v_add_f16 keeps the high half
  • gpu_float_compares_random — 6526:5, left: 25107, right: 0
  • also failing: gpu_f64_roots (894:5), gpu_f64_rounding_and_conversions (854:5), gpu_ldexp_f64 (952:5), gpu_f64_compares_with_nan (6232:5), gpu_f64_math_random

Head 01a236c: the same 12 all report SKIPPED …: no f64 and the process exits 0, printing no doubles in shaders on this GPU – skipping the f64 instructions. Reproduced on a second pass of gpu_f64_math_random, gpu_float_compares_random and gpu_f64_literal_high_word (0.05 s, 0.44 s, 0.04 s against 0.36-0.58 s when they run). Five controls unchanged on both sides, ok: gpu_valu_float_and_int, gpu_fract_f32_edges, gpu_ldexp_f32, gpu_atomic_fmin_fmax_negative_zero, gpu_dword_addtid_per_lane_addresses.

What this host's f64 fault actually is, which is worth having on the record for the skip. It is wrong values from f64 operands, not missing writes. gpu_float_compares_random prints the breakdown for one program: wave32 F32: 1600 lanes x 33 compares, 0 distinct failures, wave32 F16: 1600 lanes x 33 compares, 0 distinct failures, wave32 F64: 1600 lanes x 33 compares, 25107 distinct failures — with F64 CMPX LT(-1.00375e2, 7.3125e1) = false among them. The f32 and f16 halves of the same program compute correctly. That is a different fault from the 64-bit atomics, where a program holding one produces no writes at all (my probe readback note higher up in this thread).

One interaction, because it changed between heads of this PR. At 01a236c the two 64-bit-atomic tests are not gated and still fail here: gpu_atomic_fcmpswap_x2 tests.rs:4647:9, left: 4609434218613702656 (0x3FF8_0000_0000_0000, the test's own INIT, never replaced), right: 12682136550675316736; gpu_atomic_fmin_fmax_x2 4778:13, left: -inf, right: 42.5. In a tree that also carries #983's no_int64_atomics() gate — 47efa2e plus cherry-picks of #890 #957 #982 #983 #996 #1024 #787, measured today — both become SKIPPED … no 64-bit atomics / ok, and all 12 f64 tests skip as intended. So the two PRs cover different faults and neither skip hides the other's problem. That also matches @⁠us3r40456's 14 tests on the earlier head: 12 here plus the two that 8b73108 also gated before @⁠Lucasyudi moved them to the atomics gate.

Not tested: Windows — this machine has no Windows host. Counts, line numbers, timings and result codes only; no game data.

Host: macOS 27.2.1 (Apple silicon, M5 Pro, 48 GB), CrossOver 26 with D3DMetal, Rust 1.100.0, x86_64-pc-windows-gnullvm (LLVM-MinGW, clang 23.1.6), --release --locked. AI use: GPT-6 Luna built the trees, ran the tests and drafted this; the assertions, line numbers and timings are quoted from those runs.

**@⁠mikebuckets171** on GitHub · 2026-11-24 16:40 UTC · [original](https://github.com/xcl-dev/xcl/pull/787#issuecomment-7138024298) **#787 measured on a third Mac (M5 Pro, CrossOver 26 + D3DMetal): base `47efa2e` → head `01a236c`, each test in its own process.** **The host flag, from a plain D3D12 program (no XCL, reads no files):** `DoublePrecisionFloatShaderOps 0`, `OutputMergerLogicOp 1`, `MinPrecisionSupport 0x2` (16-bit), `ROVs 1`, `TypedUAVLoadAdditionalFormats 1`. So the premise holds here independently of the other two Mac reports. **Base `47efa2e`: all 12 tests the gate covers fail.** The gated set is 12, not 11 — `gpu_float_compares_random` is gated through its helper `float_compares_random()`, which a scan of the `#[test]` fns alone misses. Representative assertions: - `gpu_f64_class_compare` — `tests.rs:520:5`, `left: (0, 0)`, `right: (4294967295, 4294967295)` - `gpu_rndne_f64` — `697:9`, `left: 0`, `right: 9223372036854775808` - `gpu_frexp_f64_exp_and_mant` — `756:9`, `left: 0`, `right: 4605212093963042816` - `gpu_clamp_and_omod_per_instruction` — `1074:9`, `left: 0.0`, `right: 0.3` - `gpu_f64_literal_high_word` — `7035:13`, `left: 0.0`, `right: 2.5` - `gpu_valu_16_and_64_bit` — `2707:9`, `left: 0`, `right: 3203351424`, on `v_add_f16 keeps the high half` - `gpu_float_compares_random` — `6526:5`, `left: 25107`, `right: 0` - also failing: `gpu_f64_roots` (`894:5`), `gpu_f64_rounding_and_conversions` (`854:5`), `gpu_ldexp_f64` (`952:5`), `gpu_f64_compares_with_nan` (`6232:5`), `gpu_f64_math_random` **Head `01a236c`: the same 12 all report `SKIPPED …: no f64` and the process exits 0**, printing `no doubles in shaders on this GPU – skipping the f64 instructions`. Reproduced on a second pass of `gpu_f64_math_random`, `gpu_float_compares_random` and `gpu_f64_literal_high_word` (0.05 s, 0.44 s, 0.04 s against 0.36-0.58 s when they run). Five controls unchanged on both sides, `ok`: `gpu_valu_float_and_int`, `gpu_fract_f32_edges`, `gpu_ldexp_f32`, `gpu_atomic_fmin_fmax_negative_zero`, `gpu_dword_addtid_per_lane_addresses`. **What this host's f64 fault actually is, which is worth having on the record for the skip.** It is wrong values from f64 operands, not missing writes. `gpu_float_compares_random` prints the breakdown for one program: `wave32 F32: 1600 lanes x 33 compares, 0 distinct failures`, `wave32 F16: 1600 lanes x 33 compares, 0 distinct failures`, `wave32 F64: 1600 lanes x 33 compares, 25107 distinct failures` — with `F64 CMPX LT(-1.00375e2, 7.3125e1) = false` among them. The f32 and f16 halves of the same program compute correctly. That is a different fault from the 64-bit atomics, where a program holding one produces no writes at all (my probe readback note higher up in this thread). **One interaction, because it changed between heads of this PR.** At `01a236c` the two 64-bit-atomic tests are not gated and still fail here: `gpu_atomic_fcmpswap_x2` `tests.rs:4647:9`, `left: 4609434218613702656` (`0x3FF8_0000_0000_0000`, the test's own `INIT`, never replaced), `right: 12682136550675316736`; `gpu_atomic_fmin_fmax_x2` `4778:13`, `left: -inf`, `right: 42.5`. In a tree that also carries #983's `no_int64_atomics()` gate — `47efa2e` plus cherry-picks of #890 #957 #982 #983 #996 #1024 #787, measured today — both become `SKIPPED … no 64-bit atomics` / `ok`, and all 12 f64 tests skip as intended. So the two PRs cover different faults and neither skip hides the other's problem. That also matches @⁠us3r40456's 14 tests on the earlier head: 12 here plus the two that `8b73108` also gated before @⁠Lucasyudi moved them to the atomics gate. Not tested: Windows — this machine has no Windows host. Counts, line numbers, timings and result codes only; no game data. Host: macOS 27.2.1 (Apple silicon, M5 Pro, 48 GB), CrossOver 26 with D3DMetal, Rust 1.100.0, `x86_64-pc-windows-gnullvm` (LLVM-MinGW, clang 23.1.6), `--release --locked`. **AI use**: GPT-6 Luna built the trees, ran the tests and drafted this; the assertions, line numbers and timings are quoted from those runs.
Author
Owner

@⁠JJAutoCompare on GitHub · 2026-11-25 00:43 UTC · original

Intel Arc verification at 46695abf51ea2ceaae6b11eb4ed4f06440d5f383

Tested on Intel Arc A770 (driver 32.0.101.9175), Ryzen 7 3800X, Windows 11 build 26200.9974, Rust 1.100.0 MSVC debug, and DXC/DXIL 1.9.2609.5. The adapter reports DoublePrecisionFloatShaderOps=0. cargo test -p xcl --lib --no-run built successfully. I ran the resulting lib test binary in separate processes with XCL_ADAPTER=A770 and gpu::recomp::tests::<name> --exact --nocapture --test-threads=1.

  • gpu_f64_class_compare and gpu_valu_16_and_64_bit each emitted SKIPPED ...: no f64 and exited 0. These are two full skips.
  • gpu_ldexp_f32 passed without skips.
  • gpu_float_compares_random emitted a partial no f64 skip and ran F32 and F16. The F32 comparisons had zero distinct failures. F16 failed with 164 distinct subnormal discrepancies, reproduced on a rerun. This run confirms the FP64 gating while exposing a separate F16 issue.

Across the four first runs, libtest reported 3 passed, 1 failed, 0 ignored. The 3 include the two full skips above. #927 contains an overlapping capability probe and the same f64 gates, plus separate F16 tolerance and runtime fixes. The two heads conflict in runner.rs and tests.rs. Clean workspace baseline

Not tested the full suite or the PR base in this focused check. AI use Codex in T3 Code (gpt-6.2-sol) for test execution and reporting.

**@⁠JJAutoCompare** on GitHub · 2026-11-25 00:43 UTC · [original](https://github.com/xcl-dev/xcl/pull/787#issuecomment-7148801186) **Intel Arc verification at `46695abf51ea2ceaae6b11eb4ed4f06440d5f383`** **Tested** on Intel Arc A770 (driver `32.0.101.9175`), Ryzen 7 3800X, Windows 11 build `26200.9974`, Rust `1.100.0` MSVC debug, and DXC/DXIL `1.9.2609.5`. The adapter reports `DoublePrecisionFloatShaderOps=0`. `cargo test -p xcl --lib --no-run` built successfully. I ran the resulting lib test binary in separate processes with `XCL_ADAPTER=A770` and `gpu::recomp::tests::<name> --exact --nocapture --test-threads=1`. - `gpu_f64_class_compare` and `gpu_valu_16_and_64_bit` each emitted `SKIPPED ...: no f64` and exited 0. These are two full skips. - `gpu_ldexp_f32` passed without skips. - `gpu_float_compares_random` emitted a partial `no f64` skip and ran F32 and F16. The F32 comparisons had zero distinct failures. F16 failed with 164 distinct subnormal discrepancies, reproduced on a rerun. This run confirms the FP64 gating while exposing a separate F16 issue. Across the four first runs, libtest reported 3 passed, 1 failed, 0 ignored. The 3 include the two full skips above. #927 contains an overlapping capability probe and the same f64 gates, plus separate F16 tolerance and runtime fixes. The two heads conflict in `runner.rs` and `tests.rs`. [Clean workspace baseline](https://git.gtahub.st/github/xcl-dev--xcl/issues/42) **Not tested** the full suite or the PR base in this focused check. **AI use** Codex in T3 Code (`gpt-6.2-sol`) for test execution and reporting.
Author
Owner

@⁠Toons29 on GitHub · 2026-11-25 02:59 UTC · original

Regression run of 46695abf on the retail title, for this PR's Regression run section. Both blocks are from scripts/smoke.ps1 as printed, not edited: main on 4178e888, this PR on its head commit with no uncommitted changes, same title and time.

xcl-smoke v1
commit: 4178e888c0b5be50a2887eda45cdb832763b68a4
gpu: AMD Radeon RX 9070
title: game.exe
seconds: 60
exit: 0x0
frames shown: 1618 (PresentX 1618)
presents per 2 s (last 3): 61 60 60
device removals: 0
crashes: 0
peak commit: 14831 MB
xcl-smoke v1
commit: 46695abf51ea2ceaae6b11eb4ed4f06440d5f383
gpu: AMD Radeon RX 9070
title: game.exe
seconds: 60
exit: 0x0
frames shown: 1633 (PresentX 1634)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14816 MB

Against the limits in CONTRIBUTING.md: 101 % of main's frames, 100 % of its peak commit, no crash, no device removal.

AMD Radeon RX 9070 (RDNA4, driver 32.0.32029.2010), Ryzen 7 7800X3D, 32 GB, Windows 11 build 26300, Rust 1.100.0, cargo build --release -p xcl, 60 s, XCL_NETWORK=0. This is a regression check only: it does not show whether the run reaches the code this PR changes.

AI use: Claude Code (Claude Opus 5.5) built both trees and ran scripts/smoke.ps1; I checked the blocks before posting.

**@⁠Toons29** on GitHub · 2026-11-25 02:59 UTC · [original](https://github.com/xcl-dev/xcl/pull/787#issuecomment-7151477131) Regression run of `46695abf` on the retail title, for this PR's **Regression run** section. Both blocks are from `scripts/smoke.ps1` as printed, not edited: `main` on `4178e888`, this PR on its head commit with no uncommitted changes, same title and time. ``` xcl-smoke v1 commit: 4178e888c0b5be50a2887eda45cdb832763b68a4 gpu: AMD Radeon RX 9070 title: game.exe seconds: 60 exit: 0x0 frames shown: 1618 (PresentX 1618) presents per 2 s (last 3): 61 60 60 device removals: 0 crashes: 0 peak commit: 14831 MB ``` ``` xcl-smoke v1 commit: 46695abf51ea2ceaae6b11eb4ed4f06440d5f383 gpu: AMD Radeon RX 9070 title: game.exe seconds: 60 exit: 0x0 frames shown: 1633 (PresentX 1634) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14816 MB ``` Against the limits in CONTRIBUTING.md: 101 % of `main`'s frames, 100 % of its peak commit, no crash, no device removal. AMD Radeon RX 9070 (RDNA4, driver 32.0.32029.2010), Ryzen 7 7800X3D, 32 GB, Windows 11 build 26300, Rust 1.100.0, `cargo build --release -p xcl`, 60 s, `XCL_NETWORK=0`. This is a regression check only: it does not show whether the run reaches the code this PR changes. AI use: Claude Code (Claude Opus 5.5) built both trees and ran `scripts/smoke.ps1`; I checked the blocks before posting.
Author
Owner

@⁠Lucasyudi on GitHub · 2026-11-25 03:49 UTC · original

@⁠Toons29 thanks for the pairs here and on #1303, #1311 and #1313; pasted under Regression run in all four, with your hardware line. @⁠JJAutoCompare thanks for the A770 run: the F16 subnormal failures there come from a program with no f64 in it (float_compares_random builds one per type), so they are outside this PR; #927's F16 flush tolerance is the part that addresses them.

**@⁠Lucasyudi** on GitHub · 2026-11-25 03:49 UTC · [original](https://github.com/xcl-dev/xcl/pull/787#issuecomment-7152272458) @⁠Toons29 thanks for the pairs here and on #1303, #1311 and #1313; pasted under **Regression run** in all four, with your hardware line. @⁠JJAutoCompare thanks for the A770 run: the F16 subnormal failures there come from a program with no f64 in it (`float_compares_random` builds one per type), so they are outside this PR; #927's F16 flush tolerance is the part that addresses them.
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-25 11:08 UTC · original

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

  • cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)

Thanks!

**@⁠DavidM1911** on GitHub · 2026-11-25 11:08 UTC · [original](https://github.com/xcl-dev/xcl/pull/787#issuecomment-7160653065) Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.) 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/787/head:github-bot/gh-787'
git switch 'github-bot/gh-787'

Merge

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