runner: skip the exact exp2 case on Apple's Paravirtual device (re-opened #2641, closed by an accidental push) #2691
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2691"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-11-30T03:39:34Z.
Re-opened as a new pull request, because I closed the previous one by accident. The change is unchanged. The branch is now
2afbcef3c, one commit overmain:runner: skip the exact exp2 case on Apple's Paravirtual device. The rebased run is fully green:The interp carry is gone. The branch used to carry
a3b5ebea1(test(semantic): align computed-I/J f16 interp oracle…) to get pastsemantic-testsbeing red onmainfor that oracle.mainnow has the same edit asc717967d0, so the rebase drops it: the diff is two files,runtime/test/shaders/check.pyandscripts/run_gpu_tests.py, and the pull request no longer touchestests/semantic/test_interp_computed_ij_fallback.py. There is nothing left for #2566 to conflict with.What happened: I ran
git checkout fix/paravirtual-exp2-skipin a worktree where that branch is already checked out elsewhere, the checkout failed, and my next command pushed the ref it did have -origin/main- over the branch. The pull request then had no commits, so GitHub closed it, and it cannot be re-opened because its recorded head ismain. I restored the branch withgit push --force dc679d8fcand opened this one.What I should have done, and will: never push
HEADto a named branch without checking the branch name first. The push that did this printeddc679d8fc...1d22590b9in its summary and I read it after the fact; a singlegit rev-parse --abbrev-ref HEADbefore the push would have caught it.The change itself:
What and why
The
macosGPU job's only failure isps_exp_f32_denorm_rt, and the shape of the fix is decided by two measurements:OpExp2returns0x00FFFFFEfor0x01000000- two ulps low on 2^-125, so the bit-exact fixture cannot hold there;lorentsobin #2635.So the case is skipped by device rather than given a tolerance that would weaken it where it works:
wired next to
wide_pixel_skipinscripts/run_gpu_tests.py, reading thedevice:line the harness already prints beside thesubgroupline that skip reads.Tested
device:line does not;189 passed, 555 subtestsacross five runner/checker test files;macos=SUCCESSin the run of the previous pull request before I broke it - that is the hardware evidence.Not tested
On a MoltenVK device from here (Windows, RTX 4090) - and the runner result is the substitute.
AI-assisted: yes - DeepSeek v4.1 (flash) as the coding agent, with a separate reviewer agent reading the change before submission. Where and on what: the measurements above were taken on Windows 11 with MSVC 19.44.35226 on an RTX 4090 (NVIDIA driver 621.24) where a C++ or GPU path is involved; Python and docs cases need none of it.
Written with an AI assistant.
Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-11-30T03:45:44Z.
Checked by OreoFR on macOS 27.2.1, Apple M5, Python 3.12.16
-I, main1d22590b9, PR headdc679d8fc. MEASURED, partial (no GPU run: this Mac has no built runtime test programs):runtime/test/shaders/check.pyparavirtual_exp2_skip, called directly:ps_exp_f32_denorm_rt+device: Apple Paravirtual device→ the Skip;ps_exp_f32_denorm_rt+device: Apple M5→None(still judged on real Apple hardware, as the description says);None; nodevice:line →None.ps_exp_f32_denorm_rtis also the only MoltenVK failure onmain's ownmacosjob, so this would turn that job green.git merge-tree) ontests/semantic/test_interp_computed_ij_fallback.py, the SHADER-468 carry that #2566 already makes.AI-assisted: Claude Code
Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-11-30T04:57:09Z.
Thank you - the four helper cases are exactly the evidence I could not produce, because on this machine there is no MoltenVK device at all:
That last one matters most to me: a missing
device:line must not silently skip the case everywhere. The runner prints that line beside thesubgroupline the existing skip already reads, so the failure mode is "skip nothing" rather than "skip everything", and your check confirms the code does that rather than just intending it.Your context line is useful too -
ps_exp_f32_denorm_rtbeing the only MoltenVK failure onmain's ownmacosjob is the thing that makes this worth merging rather than fixing later.On the #2566 conflict: yes, and it is the duplicate I created, not a divergent change. This branch carries
a3b5ebea1- the commit #2633 carries - added only becausesemantic-testsis red onmainand every branch cut from it inherits that. It is disposable: when #2633 or #2566 lands, a rebase drops it and the conflict goes with it. merzleckeier and I went a round on exactly this earlier today (I initially misread the two copies as two different implementations; they are the same change modulo a parameter name), and the conclusion stands: whichever lands first, the other copy is dropped.If a maintainer would rather this pull request show the inherited red than carry a disposable commit, say so and I will remove it - it is one rebase per branch.
Written with an AI assistant.
Imported from ubiquitarianism/leonida. Originally posted by lorentsob on 2026-11-30T09:11:30Z.
GPU run on real Apple hardware, the piece the two checks above could not do: Apple M5 Max, macOS 27.2.1, MoltenVK 1.4.2. PR head
ec9434e78with currentmaindcba958e5merged in (clean), runtime rebuilt.scripts/run_gpu_tests.py --filter ps_exp_f32_denorm, 3 runs:ps_exp_f32_denormPASS4096/4096 pixels exactandps_exp_f32_denorm_rtPASS4096 pixels exact across 64 runtime-dependent inputs, 2/2 each time. Neither case is skipped: on real hardware the case is still judged, and it is still exact.vk_harnessprintsdevice: Apple M5 Max (subgroup 4..32)on stderr, andrun_cmdpasses stdout plus stderr asmsg, so the helper does see that line. On that outputparavirtual_exp2_skip("ps_exp_f32_denorm_rt", msg)returnsNone. On the same output with only the device name changed toApple Paravirtual device, it returns the Skip. So the line format the regex expects is the one the harness actually prints.tests/semantic/test_interp_computed_ij_fallback.pygives 9/9 OK with the PR and 2 failures onmain(test_p1lv_f16_computed_ij_uses_interpolated_attribute_not_vsrc2,test_perspective_fixture_branch_and_f16_halves), the same as #2633.Not checked here: the Paravirtual device itself, which only the runner has.
AI-assisted: yes.
Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-11-30T10:10:38Z.
Update by OreoFR: the conflict with #2566 I reported here is gone.
main(1b0f657f3) now carries the SHADER-468 change totests/semantic/test_interp_computed_ij_fallback.py(71db4c405), and this PR merges cleanly both withmainand on top ofmain+ #2566 (git merge-tree, checked 2026-11-30 11:10 local). Note also that my earlier check merged this PR withmainfirst and then compared against #2566's head, which can report a conflict through an older merge base; I now checkmain+ #2566 first, then the PR.AI-assisted: Claude Code
Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-30T16:28:34Z.
Ready to merge: the macOS virtual-GPU failure is excluded; independent verification passes on real Apple M5 hardware and on Linux/Windows checks. The PR is mergeable and no longer conflicts with #2566.