Repository navigation
docs: pin the v_fmamk_f16 and v_fmaak_f16 row to measured gfx1100 - #4141
Conversation
The row was CPU-checked only. 17 cases on gfx1100 confirm the print order, one rounding to f16 and the kept high half, and add that f16 VALU keeps denormals (the LDS float adder flushes them), quiet the sNaN with its payload and give the negative default NaN for inf + -inf.
|
Tested at the head on Windows 11 / Python 3.13.0: 25 docs tests with 6 subtests, the cited Hold this until #4137 lands, or drop the cross-reference: Approve in that order. AI-assisted review, docs only. |
|
Tested f325308 merged with main 3faac55 on Linux (WSL2), Python 3.12.16: pass. |
Row
v_fmamk_f16,v_fmaak_f16was CPU-checked againstv_fma_f16with K in a VGPR but not GPU-verified.Measured natively on an RX 7900 XTX (
gfx1100, driver 26.10.1) throughtools/hw_oracle, 17 cases, one kernel each: the destination starts as0xbeef0000so the kept high half is visible, and the expected word is one exact-rational binary16 multiply-add rounded once to nearest even, computed in the probe from the documented rule rather than read from the translator.fmamk=S0 * K + S1andfmaak=S0 * S1 + Kin the printed operand order, one rounding only (the exact 3.0029296875 of(1+2^-10)*3lands on the tie's even0x4202in a single step), overflow to+infat65504*2, and the result replaces the low half while the high half keeps0xbeef. 13/13 such cases matched.0x0001*1 + 0x0001gives0x0002), unlike the LDS float adder measured in docs: pin the LDS ds_add_f32 rows to measured gfx1100 flush-to-zero #4137, which flushes them — both rows now say so.0x7c01→0x7e01), a qNaN passes through, andinf + -infgives the negative default0xfe00.Docs-only: one row of
docs/design.md(1 insertion, 1 deletion).tests/test_docs_design_rows.py,test_docs_links.py,test_docs_list_items.py,test_docs_repo_paths.py: 12 passed. No game data, synthetic operands only. AI-assisted.