Commit Graph

3 Commits

Author SHA1 Message Date
73e962741d interp_hw_probe: harden CLI parsing, oracle batch/word validation, and error lifecycle 2026-11-25 08:59:28 +01:00
a8852c035e interp_hw_probe: test the paths that only fail when the model is wrong
check_random and check_ties had match-only coverage, so a mutation in the
canary check or the tie direction stayed invisible. Adds a hand-computed
seven-word kernel result (all match), a wrong p1_f32 word and a p2_f16 whose
0xDEAD high half survived as mismatches, and a tie case where the stored word
equals the twice-rounded result, which must be reported bad.

test_no_oracle_is_77 opened the real oracle, so on a box with a working
gfx1036 target it would have run the probe and returned 2 instead of 77. It
now forces runner.Unavailable and checks the reason reaches stderr.

AI-assisted.

(cherry picked from commit 84dc36568709611c2e2d64e8cb4261dcd6814fe8)
2026-11-23 00:39:19 -03:00
f1670ccf0c interp_hw_probe: test the exact models behind the SHADER-430 GPU probe
The sibling probe vinterp_hw_probe.py has tests; this tool's CPU side had
none: the Fraction-to-f32/f16 rounding helpers (nearest even, subnormals,
midpoint ties, signed infinity), bit round trips, the sign-aware zero
comparator, the f32 denormal flush rule, the LDS attribute-word packing of
the kernel builders (determinism per seed, store/wait structure), the f16
tie checker over a hand-computed once-vs-twice case, and the CLI contract
(bad seeds, denorm32 choice, exit 77 without an AMD oracle).

(cherry picked from commit e8c86b154fa3113d5e5b3ec0af455d0d651107c9)
2026-11-23 00:39:19 -03:00