Repository navigation
feat(hip): a caps table from RDNA2 to RDNA4, keyed by exact gfx name - #609
Merged
Merged
Conversation
The runtime and the affine row kernel need no change: the reduction is 32 lanes wide on any wave size, and the loader takes only the device's exact object. On a Radeon PRO W7800 (gfx1100), hip-gpu-test passes 16/16 and hip-affine-test 22/22; a gfx1151 object on it is refused with UnsupportedArchitecture.
Each generation's row lists its parts and the instructions kernels test (dot2 f16/bf16, sdot4/8, the WMMA layout, the activation type); kernels will read these, never the GPU's name. -Dhip-arch now takes any exact name in the table, and the GPU test checks the device's own name is in it. On a W7800 (gfx1100): hip-gpu-test 19/19, hip-affine-test 22/22 with its bits unchanged.
This was referenced Oct 10, 2026
Closed
8 tasks done
8 tasks done
Owner
|
Thank you, @BlivionIaG. The caps table is merged into main (8ca6046) on top of #607, your commit as it was, and it ships in 1.0.6. Kernels reading what a card can do from one table keyed by exact gfx name, with target-feature suffixes refused at build time, is the right footing for the next slices of #491. The GPU test that checks the device's own name against the table will catch a missing row on its first run. |
philip-pentatonic
pushed a commit
to machinegenieorg/TensorFold
that referenced
this pull request
Oct 10, 2026
This was referenced Oct 12, 2026
BlivionIaG
pushed a commit
to BlivionIaG/TensorFold
that referenced
this pull request
Oct 20, 2026
… by exact gfx name
BlivionIaG
pushed a commit
to BlivionIaG/TensorFold
that referenced
this pull request
Oct 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this changes
A caps table from RDNA2 to RDNA4 (
zig/src/hip/caps.zig), the caps-table slice tracked in #491. One row a generation lists its parts by exact gfx name and the instructions kernels test: dot2 f16/bf16, sdot4/8, the WMMA layout (none, gfx11, gfx12) and the activation type. Kernels will read these, never the GPU's name.All are wave32 with sdot4/sdot8.
-Dhip-archtakes any exact name in the table; a name outside it, or with target features (gfx1151:xnack-), stops the build with a pointer to the table.Stacks on #607 (its one commit is included here until it lands); review the last commit.
Receipt
mainat c37d0a4 (+ build(hip): -Dhip-arch accepts gfx1030 (RDNA2) and gfx1100 (RDNA3) #607), head 5d2bb92. Zig 0.17.0, HIP 7.14.60850 (TheRock), Linux 7.1.7.hip-affine-testpasses unchanged on both GPUs below.hip-host-test30/30,hip-gpu-test19/19 (Add model-free Zig HIP runtime and GPU qualification #463's 16 and the table's 3),hip-affine-test22/22.hip-gpu-test19/19,hip-affine-test22/22.gfx1037andgfx1151:xnack-stop the build;gfx1101builds.zig build test test-golden -Dcpu=apple_m1133/133 steps; Linuxzig build test31/31 steps, 297/297 tests.zig fmt --checkclean.lean_check.py: 544 problems, the same asmain.Checklist
"draft": false, a resumed prompt equals a fresh one, and concurrent equals solo. (No model path touched.)