mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #895] [CLOSED] hip: support Radeon gfx1151 APUs #2899
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#2899
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/895
Author: @DTU-travelpals
Created: 10/5/2026
Status: ❌ Closed
Base:
main← Head:feat/gfx1151-enablement📝 Commits (10+)
749d957setup (--backend hip): a system ROCm without the HIP development files falls back to the wheels (#446)5a30024calibrate: the engine's arguments come from the server's engine_args; a failed tuning says why (#447)9f60d13serve, setup: name the small split card that caps the prompt chunk; setup recommends the big card alone (#448)eb8da1d/metrics: each request's speculative draft counts, and their sums in the totals (#457)6a09387setup (--gguf-dir): GGUFs Strata cannot run are named as such, with the --family/--model to use (#444)d6a91e2docs: the Coder is weaker outside code, Chinese/CJK text included; the unpruned sizes for that (#438)d8d4ad3Merge branch 'f-135-eng' into rel-0.1.357b600d5Merge branch 'f-135-small' into rel-0.1.35d9ab843Engine 0.1.35: Windows AMD uses its bundled HIP runtime (#468 #461), the low-RAM resident mode on Windows 32 GB PCs (#467), fixes #460 #459 #446 #447 #457 #448 #444; setup requires it57bd713sycl: pipeline the expert cache's profile fill (model load 3-4x faster)📊 Changes
2 files changed (+44 additions, -5 deletions)
View changed files
📝
docs/AMD_HIP.md(+10 -5)➕
tools/hip/gfx1151-hipblaslt-100500.txt(+34 -0)📄 Description
Summary
Add Linux HIP support for AMD Radeon 8060S / 8050S APUs (
gfx1151, RDNA 3.5).This includes:
The implementation was validated on a Ryzen AI Max+ 395 with Radeon 8060S and 128 GB of unified memory.
Why gfx1151 needs special handling
The Radeon 8060S is an integrated GPU whose CPU and GPU share the same physical RAM.
On the test machine:
gfx1151;hipMemGetInfo()reports the large GPU-addressable GTT pool without subtracting Strata’s ordinary CPU allocations, including its host expert arena. Treating this capacity as independent VRAM can oversubscribe system memory and invoke the OOM killer.This change:
Discrete AMD cards retain their existing independent-VRAM behavior.
Implementation
gfx1151to the HIP architecture allowlist and documentation.__builtin_amdgcn_sudot4.device-gfx*extras.rocminfoand fall back to the wheels if its HSA runtime fails or crashes.Test system
gfx1151, wave32, 40 compute units;Tested HIP SDK
The successful build used the latest AMD nightly available at the time of validation on 2026-10-04:
https://nightly.repo.amd.com/rocm/whl-next/
Installed components:
The SDK reports:
rocminforeports:The detected GPU agent is:
The build environment was rooted in the nightly wheel’s
_rocm_sdk_develdirectory. Environment variables pointing to another/opt/rocminstallation were removed so that installation could not supply compiler or runtime libraries.Build and test validation
Using the nightly-wheel SDK:
gfx1151;strata-devicedetected and exercised the GPU;ple_paritywas the only failure because its external model fixture was unavailable;The setup-specific test suite also passes:
An earlier validation using the working ROCm 7.13.99004 TheRock tree in
/opt/rocm-7.13produced:gfx1151;strata-device --list-devices;strata-device --selftest;ple_parity,expert_parity, andpool_test;The passing GPU coverage included:
v_dot4_i32_iu8;End-to-end model validation
Qwen3.8-Flash-Next Q2_0
Configuration:
--spec 4 --spec-min-p 0.5;Startup:
Observed output performance:
Unsloth UD-IQ4_XS
A second live configuration also passed:
A 2,205-token response completed at 36.1 tok/s. Other sustained responses measured approximately 34.6–36.1 tok/s.
Both Q2_0 and UD-IQ4_XS successfully processed image requests through the CPU vision encoder.
These are live validation measurements, not a standardized hardware benchmark. A separate community benchmark PR will follow after the controlled fresh-prompt and recall suites have been run.
Known limitations
--vision cpuworks.Broken 7.14 nightly
The specific TheRock
7.14.0a20260612nightly tested here is unusable on gfx1151.The complete Strata tree compiles with it, but both its own
rocminfoandstrata-devicesegfault in:during
hsa_init, before Strata launches a GPU kernel.Replacing only that installation’s
libhsa-runtime64.so.1with the working ROCm 7.13 library makesstrata-device --selftestand the same non-fixture GPU tests pass. This isolates the observed failure to that nightly’s HSA runtime. Mixing runtime components is useful for diagnosis only and is not a recommended installation.Related upstream reports:
AI assistance disclosure
Implementation review, documentation preparation, test interpretation, and commit organization were assisted by AI. All hardware builds, GPU tests, model runs, and reported measurements were executed on the Radeon 8060S system described above.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.