From e874e654fc62b2ff80abadcf7d65d250ff44b485 Mon Sep 17 00:00:00 2001 From: Niko1221 Date: Tue, 6 Oct 2026 13:13:19 +0200 Subject: [PATCH] hip: accept gfx1010 and gfx1011 (RDNA1) in the arch gate gfx1010 (Navi 10) is measured on an RX 5700 XT: 8 GB card, Coder IQ1_M, 32K context, prompt 115 / 144 / 149 tok/s and decode 18.0 / 20.3 / 23.3 tok/s at 4K / 16K / 30K prompt tokens, 6 of 6 needle checks at 8K and 30K, 61 of 61 ctest on the card. Nothing beyond the arch list is needed: the portable scalar dp4a that main falls to measured 162.7 / 24.3 against 158.3 / 24.0 with the __gfx1012__ SDWA control (#442) - inside the run-to-run spread - and 16 of 16 HIP tests pass on it. gfx1011 (Navi 12) is untested on hardware: same RDNA1 ISA, builds with 0 errors on ROCm 7.14's gfx101X-dgpu wheels. Two box facts, for whoever picks this up: hipBLASLt 1.4.0 refuses all 26 of the engine's GEMM shapes on gfx1010 (heuristic_count = 0), so there is no tuning table and prompts run on plain hipBLAS; and in a PC that also has an AMD iGPU, ROCm's HSA runtime segfaults in GpuAgent::InitDma while enumerating the pair - below HIP, so HIP_VISIBLE_DEVICES cannot reach it - and the engine must start with ROCR_VISIBLE_DEVICES naming the one KFD node (rocminfo for the index). Co-authored-by: AcckiyGerman <11707682+AcckiyGerman@users.noreply.github.com> --- cmake/hip_backend.cmake | 2 +- docs/OLDER_GPUS.md | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/cmake/hip_backend.cmake b/cmake/hip_backend.cmake index bb19864e..cc070adb 100644 --- a/cmake/hip_backend.cmake +++ b/cmake/hip_backend.cmake @@ -12,7 +12,7 @@ endif() # same wave32 / 64 KiB LDS / sudot4 family as gfx1100, on a unified-memory APU; experimental. set(_strata_hip_validated gfx1100 gfx1201) set(_strata_hip_community gfx1101 gfx1200) -set(_strata_hip_unvalidated gfx1012 gfx1102 gfx1103 gfx1030 gfx1031 gfx1034 gfx1151) # gfx1103: Radeon 780M iGPU, opt-in, portable kernels (no WMMA) +set(_strata_hip_unvalidated gfx1010 gfx1011 gfx1012 gfx1102 gfx1103 gfx1030 gfx1031 gfx1034 gfx1151) # gfx1103: Radeon 780M iGPU, opt-in, portable kernels (no WMMA) # CMake hands HIP a ';' list, but a -DCMAKE_HIP_ARCHITECTURES typed by hand (or ROCm's own Windows tooling) may use # spaces, which foreach(IN LISTS) would otherwise treat as one element. string(REPLACE " " ";" _strata_hip_norm "${CMAKE_HIP_ARCHITECTURES}") diff --git a/docs/OLDER_GPUS.md b/docs/OLDER_GPUS.md index 85479834..cc25ba36 100644 --- a/docs/OLDER_GPUS.md +++ b/docs/OLDER_GPUS.md @@ -26,6 +26,9 @@ capability 6.1 too, and cannot hold any of the model). | RX 6800 / 6900 series | gfx1030 | setup (`--backend hip`), unvalidated | [AMD_HIP.md](AMD_HIP.md#rdna2-gfx1030) | | RX 6700 XT | gfx1031 | setup (`--backend hip`), unvalidated (#524) | used daily by its reporter, one card | | RX 5500 XT (RDNA1) | gfx1012 | built by hand: `-DCMAKE_HIP_ARCHITECTURES=gfx1012` (HIP 5.7 or 7) | 8 GB card, IQ3_S, 8K prompt: 15.3 tok/s decode (#442) | +| RX 5700 XT (RDNA1) | gfx1010 | built by hand: `-DCMAKE_HIP_ARCHITECTURES=gfx1010`, on ROCm 7.14's `gfx101X-dgpu` wheels; needs `ROCR_VISIBLE_DEVICES=0` in a PC that also has an AMD iGPU | 8 GB card, Coder IQ1_M, 32K context: prompt 115 / 144 / 149 tok/s and decode 18.0 / 20.3 / 23.3 tok/s at 4K / 16K / 30K prompt tokens, 6 of 6 needle checks at 8K and 30K, 61 of 61 ctest on the card, 607 of 12,288 experts in VRAM | +| RX 5700 and the 6 GB RX 5600 (RDNA1) | gfx1010 | as above | the same Navi 10 silicon as the RX 5700 XT, so the same build; a 6 GB card leaves ~50 expert slots, expect the RX 5500 XT's range, not this one's | +| Radeon PRO V520 / Pro 5600M (RDNA1) | gfx1011 | built by hand: `-DCMAKE_HIP_ARCHITECTURES=gfx1011` | untested on hardware: it is the same RDNA1 ISA as gfx1010 (Navi 12), and the engine builds for it with 0 errors on the same wheels | | Instinct MI50 / MI60, Radeon VII | gfx906 (wave64) | built by hand: `-DSTRATA_HIP_GFX906=ON` | 2x MI50, Coder IQ1_M, 128K context: decode 50.1 / 47.8 / 45.7 tok/s at 4K / 32K / 128K prompt tokens, prompt ~520 tok/s (#677) | ## NVIDIA: the CUDA 12 engine