Repository navigation
docs: pin the 8/16-bit global store and d16 load row to measured gfx1100 - #4161
bobcatchris wants to merge 3 commits into
Conversation
|
Reviewed on Linux: docs-only hardware pin — the row moves to the gfx1100 measurement consistently with the other hw_oracle-pinned rows, tools/hw_oracle is present in the tree, and the case counts and bit patterns are internally consistent with the model the row already documented. The native measurements stand on the author's bench (no AMD hardware on this side). AI-assisted: yes. |
…1100 16 cases on gfx1100 use the output buffer as scratch memory: byte and short stores change only the addressed bytes, the d16_hi forms take the data VGPR's high half, both dword-crossing accesses are exact, and the d16 loads fill one half of vdst and keep the other, with ubyte zero-extending and sbyte sign-extending.
7260590 to
6b5fc7f
Compare
|
Tested 6b5fc7f merged with main 98fa503 on Linux (WSL2), Python 3.12.16: pass, one concern
|
|
@kapitche fixed at AI-assisted. |
|
Code read of
Defect, Suggested fix: name the op in the example, " |
|
@abilliontokens fixed at AI-assisted. |
|
Re-check of my earlier comment #4161 (comment) (tested 6b5fc7f). Tested c2b78a3 merged with main 3faac55 on Linux (WSL2), Python 3.12.16: pass
|
|
Tested c2b78a3 merged with main 3faac55 on Linux (WSL2), Python 3.12.16: pass. |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> # Conflicts: # docs/design.md
|
Closing as superseded. That row has been edited since my base, so re-anchoring my copy would drop the newer text for a cosmetic dedupe. Nothing to merge. AI-assisted. |
Row
8/16-bit global stores and d16 loadswas CPU-checked only (not GPU-verified).Measured natively on an RX 7900 XTX (
gfx1100, driver 26.10.1) throughtools/hw_oracle, 16 cases, using the oracle's own output buffer as the scratch memory: each kernel seeds four dwords, runs one op, and the runner reads six dwords back (a load'svdstis parked at offset 16). The expected words are the documented rule written out by hand, not the translator's output.All 16 match:
global_store_b8writes only the low byte of the data VGPR (0x1234ffabstores0xab) andglobal_store_b16only the low half; the rest of the buffer is untouched.global_store_d16_hi_b16stores the data VGPR's high half (0x12340000at offset 0 turns0x11223344into0x11221234;0x5678ffffat offset 2 gives0x56783344, so the low half is ignored).0x11223344/0x55667788become0xfe223344/0x556677ca.global_load_ubyte_d16/_sbyte_d16fill the low 16 bits ofvdstand keep the other half: from a0xbeef0000vdst, byte0x85gives0xbeefff85(sign-extended to 16 bits) and0x7fgives0xbeef007f; from0xbeffffff, byte0x00gives0xbeff0000.global_load_short_d16/_hifill the low/high 16 bits and keep the rest (0xbeef1122,0x1122beef), and both crossing loads at offset 3 are exact (0xbeef8811, and0x8811into the high half with the low half kept).Three of my first-pass expectations were wrong about byte order and about which half of
vdstsurvives; the hardware corrected them, and the numbers above are the measured ones. Not measured here: an inactive lane and lane merging inside one dword (this probe runs one lane).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,test_docs_table_rows.py: 14 passed. No game data, synthetic operands only. AI-assisted.