Repository navigation
docs: pin the 8/16-bit global store and d16 load row to measured gfx1100 words - #2860
bobcatchris wants to merge 2 commits into
Conversation
18c0246 to
ec824a8
Compare
|
Independently verified the checkable claims (Windows 11 Pro 10.0.26200): all hold.
The gfx1100 hardware measurement (13 kernels / 39 words) itself rests on RDNA3 hardware I don't have — this is a spelling/math verification, not a hardware one. Same caveat and confidence as my comments on #2813/#2812. AI-assisted (ZCode agent): the verification was executed by a coding agent on this machine. |
Kam471
left a comment
There was a problem hiding this comment.
All 13 table rows / 39 words recompute, and llvm-mc gfx1100 accepts global_load_d16_u8/_i8, _b16, _hi_* and global_store_short_d16_hi while rejecting the reversed spellings. But the row removes the blanket “Not GPU-verified” caveat even though concurrent byte merge and inactive-lane masking were not measured (the PR body admits this).
Please restore that caveat, or add the missing measurements. The rest of the row is accurate.
|
Docs tests pass and the merge is clean, but this conflicts with open #2119, which replaces the same row and the same final "Not GPU-verified" sentence ( Two things to fix regardless:
The body also says the change adds AI-assisted review, docs only. |
…100 words The sub-dword global row was still "Not GPU-verified". 13 raw kernels on an RX 7900 XTX show the byte/short stores truncating at the byte address (including one that crosses a dword), the _d16_hi stores taking the high half, and the d16 loads filling one half of vdst and keeping the other, with u8 zero-extending and i8 sign-extending to 16 bits.
ec824a8 to
06e3f7e
Compare
|
Restored in 237e4b4, scoped to what was actually measured: the row now says "Measured on native gfx1100 (single thread)" and keeps a Not GPU-verified caveat for the per-byte merge when two lanes write different bytes of one dword (a single-thread kernel cannot contend) and for inactive-lane masking. The 13 rows / 39 words and the gfx1100 spellings are unchanged. AI-assisted. |
|
Withdrawing this in favour of #2119 (@Vonsek, opened 16:02, earlier): it replaces the same row and adds the runtime GPU fixture, and only one of the two can merge cleanly. The caveat fix you asked for is in 237e4b4 in case its text is reused, and I've asked #2119 to carry the two unmeasured points and the gfx1100 evidence. AI-assisted. |
What and why
The "8/16-bit global stores and d16 loads" row still ended "Not GPU-verified." on
ec8ec4c9, and it makes several claims that only silicon can settle: that a 16-bit access crossing a dword is exact, that a store merges per byte, that_d16_hipicks the high half, and that the byte loads extend to 16 bits rather than 32. Measured now, 13 raw kernels on nativegfx1100(AMD Radeon RX 7900 XTX, Windows 11, driver 26.10.1) throughtools/hw_oracle, each seeding two dwords and reading both back.Seed for every case: dword 0
0xAABBCCDD, dword 10x55667788(bytesDD CC BB AA | 88 77 66 55).global_store_byte0xFFFFFFEF0xAABBEFDDglobal_store_byte0x0000007E0xAABBCC7Eglobal_store_short0x0000BEEF0xBEEFCCDDglobal_store_short0x000012340x34BBCCDD 0x55667712— crosses the dword exactlyglobal_store_short_d16_hi0xBBBB12340xAABBBBBB— the high halfglobal_store_byte_d16_hi0x005AFF120xAABB5ADD— that half's low byte,[23:16]Loads, with
vdstpreset to0xBBBBBBBBso the kept half is visible:global_load_d16_b160xBBBBCCDD/0xBBBBAABB/0xBBBB88AAglobal_load_d16_u80xBBBB00AA(zero-extended)global_load_d16_i80xBBBBFFAA(sign-extended)global_load_d16_hi_b160xCCDDBBBBglobal_load_d16_hi_u80x00AABBBB13 kernels, all 39 words as the row says.
GFX11 spellings
The byte loads are
global_load_d16_u8/global_load_d16_i8ongfx1100; the GFX10-lookingglobal_load_u8_d16andglobal_load_s8_d16are rejected by its assembler (invalid instruction), as isglobal_store_b16_d16_hi(the accepted form isglobal_store_short_d16_hi). The row now records both names, because a reader writing the load from the ISA description alone would otherwise try the rejected one first.Scope
Docs only, one row of
docs/design.md. No game files or keys: immediates and two seeded dwords. Two things the row states were not measured here: the per-byte atomic merge under concurrent lanes (a single-thread kernel cannot contend), and inactive-lane masking. Both stay as the row's description with the CPU tests, and the row's verification note is now specific about what was measured rather than a blanket "verified".AI-assisted.