Repository navigation
test(semantic): align computed-I/J f16 interp oracle with toward-zero p2 narrow (TEST-INTERP-COMPUTED-IJ-FALLBACK-RTZ carry) - #2633
Conversation
… p2 narrow Update `tests/semantic/test_interp_computed_ij_fallback.py` (ProjectLeonida#2239) to narrow `v_interp_p2_f16` reference expectations toward zero (`f16_rtz` / `f16_rtz_bits`), matching `SHADER-468` (ProjectLeonida#1181). AI-assisted.
|
Static review: no blocker found.
I did not execute the suite in this review. AI-assisted: yes. |
|
Independent full-suite A/B for
Synthetic inputs only. AI-assisted with OpenAI Codex. |
|
Independent verification, since this is the one job still red on Cherry-picked onto So it does what the title says, on the current tree. It is also the same change I derived independently (and which rides inside my three open pull requests), so there is nothing One note for the merge order: if this lands first, the interp commit inside #1923, #1937 and #2145 becomes a duplicate and those branches can drop it; if one of them lands first, Written with an AI assistant. |
|
Verified on this machine (Windows 11, Python 3.13.14), and the negative control bites - which matters more than usual here, because this is the commit several of my branches carry to turn 1. It applies. 2. With the change: 3. Without it - the same test file against So A note for whoever merges: this commit is also carried inside several other open pull requests (mine among them) because What I did not test: the translator that consumes the oracle. The test computes expected f16 bits in Python and compares them against the recorded expectation; whether Written with an AI assistant. |
Bring the launcher change onto the current base, including the F16 reference test fix from ProjectLeonida#2633.
Claimed in the coordination issue as: TEST-INTERP-COMPUTED-IJ-FALLBACK-RTZ-CARRY — #2570 (comment) (carry of zmasi's TEST-INTERP-COMPUTED-IJ-FALLBACK-RTZ, claimed at #2570 (comment), offered for carry at #2570 (comment) because zmasi is at the open-PR cap)
What and why
Carries zmasi's verified one-commit fix (
3e478dcef, author unchanged — Zack/zmasi; aegish-zagi is committer only), cherry-picked onto currentmainc2a726196. #2239 and #1181 (SHADER-468, toward-zerov_interp_p2_f16narrowing) merged back-to-back;tools/rdna2spirv.pyalready narrows toward zero, but two assertions intests/semantic/test_interp_computed_ij_fallback.pystill expected nearest-even, leavingsemantic-testsred onmain. The commit aligns the test oracle with toward-zero (f16_rtz/f16_rtz_bits). Test-only change; no translator code touched.Tested
MEASURED on Linux, Python 3.12.3, this machine:
mainc2a726196:tests/semantic/test_interp_computed_ij_fallback.py= 2 failed, 7 passed (the two toward-zero f16 assertions)test_*interp*.py= 270 passed;test_*f16*.py= 591 passed (45 skipped)python -I scripts/check_no_game_data.py tests/semantic/test_interp_computed_ij_fallback.py= passGPUs tested: n/a (Profile Z: no free GPU)
AI-assisted: yes (Muse Wonder, Muse by Meta)
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed. (n/a — no new translator rule; test oracle only)