[GH-ISSUE #1267] gfx1151 (Strix Halo) gets the ROCm 7.10.0a20251120 wheels, not the 7.14.1 that docs/STRIX_HALO.md was measured on: the engine crashes on kernel 7.2.8, and prompts run at half speed #522

Closed
opened 2026-11-04 01:43:44 +07:00 by bsakaguchi · 4 comments
Owner

Originally created by @alexdns1 on GitHub (Oct 6, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/1267

What happens

setup.py installs one ROCm for every AMD card: ROCM_VERSION = "7.10.0a20251120" (setup.py:1493, added in
10d5cad for the RX 7900). Strix Halo support (c4a329f) added the gfx1151 wheel index but kept that version. Meanwhile
docs/STRIX_HALO.md says the gfx1151 work was built and measured on ROCm 7.14.1 (AMD's tarball),
and the shipped table tools/hip/gfx1151-hipblaslt-100401.txt is for 7.14.1's hipBLASLt (1.4.1).

On a Strix Halo with kernel 7.2.8 this has three effects:

  1. The server does not start. The engine segfaults in the 7.10 wheel's HSA runtime on its first copy to the GPU,
    and the server only says "the engine exited before it was ready". The engine log has no error line (the crash
    is in the kernel log: segfault ... in libhsa-runtime64.so.1).
  2. No hipBLASLt table. The 7.10 wheels carry hipBLASLt 1.2.0 (100200); there is no gfx1151 table for it, so the
    prompt's dense matrix products use plain hipBLAS.
  3. Setup's own test does not catch it. tools/test_setup_strix_halo.py runs on recorded sysfs data, without a
    GPU, so nothing runs the wheels setup installs on a real gfx1151.

Machine

Ryzen AI Max+ 395 (gfx1151, PCI 1002:1586), 128 GB, Fedora 44, kernel 7.2.8-200.fc44, linux-firmware 20260916,
boot parameters amd_iommu=off amdgpu.gttsize=126976 ttm.pages_limit=32505856 (124 GiB GTT). Strata 82f46a8
(engine 0.1.40). Model: Unsloth UD-IQ4_XS, installed with ./setup.sh (262144 context, int8 KV,
--kv-resident 32768, --resident-budget-gib 55).

The crash

Thread 1 "strata" received signal SIGSEGV, Segmentation fault.
#0  rocr::AMD::GpuAgent::ReleaseQueueMainScratch(rocr::AMD::ScratchCache::ScratchInfo&) () from .venv/.../_rocm_sdk_devel/lib/libhsa-runtime64.so.1
#1  rocr::AMD::GpuAgent::QueueCreate(...) ()
#2  rocr::AMD::GpuAgent::InitDma()::$_0 ...
#5  rocr::HSA::hsa_queue_create(...) ()
#6-13 libamdhip64.so.7
#14 (anonymous namespace)::probe_pcie_h2d_gbps(...) ()
#15 main ()

strace shows the kernel refusing the runtime's copy queue just before it:
ioctl(4, AMDKFD_IOC_CREATE_QUEUE, ...) = -1 EINVAL, then SIGSEGV ... si_addr=0x34. It is not Strata's code: a
7-line Python ctypes program (hipMalloc, hipHostMalloc, hipMemcpyAsync) crashes the same way with the 7.10
wheel's libamdhip64.so.7.

The same program on other ROCm builds, same machine and kernel:

ROCm Result
7.10.0a20251120 (setup's pin) crash (above)
7.11.0a20260121, 7.12.0a20260311, 7.13.0a20260515 nightlies works
7.14.0a20260529 to 7.14.0a20260608 nightlies works
7.14.0a20260609 to 7.14.0a20260612 nightlies crash, a different one: GpuAgent::InitDma jumps to 0x100000001 during hsa_init
7.14.1 release tarball (docs/STRIX_HALO.md) works
Fedora's ROCm 7.1.1 (rocm-runtime-7.1.1-6.fc44) works

(Only the 7.10 and 7.14 crashes were traced with gdb. Neither is reported to AMD yet.)

Speed

The engine setup compiled can run when its lib_dirs is emptied (it then loads Fedora's ROCm 7.1.1). Against an
engine built with docs/STRIX_HALO.md's own commands on ROCm 7.14.1 with the gfx1151 table, on the machine above:
8,192-token prompt, 256 output tokens, the run config's arguments with --max-context 16384 and without
--kv-resident, one fresh strata process per run, the two engines interleaved, medians of 3.

Engine Prompt tok/s Output tok/s
setup's (7.10 wheels build, run on ROCm 7.1.1, no table) 262.9 52.24
docs/STRIX_HALO.md build (ROCm 7.14.1, gfx1151-hipblaslt-100401.txt) 547.9 54.40

Both printed the same 256 token ids in every run. Most of the prompt gain is plausibly the table, but the two
were not separated.

What could fix it

  • Install ROCm 7.14.1 for gfx1151 (the tarball docs/STRIX_HALO.md uses; sha256 in the doc), so that setup's engine,
    libraries and table match what the doc measured. AMD's release wheel index
    (https://repo.amd.com/rocm/whl/gfx1151/) stops at 7.13.0 today, so 7.14.1 means the tarball.
  • Or pin gfx1151 to the 7.13.0 release wheels from that index. Not measured here, and there is no gfx1151 table for
    its hipBLASLt (unchecked which version it carries).
  • Either way: a version per GPU family instead of one ROCM_VERSION, and a start check that tells the user when
    the engine dies in the ROCm runtime (the kernel log line) instead of only "exited before it was ready".

Local workaround (what this machine runs now): the engine built per docs/STRIX_HALO.md against ROCm 7.14.1 in
~/rocm/install, lib_dirs and STRATA_HIPBLASLT_TUNING in the run config pointing at it, and engine/BUILD.json
stamped with setup's source hash so that setup keeps the engine. After an update that changes the engine's source,
setup compiles it against the 7.10 wheels again and leaves the run config pointing at 7.14.1, so the workaround
has to be redone.

Originally created by @alexdns1 on GitHub (Oct 6, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/1267 ### What happens `setup.py` installs one ROCm for every AMD card: `ROCM_VERSION = "7.10.0a20251120"` (setup.py:1493, added in 10d5cad for the RX 7900). Strix Halo support (c4a329f) added the gfx1151 wheel index but kept that version. Meanwhile [docs/STRIX_HALO.md](docs/STRIX_HALO.md) says the gfx1151 work was built and measured on ROCm 7.14.1 (AMD's tarball), and the shipped table `tools/hip/gfx1151-hipblaslt-100401.txt` is for 7.14.1's hipBLASLt (1.4.1). On a Strix Halo with kernel 7.2.8 this has three effects: 1. **The server does not start.** The engine segfaults in the 7.10 wheel's HSA runtime on its first copy to the GPU, and the server only says "the engine exited before it was ready". The engine log has no error line (the crash is in the kernel log: `segfault ... in libhsa-runtime64.so.1`). 2. **No hipBLASLt table.** The 7.10 wheels carry hipBLASLt 1.2.0 (`100200`); there is no gfx1151 table for it, so the prompt's dense matrix products use plain hipBLAS. 3. **Setup's own test does not catch it.** `tools/test_setup_strix_halo.py` runs on recorded sysfs data, without a GPU, so nothing runs the wheels setup installs on a real gfx1151. ### Machine Ryzen AI Max+ 395 (gfx1151, PCI 1002:1586), 128 GB, Fedora 44, kernel 7.2.8-200.fc44, linux-firmware 20260916, boot parameters `amd_iommu=off amdgpu.gttsize=126976 ttm.pages_limit=32505856` (124 GiB GTT). Strata 82f46a8 (engine 0.1.40). Model: Unsloth UD-IQ4_XS, installed with `./setup.sh` (262144 context, int8 KV, `--kv-resident 32768`, `--resident-budget-gib 55`). ### The crash ``` Thread 1 "strata" received signal SIGSEGV, Segmentation fault. #0 rocr::AMD::GpuAgent::ReleaseQueueMainScratch(rocr::AMD::ScratchCache::ScratchInfo&) () from .venv/.../_rocm_sdk_devel/lib/libhsa-runtime64.so.1 #1 rocr::AMD::GpuAgent::QueueCreate(...) () #2 rocr::AMD::GpuAgent::InitDma()::$_0 ... #5 rocr::HSA::hsa_queue_create(...) () #6-13 libamdhip64.so.7 #14 (anonymous namespace)::probe_pcie_h2d_gbps(...) () #15 main () ``` `strace` shows the kernel refusing the runtime's copy queue just before it: `ioctl(4, AMDKFD_IOC_CREATE_QUEUE, ...) = -1 EINVAL`, then `SIGSEGV ... si_addr=0x34`. It is not Strata's code: a 7-line Python `ctypes` program (`hipMalloc`, `hipHostMalloc`, `hipMemcpyAsync`) crashes the same way with the 7.10 wheel's `libamdhip64.so.7`. The same program on other ROCm builds, same machine and kernel: | ROCm | Result | |---|---| | 7.10.0a20251120 (setup's pin) | crash (above) | | 7.11.0a20260121, 7.12.0a20260311, 7.13.0a20260515 nightlies | works | | 7.14.0a20260529 to 7.14.0a20260608 nightlies | works | | 7.14.0a20260609 to 7.14.0a20260612 nightlies | crash, a different one: `GpuAgent::InitDma` jumps to `0x100000001` during `hsa_init` | | 7.14.1 release tarball (docs/STRIX_HALO.md) | works | | Fedora's ROCm 7.1.1 (`rocm-runtime-7.1.1-6.fc44`) | works | (Only the 7.10 and 7.14 crashes were traced with gdb. Neither is reported to AMD yet.) ### Speed The engine setup compiled can run when its `lib_dirs` is emptied (it then loads Fedora's ROCm 7.1.1). Against an engine built with docs/STRIX_HALO.md's own commands on ROCm 7.14.1 with the gfx1151 table, on the machine above: 8,192-token prompt, 256 output tokens, the run config's arguments with `--max-context 16384` and without `--kv-resident`, one fresh `strata` process per run, the two engines interleaved, medians of 3. | Engine | Prompt tok/s | Output tok/s | |---|---|---| | setup's (7.10 wheels build, run on ROCm 7.1.1, no table) | 262.9 | 52.24 | | docs/STRIX_HALO.md build (ROCm 7.14.1, `gfx1151-hipblaslt-100401.txt`) | 547.9 | 54.40 | Both printed the same 256 token ids in every run. Most of the prompt gain is plausibly the table, but the two were not separated. ### What could fix it - Install ROCm 7.14.1 for gfx1151 (the tarball docs/STRIX_HALO.md uses; sha256 in the doc), so that setup's engine, libraries and table match what the doc measured. AMD's release wheel index (`https://repo.amd.com/rocm/whl/gfx1151/`) stops at 7.13.0 today, so 7.14.1 means the tarball. - Or pin gfx1151 to the 7.13.0 release wheels from that index. Not measured here, and there is no gfx1151 table for its hipBLASLt (unchecked which version it carries). - Either way: a version per GPU family instead of one `ROCM_VERSION`, and a start check that tells the user when the engine dies in the ROCm runtime (the kernel log line) instead of only "exited before it was ready". Local workaround (what this machine runs now): the engine built per docs/STRIX_HALO.md against ROCm 7.14.1 in `~/rocm/install`, `lib_dirs` and `STRATA_HIPBLASLT_TUNING` in the run config pointing at it, and `engine/BUILD.json` stamped with setup's source hash so that setup keeps the engine. After an update that changes the engine's source, setup compiles it against the 7.10 wheels again and leaves the run config pointing at 7.14.1, so the workaround has to be redone.
Author
Owner

@Niko1221 commented on GitHub (Oct 7, 2026):

Thanks for the detailed trace. In 0.1.40.2 setup picks the ROCm wheel per GPU family: gfx1151 now gets 7.14.0a20260608 (inside the range you found working on kernel 7.2.8; the 7.10 wheel is not used any more, and setup warns if a gfx1151 would end up on one, even when STRATA_ROCM_VERSION forces it). The gfx1151 hipBLASLt table of docs/STRIX_HALO.md is for 7.14.1's hipBLASLt, so check the start line for hipBLASLt tuning enabled; if that nightly carries another version the table is not used and prompts run on plain hipBLAS. We have no gfx1151 box any more: could you confirm that a fresh setup --backend hip starts on your machine?

<!-- gh-comment-id:6038117416 --> @Niko1221 commented on GitHub (Oct 7, 2026): Thanks for the detailed trace. In 0.1.40.2 setup picks the ROCm wheel per GPU family: gfx1151 now gets 7.14.0a20260608 (inside the range you found working on kernel 7.2.8; the 7.10 wheel is not used any more, and setup warns if a gfx1151 would end up on one, even when STRATA_ROCM_VERSION forces it). The gfx1151 hipBLASLt table of docs/STRIX_HALO.md is for 7.14.1's hipBLASLt, so check the start line for `hipBLASLt tuning enabled`; if that nightly carries another version the table is not used and prompts run on plain hipBLAS. We have no gfx1151 box any more: could you confirm that a fresh `setup --backend hip` starts on your machine?
Author
Owner

@alexdns1 commented on GitHub (Oct 7, 2026):

Confirmed: a fresh ./setup.sh --yes --family unsloth --model UD-IQ4_XS --backend hip --context 262144 --no-start
on 0.1.40.2 (e8ca9af) works on my Strix Halo (Ryzen AI Max+ 395, Radeon 8060S gfx1151, 128 GB, Fedora 44,
kernel 7.2.8-200.fc44).

  • Setup installed ROCm 7.14.0a20260608 into .venv (rocm-sdk-core 7.14.0a20260608) and compiled engine 0.1.40.2 for gfx1151.
  • The server starts (no segfault): "ready ... context 262144 tokens", and a test request answers.
  • As you expected, no hipBLASLt table applies: this nightly carries hipBLASLt 1.4.0 (100400, from
    _rocm_sdk_devel/include/hipblaslt/hipblaslt-version.h), and setup says so:
    [!] no hipBLASLt tuning table for gfx1151 with hipBLASLt 100400 (have: gfx1151-hipblaslt-100401.txt, gfx1151-hipblaslt-100500.txt): the prompt's dense matrix products use plain hipBLAS
    so the prompt runs on plain hipBLAS, and the start log has no hipBLASLt tuning enabled line.

For comparison, on the same machine the ROCm 7.14.1 tarball build of docs/STRIX_HALO.md with the 100401 table read
greedy 8K prompts at ~548 tok/s against ~263 with the old setup engine without a table (numbers in the first post).

The table is in #1388 (tools/hip/gfx1151-hipblaslt-100400.txt, calibrated against these wheels; setup picks it up with no code change).

<!-- gh-comment-id:6041115363 --> @alexdns1 commented on GitHub (Oct 7, 2026): Confirmed: a fresh `./setup.sh --yes --family unsloth --model UD-IQ4_XS --backend hip --context 262144 --no-start` on 0.1.40.2 (e8ca9af) works on my Strix Halo (Ryzen AI Max+ 395, Radeon 8060S gfx1151, 128 GB, Fedora 44, kernel 7.2.8-200.fc44). - Setup installed ROCm 7.14.0a20260608 into .venv (`rocm-sdk-core 7.14.0a20260608`) and compiled engine 0.1.40.2 for gfx1151. - The server starts (no segfault): "ready ... context 262144 tokens", and a test request answers. - As you expected, no hipBLASLt table applies: this nightly carries hipBLASLt **1.4.0** (`100400`, from `_rocm_sdk_devel/include/hipblaslt/hipblaslt-version.h`), and setup says so: `[!] no hipBLASLt tuning table for gfx1151 with hipBLASLt 100400 (have: gfx1151-hipblaslt-100401.txt, gfx1151-hipblaslt-100500.txt): the prompt's dense matrix products use plain hipBLAS` so the prompt runs on plain hipBLAS, and the start log has no `hipBLASLt tuning enabled` line. For comparison, on the same machine the ROCm 7.14.1 tarball build of docs/STRIX_HALO.md with the 100401 table read greedy 8K prompts at ~548 tok/s against ~263 with the old setup engine without a table (numbers in the first post). The table is in #1388 (`tools/hip/gfx1151-hipblaslt-100400.txt`, calibrated against these wheels; setup picks it up with no code change).
Author
Owner

@Niko1221 commented on GitHub (Oct 7, 2026):

Thanks for confirming a fresh setup works. Closing.

<!-- gh-comment-id:6043797274 --> @Niko1221 commented on GitHub (Oct 7, 2026): Thanks for confirming a fresh setup works. Closing.
Author
Owner

@alexdns1 commented on GitHub (Oct 7, 2026):

@Niko1221 you have to accept the Pull before closing

<!-- gh-comment-id:6045762400 --> @alexdns1 commented on GitHub (Oct 7, 2026): @Niko1221 you have to accept the Pull before closing
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#522
No description provided.