Tests: float rounding ops and fract's clamp below 1.0 on the GPU #650

Open
acaracargo wants to merge 1 commit from upstream-pr/655 into main
acaracargo commented 2026-11-24 02:56:01 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by acaracargo on 2026-11-24T02:56:01Z.


Adds GPU coverage for v_floor, v_ceil, v_trunc, v_rndne and v_fract in both f32 and f16, with 16 inputs each.

The cases cover:

  • Halfway values of both signs, nearest-even rounding and signed zero results.
  • Infinities and NaN.
  • Values past the last fraction bit.
  • Small negative inputs to fract, where the ISA clamps the result to the largest representable value below 1.0 (0x3F7FFFFF / 0x3BFF).

Previously, only fract of infinities and NaN had GPU coverage (#68).

The f16 fract case is particularly relevant to #111. For x = -2^-14, x - floor(x) is 1 - 2^-14 in f32, which rounds to nearest as 1.0 in f16. Switching to_f16_expr to round to nearest locally caused v_fract_f16 to return 0x3c00 instead of 0x3bff.

The test should catch this regression when the f16 rounding behavior is corrected.

What is in it

  • crates/xcl/src/gpu/recomp/tests.rs: gpu_float_rounding_ops.

Tested

  • NVIDIA GeForce RTX 4060 (32-lane waves only), driver 610.88; Intel Core i5-13400F; Windows 11 Pro 26300; Rust 1.100.0 x86_64-pc-windows-msvc; DXC 1.9.2602.17; debug.
  • cargo test --workspace -- --test-threads=4 on bc2537e: 685 passed, 0 failed, 41 ignored (main 9ce2070: 684 / 0 / 41).
  • SKIPPED: gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware (no wave64).
  • Removing the clamp in fract_f or switching to_f16_expr to round to nearest causes the test to fail (both checked locally, reverted).

Regression run

  • Test-only change, no runtime regression run.

Not tested

  • AMD GPUs and native wave64; console hardware.

AI use

  • Claude Code (Claude Opus 5.5) wrote the test and the original description and ran the tests and mutation checks. ChatGPT assisted with editing the PR description.
<!-- greyfinch-sync:ivall/xcl:issue:5465211100 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/655). Originally posted by [acaracargo](https://github.com/acaracargo) on 2026-11-24T02:56:01Z. --- Adds GPU coverage for `v_floor`, `v_ceil`, `v_trunc`, `v_rndne` and `v_fract` in both f32 and f16, with 16 inputs each. The cases cover: - Halfway values of both signs, nearest-even rounding and signed zero results. - Infinities and NaN. - Values past the last fraction bit. - Small negative inputs to fract, where the ISA clamps the result to the largest representable value below 1.0 (`0x3F7FFFFF` / `0x3BFF`). Previously, only fract of infinities and NaN had GPU coverage (#68). The f16 fract case is particularly relevant to #111. For x = -2^-14, x - floor(x) is 1 - 2^-14 in f32, which rounds to nearest as 1.0 in f16. Switching `to_f16_expr` to round to nearest locally caused `v_fract_f16` to return `0x3c00` instead of `0x3bff`. The test should catch this regression when the f16 rounding behavior is corrected. **What is in it** - `crates/xcl/src/gpu/recomp/tests.rs`: `gpu_float_rounding_ops`. **Tested** - NVIDIA GeForce RTX 4060 (32-lane waves only), driver 610.88; Intel Core i5-13400F; Windows 11 Pro 26300; Rust 1.100.0 `x86_64-pc-windows-msvc`; DXC 1.9.2602.17; debug. - `cargo test --workspace -- --test-threads=4` on `bc2537e`: 685 passed, 0 failed, 41 ignored (`main` `9ce2070`: 684 / 0 / 41). - SKIPPED: `gpu_geometry_wave32_prefix_count_over_a_mask`, `gpu_wave32_program_in_wave64_hardware` (no wave64). - Removing the clamp in `fract_f` or switching `to_f16_expr` to round to nearest causes the test to fail (both checked locally, reverted). **Regression run** - Test-only change, no runtime regression run. **Not tested** - AMD GPUs and native wave64; console hardware. **AI use** - Claude Code (Claude Opus 5.5) wrote the test and the original description and ran the tests and mutation checks. ChatGPT assisted with editing the PR description.
MonkeyPython commented 2026-11-24 07:05:45 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by MonkeyPython on 2026-11-24T03:05:27Z.


AMD / native-wave64 data point (the "Not tested" axis): gpu_float_rounding_ops (including fract's clamp below 1.0) passes on an AMD Raphael iGPU (RDNA2, native wave64) and on NVIDIA wave32.

Setup: Windows 11 Pro 26300, Ryzen 7 7800X3D, 32 GB; adapters: AMD Radeon(TM) Graphics (Raphael iGPU, wave64) and RTX 3080 Ti 12 GB (driver 621.01, wave32-only). PR head bc2537e, release.

Runs (cargo test -p xcl --release --lib gpu_float_rounding_ops):

  • XCL_ADAPTER=Radeon (selects the iGPU; the selector errors on no match, so a pass means it ran there): 1 passed / 0 failed, 0.11 s.
  • Default adapter (3080 Ti): 1 passed / 0 failed, 0.24 s.

The 16-bit fract clamp (0x3BFF) and rounding ops behave identically on native wave64 and the wave32 split path.

Not tested: discrete AMD GPUs, other titles.

AI use: Gentle Shell (Pi coding agent), model qwen4-max: ran the tests and wrote this report from their logs; a human reviews it before posting. No code changes.

<!-- greyfinch-sync:ivall/xcl:comment:7120761671 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/655#issuecomment-7120761671). Originally posted by [MonkeyPython](https://github.com/MonkeyPython) on 2026-11-24T03:05:27Z. --- AMD / native-wave64 data point (the "Not tested" axis): `gpu_float_rounding_ops` (including fract's clamp below 1.0) passes on an AMD Raphael iGPU (RDNA2, native wave64) and on NVIDIA wave32. **Setup:** Windows 11 Pro 26300, Ryzen 7 7800X3D, 32 GB; adapters: AMD Radeon(TM) Graphics (Raphael iGPU, wave64) and RTX 3080 Ti 12 GB (driver 621.01, wave32-only). PR head `bc2537e`, release. **Runs (`cargo test -p xcl --release --lib gpu_float_rounding_ops`):** - `XCL_ADAPTER=Radeon` (selects the iGPU; the selector errors on no match, so a pass means it ran there): **1 passed / 0 failed**, 0.11 s. - Default adapter (3080 Ti): **1 passed / 0 failed**, 0.24 s. The 16-bit fract clamp (`0x3BFF`) and rounding ops behave identically on native wave64 and the wave32 split path. **Not tested:** discrete AMD GPUs, other titles. **AI use:** Gentle Shell (Pi coding agent), model qwen4-max: ran the tests and wrote this report from their logs; a human reviews it before posting. No code changes.
MesshM commented 2026-11-24 07:05:49 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by MesshM on 2026-11-24T03:18:20Z.


Test run of bc2537e70c61cfe287750dd804f56e4ab06e350d on AMD RDNA4 (native wave64). I merged it onto current main 63cdc25 locally (clean merge) and tested that tree.

Tested

  • AMD Radeon RX 9060 XT 16 GB (RDNA4, native wave64), driver 32.0.32029.2010; Ryzen 7 5700X, 64 GB RAM, Windows 11 Pro build 26200, Rust 1.100.0 stable-x86_64-pc-windows-msvc, debug
  • cargo build --workspace + cargo test --workspace -- --test-threads=4 on the merge: 693 passed, 0 failed, 41 ignored, exit code 0; xcl lib tests 653 passed, 0 failed, 21 ignored
  • 0 SKIPPED; gpu_float_rounding_ops passes, including fract's clamp to 0x3F7FFFFF / 0x3BFF.

Review: fract of ±inf and NaN gives NaN, rndne takes the even neighbour on halves, and the sign of a zero result is compared, all as in the ISA. This adds RDNA4 next to the RDNA2 iGPU result above.

Not tested: no retail title (not needed for a test-only change), release build; the PR's head on its old base was not run, only its merge onto main.

Run and review by Claude Code (Claude Opus 5.5) on this machine; the review points were checked against the code.

<!-- greyfinch-sync:ivall/xcl:comment:7120964122 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/655#issuecomment-7120964122). Originally posted by [MesshM](https://github.com/MesshM) on 2026-11-24T03:18:20Z. --- Test run of `bc2537e70c61cfe287750dd804f56e4ab06e350d` on AMD RDNA4 (native wave64). I merged it onto current `main` `63cdc25` locally (clean merge) and tested that tree. **Tested** - AMD Radeon RX 9060 XT 16 GB (RDNA4, native wave64), driver 32.0.32029.2010; Ryzen 7 5700X, 64 GB RAM, Windows 11 Pro build 26200, Rust 1.100.0 `stable-x86_64-pc-windows-msvc`, debug - `cargo build --workspace` + `cargo test --workspace -- --test-threads=4` on the merge: **693 passed, 0 failed, 41 ignored**, exit code 0; `xcl` lib tests 653 passed, 0 failed, 21 ignored - **0 `SKIPPED`**; `gpu_float_rounding_ops` passes, including fract's clamp to 0x3F7FFFFF / 0x3BFF. **Review:** `fract` of ±inf and NaN gives NaN, `rndne` takes the even neighbour on halves, and the sign of a zero result is compared, all as in the ISA. This adds RDNA4 next to the RDNA2 iGPU result above. **Not tested:** no retail title (not needed for a test-only change), release build; the PR's head on its old base was not run, only its merge onto `main`. Run and review by Claude Code (Claude Opus 5.5) on this machine; the review points were checked against the code.
lordon1a commented 2026-11-24 07:05:56 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by lordon1a on 2026-11-24T03:38:06Z.


Independent GPU test report on bc2537e:

Tested

  • Hardware: NVIDIA GeForce RTX 3070 Ti Laptop GPU (driver 616.64, wave32, SM 6.6), Intel i7-12700H, Windows 11 Home 26H2 (build 26200), rustc 1.100.0 (x86_64-pc-windows-gnullvm), debug build, DXC 1.9.2609.5 (01b62ad4)
  • Command: cargo test -p xcl --lib gpu_float_rounding_ops -- --nocapture
  • Result: 1 passed, 0 failed, 0 ignored in 0.73s (gpu::recomp::tests::gpu_float_rounding_ops ok)

Not tested

  • AMD / wave64, Intel GPU, retail title

AI use

  • Antigravity (Google DeepMind agent) — fetched bc2537e in a detached worktree, audited the diff, ran the GPU test, and posted this report.
<!-- greyfinch-sync:ivall/xcl:comment:7121279394 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/655#issuecomment-7121279394). Originally posted by [lordon1a](https://github.com/lordon1a) on 2026-11-24T03:38:06Z. --- Independent GPU test report on `bc2537e`: **Tested** - Hardware: NVIDIA GeForce RTX 3070 Ti Laptop GPU (driver `616.64`, wave32, SM 6.6), Intel i7-12700H, Windows 11 Home 26H2 (build 26200), `rustc 1.100.0` (`x86_64-pc-windows-gnullvm`), debug build, DXC `1.9.2609.5` (`01b62ad4`) - Command: `cargo test -p xcl --lib gpu_float_rounding_ops -- --nocapture` - Result: **1 passed, 0 failed, 0 ignored** in `0.73s` (`gpu::recomp::tests::gpu_float_rounding_ops` ok) **Not tested** - AMD / wave64, Intel GPU, retail title **AI use** - Antigravity (Google DeepMind agent) — fetched `bc2537e` in a detached worktree, audited the diff, ran the GPU test, and posted this report.
JJAutoCompare commented 2026-11-25 07:05:34 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by JJAutoCompare on 2026-11-25T06:30:15Z.


Empirical test report (bc2537e7)

Hardware / environment

  • Commit bc2537e70c61cfe287750dd804f56e4ab06e350d, verified at detached HEAD.
  • Intel Arc A770 Graphics, driver 32.0.101.9175. AMD Ryzen 7 3800X 8-Core Processor. Windows 11 Enterprise Evaluation, build 26200 (10.0.26200).
  • Rust 1.100.0 (0ef1bc386 2026-11-09), x86_64-pc-windows-msvc, unoptimized test profile. DXC 1.9.2609.5 (01b62ad4), DXIL 1.9.2609.5 as reported by the GPU test.

Commands and results

  • cargo test -p xcl --lib --no-run exited 0 in 37.37 s outside the Arc lock. It compiled the library test executable and ran no tests.
  • Focused invocation below uses the Arc lock wrapper as $arcLockScript and the executable reported by Cargo as $testExe.
$env:XCL_ADAPTER = 'A770'
$env:RUST_TEST_NOCAPTURE = '1'
& $arcLockScript -Test {
    & $testExe gpu::recomp::tests::gpu_float_rounding_ops --exact --nocapture --test-threads=1
}
  • The wrapper acquired and released the lock and exited 0. Libtest reported 1 passed, 0 failed, 0 ignored, 0 measured, and 665 filtered out in 1.99 s. The captured output contained 0 case-sensitive lines beginning with SKIPPED .

Observed behavior

The PR adds one test covering floor, ceil, truncation, nearest-even rounding, and fract in f32 and f16. Both formats matched the expected results on all 16 input cases, including ties of both signs, signed zero, infinities, and NaN. For the small negative inputs, fract matched the largest representable value below 1.0 in each format (f32 0x3F7FFFFF, f16 0x3BFF).

Not tested

Full GPU workspace suite and game smoke runs were omitted.

AI use

Verified with T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high). Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against pr655-focused.log and published.

<!-- greyfinch-sync:ivall/xcl:comment:7154857645 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/655#issuecomment-7154857645). Originally posted by [JJAutoCompare](https://github.com/JJAutoCompare) on 2026-11-25T06:30:15Z. --- ### Empirical test report (bc2537e7) **Hardware / environment** - Commit `bc2537e70c61cfe287750dd804f56e4ab06e350d`, verified at detached HEAD. - Intel Arc A770 Graphics, driver 32.0.101.9175. AMD Ryzen 7 3800X 8-Core Processor. Windows 11 Enterprise Evaluation, build 26200 (10.0.26200). - Rust 1.100.0 (0ef1bc386 2026-11-09), x86_64-pc-windows-msvc, unoptimized test profile. DXC 1.9.2609.5 (01b62ad4), DXIL 1.9.2609.5 as reported by the GPU test. **Commands and results** - `cargo test -p xcl --lib --no-run` exited 0 in 37.37 s outside the Arc lock. It compiled the library test executable and ran no tests. - Focused invocation below uses the Arc lock wrapper as `$arcLockScript` and the executable reported by Cargo as `$testExe`. ```powershell $env:XCL_ADAPTER = 'A770' $env:RUST_TEST_NOCAPTURE = '1' & $arcLockScript -Test { & $testExe gpu::recomp::tests::gpu_float_rounding_ops --exact --nocapture --test-threads=1 } ``` - The wrapper acquired and released the lock and exited 0. Libtest reported 1 passed, 0 failed, 0 ignored, 0 measured, and 665 filtered out in 1.99 s. The captured output contained 0 case-sensitive lines beginning with `SKIPPED `. **Observed behavior** The PR adds one test covering floor, ceil, truncation, nearest-even rounding, and fract in f32 and f16. Both formats matched the expected results on all 16 input cases, including ties of both signs, signed zero, infinities, and NaN. For the small negative inputs, fract matched the largest representable value below 1.0 in each format (f32 `0x3F7FFFFF`, f16 `0x3BFF`). **Not tested** Full GPU workspace suite and game smoke runs were omitted. **AI use** Verified with T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high). Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against pr655-focused.log and published.
DavidM1911 commented 2026-11-25 13:05:08 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T12:31:31Z.


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!

<!-- greyfinch-sync:ivall/xcl:comment:7162491690 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/655#issuecomment-7162491690). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-25T12:31:31Z. --- 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!
github-actions[bot] commented 2026-11-29 07:42:33 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-29T07:42:33Z.


Nothing has happened on this PR for 3 days, so it is marked stale and will be closed in 4 days. A push or a comment takes the mark off: rebase it onto main if it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.

<!-- greyfinch-sync:ivall/xcl:comment:7252640931 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/655#issuecomment-7252640931). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-11-29T07:42:33Z. --- Nothing has happened on this PR for 3 days, so it is marked `stale` and will be closed in 4 days. A push or a comment takes the mark off: rebase it onto `main` if it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.
brainhay5 commented 2026-11-30 08:50:53 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by brainhay5 on 2026-11-30T08:50:53Z.


merge-check claim
head: bc2537e70c

<!-- greyfinch-sync:ivall/xcl:comment:7273418349 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/655#issuecomment-7273418349). Originally posted by [brainhay5](https://github.com/brainhay5) on 2026-11-30T08:50:53Z. --- merge-check claim head: bc2537e70c61cfe287750dd804f56e4ab06e350d
brainhay5 commented 2026-11-30 08:56:22 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by brainhay5 on 2026-11-30T08:56:22Z.


merge-check
base: d52ff48caa
head: bc2537e70c
merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2876 passed, 2 failed, 51 ignored; 29 SKIPPED lines

failing: test_title_runs_and_game_folder_is_untouched
review: automated overnight check — diff inspected for safety only (no build/CI/toolchain/script changes, no process/network/runtime-loading code); no duplicate search performed; no line-by-line code review.
performance: not assessed beyond the suite.
verdict: safe to merge
hardware / tool and model: RTX 5070 Ti 16 GB, driver 610.88 (32.0.16.1088); Ryzen 7 5800X3D, 64 GB; Windows 11 22631; OpenCode agent, DeepSeek V4.1 Flash 1017

correction: this check first reported the PR as "not yet" because of a test failure that is not the PR's. The base-comparison step failed to run (test names contain a double colon, not a legal Windows filename), so an empty read was mistaken for "passes on base". gpu::dxil::msaa_tests::gpu_direct_image_get_resinfo_d16 fails on base d52ff48c by itself (verified separately with the same command: "assertion failed: 2D D16 resinfo clobbered v2/v3"). Verdict corrected. Apologies for the noise.

<!-- greyfinch-sync:ivall/xcl:comment:7273531176 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/655#issuecomment-7273531176). Originally posted by [brainhay5](https://github.com/brainhay5) on 2026-11-30T08:56:22Z. --- merge-check base: d52ff48caade1f5350d513bfffd370396dadfeb6 head: bc2537e70c61cfe287750dd804f56e4ab06e350d merge: clean build: cargo build --workspace -> ok tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2876 passed, 2 failed, 51 ignored; 29 SKIPPED lines failing: test_title_runs_and_game_folder_is_untouched review: automated overnight check — diff inspected for safety only (no build/CI/toolchain/script changes, no process/network/runtime-loading code); no duplicate search performed; no line-by-line code review. performance: not assessed beyond the suite. verdict: safe to merge hardware / tool and model: RTX 5070 Ti 16 GB, driver 610.88 (32.0.16.1088); Ryzen 7 5800X3D, 64 GB; Windows 11 22631; OpenCode agent, DeepSeek V4.1 Flash 1017 correction: this check first reported the PR as "not yet" because of a test failure that is not the PR's. The base-comparison step failed to run (test names contain a double colon, not a legal Windows filename), so an empty read was mistaken for "passes on base". `gpu::dxil::msaa_tests::gpu_direct_image_get_resinfo_d16` fails on base d52ff48c by itself (verified separately with the same command: "assertion failed: 2D D16 resinfo clobbered v2/v3"). Verdict corrected. Apologies for the noise.
BBareth commented 2026-11-30 10:10:27 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by BBareth on 2026-11-30T10:10:27Z.


merge-check claim
head: bc2537e70c

<!-- greyfinch-sync:ivall/xcl:comment:7275229746 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/655#issuecomment-7275229746). Originally posted by [BBareth](https://github.com/BBareth) on 2026-11-30T10:10:27Z. --- merge-check claim head: bc2537e70c61cfe287750dd804f56e4ab06e350d
BBareth commented 2026-11-30 10:22:36 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by BBareth on 2026-11-30T10:22:36Z.


merge-check
base: 9dfbe3ea66
head: bc2537e70c
merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2886 passed, 1 failed, 51 ignored; failing: gpu::dxil::msaa_tests::gpu_direct_image_get_resinfo_d16, which fails on the base alone too (base: 2885 passed, 1 failed, 51 ignored, 28 SKIPPED lines). 28 SKIPPED lines, as on the base. The new test gpu_float_rounding_ops passed.
review: no blocking finding; test-only, one file, read in full. One GPU test of v_floor / v_ceil / v_trunc / v_rndne / v_fract in f32 and f16 on edge inputs (halves of both signs, signed zero results, infinities, NaN, values past the last fraction bit, and fract of a small negative value clamping below 1.0). Overlaps #739 for f32 ceil / trunc / rndne, with different inputs and the f16 forms and fract added; not a duplicate, but whoever merges both gets those three f32 ops tested twice.
performance: none; tests only.
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:7275504754 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/655#issuecomment-7275504754). Originally posted by [BBareth](https://github.com/BBareth) on 2026-11-30T10:22:36Z. --- merge-check base: 9dfbe3ea6653a9c76ef3ea0d66187a4b5407483b head: bc2537e70c61cfe287750dd804f56e4ab06e350d merge: clean build: cargo build --workspace -> ok tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2886 passed, 1 failed, 51 ignored; failing: gpu::dxil::msaa_tests::gpu_direct_image_get_resinfo_d16, which fails on the base alone too (base: 2885 passed, 1 failed, 51 ignored, 28 SKIPPED lines). 28 SKIPPED lines, as on the base. The new test `gpu_float_rounding_ops` passed. review: no blocking finding; test-only, one file, read in full. One GPU test of `v_floor` / `v_ceil` / `v_trunc` / `v_rndne` / `v_fract` in f32 and f16 on edge inputs (halves of both signs, signed zero results, infinities, NaN, values past the last fraction bit, and fract of a small negative value clamping below 1.0). Overlaps #739 for f32 ceil / trunc / rndne, with different inputs and the f16 forms and fract added; not a duplicate, but whoever merges both gets those three f32 ops tested twice. performance: none; tests only. 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.
Foniass commented 2026-12-01 03:53:58 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T03:53:58Z.


Triage (#1607) – head bc2537e

There is partial overlap. Main's gpu_fract_f32_edges already covers v_fract_f32 at its edges. #739 tests v_ceil/trunc/rndne_f32, #1227 tests the f16 rounding ops, and #1672 tests f32 floor/ceil/trunc/rndne, each as part of larger tests. This PR is the only one that checks all five ops in both f32 and f16, including the sign of zero results and the f16 fract clamp, and it is the earliest of them.
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:7300175254 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/655#issuecomment-7300175254). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T03:53:58Z. --- **Triage (#1607)** – head bc2537e There is partial overlap. Main's `gpu_fract_f32_edges` already covers `v_fract_f32` at its edges. #739 tests `v_ceil/trunc/rndne_f32`, #1227 tests the f16 rounding ops, and #1672 tests f32 floor/ceil/trunc/rndne, each as part of larger tests. This PR is the only one that checks all five ops in both f32 and f16, including the sign of zero results and the f16 fract clamp, and it is the earliest of them. 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.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/655:upstream-pr/655'
git switch 'upstream-pr/655'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/655'
git switch 'upstream-pr/655'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/655'
git switch 'upstream-pr/655'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/655'
git switch 'main'
git merge --squash 'upstream-pr/655'
git switch 'main'
git merge --ff-only 'upstream-pr/655'
git switch 'main'
git merge 'upstream-pr/655'
git push origin 'main'
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!650
No description provided.