[PR #2784] [Engine] HIP: the RX 6600 / 6650 XT (gfx1032) in setup's cards #4263

Open
opened 2026-11-07 15:34:25 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/2784
Author: @chenxyz129
Created: 10/16/2026
Status: 🔄 Open

Base: main ← Head: gfx1032-support


📝 Commits (1)

  • 7d46e1f HIP: the RX 6600 / 6650 XT (gfx1032) in setup's cards, docs and setup test

📊 Changes

4 files changed (+12 additions, -4 deletions)

View changed files

📝 docs/AMD_HIP.md (+1 -1)
📝 docs/OLDER_GPUS.md (+1 -0)
📝 setup.py (+7 -3)
📝 tools/test_setup_amd.py (+3 -0)

📄 Description

Problem and result

Before: setup.py did not know gfx1032, so an RX 6600 / 6650 XT was not detected: setup did not pick the
gfx103X-all ROCm wheels and did not build for the card. docs/AMD_HIP.md listed gfx1032 as untested even though
include/strata/hip_compat/intrinsics.hpp already gates __gfx1032__ with __gfx1030__ / __gfx1031__ on the same
signed-dot4 (dp4a) branch.

After: gfx1032 is in setup's ROCM_INDEXES (the gfx103X-all wheels), AMD_ARCHS (setup detects the card and
builds for it), AMD_NAMES, the AMD_CARDS sentence and the AMD header comment, plus the docs/OLDER_GPUS.md table
row and a line of its own in docs/AMD_HIP.md (like gfx1031). A gfx1032 machine now takes the same path as gfx1030 /
gfx1031 instead of being unknown to setup.

Rebase note: the branch is rebased on main at c62d5e3a (Control 0.2.9 / engine 0.1.55). cmake/hip_backend.cmake
already lists gfx1032 in _strata_hip_unvalidated on main (10552345), so that hunk of the original pull request is
gone and the branch changes four files. On the current docs/AMD_HIP.md the old "Windows helper expert GPU" paragraph
has been merged into the gfx1032 row of the community table, so the docs hunk now updates that row. The engine and
kernel sources, the CUDA and SYCL backends and every other card's entry are untouched.

Refs #1375 (the gfx1032 report), #1378 (the open RX 6600 benchmark) and #3429 (the HIP compile fix this branch's
build needs).

Approach

Only the lists that decide what setup does with a gfx1032 card change; the card is treated exactly like gfx1030 /
gfx1031, which take the same wheels and the same kernels. tools/test_setup_amd.py asserts that gfx1032 resolves to
the same ROCm indexes and the same build path as gfx1030 / gfx1031.

The card stays in CMake's _strata_hip_unvalidated list, so a build prints the usual "not validated" warning: one
machine has run it, not a broad validation.

Validation

All runs below are on the machine with the card: Fedora, ROCm 7.1.1, AMD RX 6650 XT (gfx1032, 8 GB).

Passed:

  • python tools/test_setup_amd.py on commit 7d46e1fd (this branch on main c62d5e3a) -> Ran 53 tests ... OK.
  • python tools/test_setup_rocm_pins.py on the same commit -> Ran 17 tests ... OK.
  • Engine build with this branch plus the HIP compile fix from #3429 at commit 0888bdfc:
    ninja -C build-hip -> all targets built, strata linked; ./build-hip/strata --version -> strata 0.1.55.
    This branch changes no engine source, so that build is the one of #3429.

Failed:

  • This branch alone (7d46e1fd) does not compile for gfx1032 on current main: the build stops at
    src/kernels/cuda/iq_kernels.cu:2571 and :2758 with error: 'alignas' attribute cannot be applied to types.
    That is an upstream expdec problem on main, not something this change introduces or fixes; #3429 fixes it, and
    the engine build above was run on top of that fix.

Not run:

  • A model served end to end on this revision: the earlier run on this card was on 0.1.45, before the rebase.
  • llama.cpp parity and KL / quality runs, and a same-day A/B against a build for a validated card.
  • A fresh setup.py download/build for gfx1032: the engine here was built by hand from the checkout.
  • CUDA, SYCL and Metal builds.
  • Windows (_WIN_AMD_DID / _WIN_AMD_NAME) is untouched, so setup --backend hip on a Windows gfx1032 card is
    untested.

Limits

  • One card, one machine, one ROCm version. gfx1032 stays in _strata_hip_unvalidated.
  • Fedora's ROCm 7.1.1 lives in /usr (no /opt/rocm, libraries in lib64); a local symlink shim gives setup the
    ROCM_PATH layout it expects. That is this box's packaging, not part of the patch.
  • The system rocBLAS Tensile library has no gfx1032 kernels, so a dense GEMM aborts or returns zeros until the
    _rocm_sdk_libraries_gfx103X_all wheel's librocblas.so.5 and its library data replace the system pair
    together. Left out of this pull request; a line in docs/AMD_HIP.md may be worth adding if other users hit it.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Niko1221/Strata/pull/2784 **Author:** [@chenxyz129](https://github.com/chenxyz129) **Created:** 10/16/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `gfx1032-support` --- ### 📝 Commits (1) - [`7d46e1f`](https://github.com/Niko1221/Strata/commit/7d46e1fdd073c78fe1199740632e8a206981b1b0) HIP: the RX 6600 / 6650 XT (gfx1032) in setup's cards, docs and setup test ### 📊 Changes **4 files changed** (+12 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `docs/AMD_HIP.md` (+1 -1) 📝 `docs/OLDER_GPUS.md` (+1 -0) 📝 `setup.py` (+7 -3) 📝 `tools/test_setup_amd.py` (+3 -0) </details> ### 📄 Description ## Problem and result **Before:** `setup.py` did not know gfx1032, so an RX 6600 / 6650 XT was not detected: setup did not pick the `gfx103X-all` ROCm wheels and did not build for the card. `docs/AMD_HIP.md` listed gfx1032 as untested even though `include/strata/hip_compat/intrinsics.hpp` already gates `__gfx1032__` with `__gfx1030__` / `__gfx1031__` on the same signed-dot4 (`dp4a`) branch. **After:** gfx1032 is in setup's `ROCM_INDEXES` (the `gfx103X-all` wheels), `AMD_ARCHS` (setup detects the card and builds for it), `AMD_NAMES`, the `AMD_CARDS` sentence and the AMD header comment, plus the `docs/OLDER_GPUS.md` table row and a line of its own in `docs/AMD_HIP.md` (like gfx1031). A gfx1032 machine now takes the same path as gfx1030 / gfx1031 instead of being unknown to setup. Rebase note: the branch is rebased on `main` at `c62d5e3a` (Control 0.2.9 / engine 0.1.55). `cmake/hip_backend.cmake` already lists gfx1032 in `_strata_hip_unvalidated` on `main` (10552345), so that hunk of the original pull request is gone and the branch changes four files. On the current `docs/AMD_HIP.md` the old "Windows helper expert GPU" paragraph has been merged into the gfx1032 row of the community table, so the docs hunk now updates that row. The engine and kernel sources, the CUDA and SYCL backends and every other card's entry are untouched. ## Related discussion Refs #1375 (the gfx1032 report), #1378 (the open RX 6600 benchmark) and #3429 (the HIP compile fix this branch's build needs). ## Approach Only the lists that decide what setup does with a gfx1032 card change; the card is treated exactly like gfx1030 / gfx1031, which take the same wheels and the same kernels. `tools/test_setup_amd.py` asserts that gfx1032 resolves to the same ROCm indexes and the same build path as gfx1030 / gfx1031. The card stays in CMake's `_strata_hip_unvalidated` list, so a build prints the usual "not validated" warning: one machine has run it, not a broad validation. ## Validation All runs below are on the machine with the card: Fedora, ROCm 7.1.1, AMD RX 6650 XT (gfx1032, 8 GB). **Passed:** - `python tools/test_setup_amd.py` on commit `7d46e1fd` (this branch on `main` `c62d5e3a`) -> `Ran 53 tests ... OK`. - `python tools/test_setup_rocm_pins.py` on the same commit -> `Ran 17 tests ... OK`. - Engine build with this branch plus the HIP compile fix from #3429 at commit `0888bdfc`: `ninja -C build-hip` -> all targets built, `strata` linked; `./build-hip/strata --version` -> `strata 0.1.55`. This branch changes no engine source, so that build is the one of #3429. **Failed:** - This branch alone (`7d46e1fd`) does not compile for gfx1032 on current `main`: the build stops at `src/kernels/cuda/iq_kernels.cu:2571` and `:2758` with `error: 'alignas' attribute cannot be applied to types`. That is an upstream expdec problem on `main`, not something this change introduces or fixes; #3429 fixes it, and the engine build above was run on top of that fix. **Not run:** - A model served end to end on this revision: the earlier run on this card was on 0.1.45, before the rebase. - llama.cpp parity and KL / quality runs, and a same-day A/B against a build for a validated card. - A fresh `setup.py` download/build for gfx1032: the engine here was built by hand from the checkout. - CUDA, SYCL and Metal builds. - Windows (`_WIN_AMD_DID` / `_WIN_AMD_NAME`) is untouched, so `setup --backend hip` on a Windows gfx1032 card is untested. ## Limits - One card, one machine, one ROCm version. gfx1032 stays in `_strata_hip_unvalidated`. - Fedora's ROCm 7.1.1 lives in `/usr` (no `/opt/rocm`, libraries in `lib64`); a local symlink shim gives setup the `ROCM_PATH` layout it expects. That is this box's packaging, not part of the patch. - The system rocBLAS Tensile library has no gfx1032 kernels, so a dense GEMM aborts or returns zeros until the `_rocm_sdk_libraries_gfx103X_all` wheel's `librocblas.so.5` **and** its library data replace the system pair together. Left out of this pull request; a line in `docs/AMD_HIP.md` may be worth adding if other users hit it. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#4263
No description provided.