Repository navigation
docs: gfx1036 measurements for v_add/sub_nc_i16, ds_mskor_b32 and the 64-bit LDS bitwise ops - #4059
UlteriorMotive00 wants to merge 1 commit into
Conversation
… 64-bit LDS bitwise ops The three rows said "Not GPU-verified" with no hardware data. Measured on native RDNA2 (gfx1036) through tools/hw_oracle: 112 + 20 + 39 directed one-thread cases match each row's rule, pk16_diff agrees on 3000 programs, and two 32-lane collision kernels show the LDS ops run lane by lane: ds_mskor ends where the two-atomic emission would not, and ds_xor_rtn_b64 never returns a half-done pair. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Heads-up on one row: Small correction to the claim as well: that row already carried a native measurement ("Measured on native gfx1100: Either of these settles it, whichever you prefer:
Your |
|
Correction to my last sentence: #3208 does edit the For both rows the same two options work: either you keep the native gfx1036 words and include the fixture reference in the same sentence, or the fixtures keep the doc text and your words go in a follow-up. I do not mind rebasing mine; just tell me which way you want it and I will adjust #4045/#3208 to match. |
Kam471
left a comment
There was a problem hiding this comment.
Docs checks at 42f97ea7: test_docs_links.py 6 OK, test_docs_design_rows.py 2 OK, test_docs_list_items.py 2 OK, git diff --check clean.
The three rows it edits have matching CPU semantic coverage on this tree: test_valu_add_sub_nc_i16.py 4 OK, test_lds_mskor.py 4 OK, test_lds_bitwise_b64.py 6 OK. The new hardware sentences are scoped to gfx1036/driver 32.0.21042.62 and tools/hw_oracle, and the tables list exact counts/directions; I cannot reproduce the RDNA2 numbers on this NVIDIA host, but the claims are internally consistent with the existing translator tests. No blocking issue.
|
Content verified on Windows 11 / Python 3.13.0: the 20 docs cases (7 modules) pass, Needs a rebase: open #4045 rewrites the same Two content notes: the body says the rows "had no hardware measurement at all", but Approve after the rebase. AI-assisted review, no game files, no GPU. |
|
Thanks @YaBulochka, and you're right about the claim wording. On Please don't change #4045 or #3208. They were first, and their fixture references should stay as they are. Whichever of them lands before this one, I'll rebase #4059 onto it and keep your Thanks also @tupacfan04 and @Kam471 for the checks. AI-assisted (Claude Code). |
Three rows in
docs/design.mdsaid "Not GPU-verified." and had no hardware measurement at all. This PR measures them on native RDNA2: gfx1036, the Radeon iGPU of a Ryzen 7 9800X3D, Windows 11, driver 32.0.21042.62, throughtools/hw_oracle(ROCmrocm-sdk-core==10.0.0clang). Docs only.v_add_nc_i16,v_sub_nc_i16clamp, fourop_selforms including the destination half, the other half kept).pk16_diff.py --oracle translator,hw --ops v_add_nc_i16,v_sub_nc_i16 --programs 3000 --seed 1: 3000/3000ds_mskor_b32,ds_mskor_rtn_b32(M & ~DATA) | DATA2and return Mds_and/or/xor_b64(and_rtn_)vdstaliasing the data pairBoth LDS approximations, measured with 32 lanes on one address:
ds_mskor_rtn_b32(M = 0xABCD12FF, DATA = 0xFF, DATA2 = 1 << (lane & 7)): the hardware runs one lane at a time in lane order. Each lane gets the word the previous lane left, and the dword ends 0xABCD1280. The row's AND-then-OR emission would end at 0xABCD12FF. That is the row's stated approximation, now with numbers. I wrote it as expected and did not run this kernel through the translator.ds_xor_rtn_b64with (1 << lane) in both dwords: again lane order, and lane i returns 2^i − 1 in both words, so the hardware never returns a torn pair.Every case uses synthetic immediates and an LDS preset with a read-back. No game data.
Checked:
python -m unittest tests.test_docs_design_rows tests.test_docs_table_rows tests.test_docs_repo_paths tests.test_docs_cli_flags tests.test_docs_linkspasses.Claim: #3796 (comment)
Probe script (run from the repo root with
LEONIDA_HIP_DLLset)AI-assisted (Claude Code).
🤖 Generated with Claude Code