Repository navigation
runner: skip the exact exp2 case on Apple's Paravirtual device (re-opened #2641, closed by an accidental push) - #2691
Conversation
|
Checked by OreoFR on macOS 27.2.1, Apple M5, Python 3.12.16
AI-assisted: Claude Code |
dc679d8 to
ec9434e
Compare
|
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 Your context line is useful too - On the #2566 conflict: yes, and it is the duplicate I created, not a divergent change. This branch carries 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. |
|
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
Not checked here: the Paravirtual device itself, which only the runner has. AI-assisted: yes. |
|
Update by OreoFR: the conflict with #2566 I reported here is gone. AI-assisted: Claude Code |
That device's OpExp2 lands two ulps low on 2^-125, so the bit-exact fixture cannot hold there; real Apple hardware returns the exact pattern (M5 Max, MoltenVK 1.4.2, passes the same case), which is why this skips by device instead of widening the check for everyone. The skip reads the device line the harness already prints beside the subgroup line that wide_pixel_skip reads, so it needs no new plumbing. Written with an AI assistant.
ec9434e to
2afbcef
Compare
|
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. |
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 shaders: allow two ulps of OpExp2 in the denorm fixture (the macOS GPU job's last red) #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.