Skip to content

build(hip): -Dhip-arch accepts gfx1030 (RDNA2) and gfx1100 (RDNA3) - #607

Merged
ashhart merged 1 commit into
ashhart:mainfrom
BlivionIaG:hip-rdna2-3
Oct 10, 2026
Merged

ashhart merged 1 commit into
ashhart:mainfrom
BlivionIaG:hip-rdna2-3

Conversation

@BlivionIaG

@BlivionIaG BlivionIaG commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

What this changes

-Dhip-arch accepts gfx1030 (RDNA2) and gfx1100 (RDNA3) beside gfx1150, gfx1151 and gfx1201, the first slice tracked in #491. 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 code object.

Receipt

  • Environment: base main at c37d0a4, head b69f009. Zig 0.17.0, HIP 7.14.60850 (TheRock), Linux 7.1.7.
  • Exactness: hip-affine-test (pinned outputs, sensitive rows, float64 bound) passes unchanged on both GPUs below.
  • Decode and prompt speed: not applicable (no model path).
  • Tests run, fresh Zig cache:
    • Radeon PRO W7800 (gfx1100), -Dhip-arch=gfx1100: hip-gpu-test 16/16, hip-affine-test 22/22.
    • Radeon PRO V620 (gfx1030), -Dhip-arch=gfx1030: hip-gpu-test 16/16, hip-affine-test 22/22.
    • Fails before the change: -Dhip-arch=gfx1100 or gfx1030 stops the build with "unsupported HIP probe architecture".
    • Negative control: a gfx1151 object on the W7800 and a gfx1100 object on the V620 are refused with UnsupportedArchitecture.
    • macOS: zig build test test-golden -Dcpu=apple_m1 133/133 steps; Linux zig build test 31/31 steps, 294/294 tests. zig fmt --check clean. lean_check.py: 544 problems, the same as main.
  • Not run, and why: gfx1031-1036 and gfx1101-1103 (no hardware; not added); Metal and CUDA (sources untouched).

Checklist

  • Every token still goes through the lane rounds. No serial path, and nothing that needs drafts off. (No model path touched.)
  • Drafted output equals "draft": false, a resumed prompt equals a fresh one, and concurrent equals solo. (No model path touched.)
  • No precision traded for speed. The affine bits are unchanged.
  • Prompt processing is no slower than the last release. (No prompt path touched.)
  • The description says which platforms I ran and which I could not.
  • New tests fail before the change, pass after it, and skip cleanly without their dependency. (No new test: the existing GPU tests could not be built for these targets before.)
  • Comments and docstrings are one line. No measurements or history in the source.
  • No personal data, machine names, internal hosts or local paths. No AI attribution lines.

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.
@ashhart

ashhart commented Oct 10, 2026

Copy link
Copy Markdown
Owner

Thank you, @BlivionIaG. This is merged into main (8c90f1e), your commit as it was, and it ships in 1.0.6 with #609. RDNA2 and RDNA3 owners can now build the HIP probes for their cards. The negative controls on the W7800 and the V620, each refusing the other's code object with UnsupportedArchitecture, were exactly the receipt this needed. Our host gates pass with both PRs in the tree, and the default build doesn't change, since HIP stays opt-in.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants