[GH-ISSUE #2374] gfx1011 (Navi 12) on real hardware: 96/105 ctest pass; hip_q2_zero fails, fixed by adding __gfx1011__ to the Q2_0 signed-zero workaround #960

Closed
opened 2026-11-04 01:47:20 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @andyelka-creator on GitHub (Oct 14, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/2374

docs/OLDER_GPUS.md lists gfx1011 as "untested on hardware". Here is a hardware run.

Hardware / software

  • 3× AMD BC-160 (Navi 12, gfx1011, 8 GB HBM2 each); host i5-6500 (4 cores, no AVX-512), 16 GB RAM
  • Ubuntu, kernel 7.0.0-38-generic (in-tree amdgpu)
  • Strata v0.1.43.1, commit a0116b2
  • ROCm from TheRock wheels: rocm[libraries,devel]==7.14.0a20260608, index https://rocm.nightlies.amd.com/v2/gfx101X-dgpu/
  • configure: -DSTRATA_ENABLE_HIP=ON -DSTRATA_ENABLE_CUDA=OFF -DSTRATA_BUILD_TESTS=ON -DSTRATA_PREFILL_MMQ=ON -DCMAKE_HIP_ARCHITECTURES=gfx1011

Results

  • Build: 0 errors.
  • strata-device: HIP arch gfx1011 wave32 (compiled for gfx1011), 18 CUs, 7.984 GiB VRAM.
  • ctest, run separately on each card (HIP_VISIBLE_DEVICES=0/1/2), with ple_parity and platform_memory_test excluded: identical on all three cards — 96 passed, 8 skipped, 1 failed out of 105, ~170–180 s per card. No amdgpu errors in the kernel log.
  • Skipped (expected for this hardware): hip_prefill_wmma_gemm_parity, hip_prefill_hcd_exact_parity, hip_prompt_attn_wmma (no WMMA on RDNA1), hip_prefill_hipblaslt_gemm, hip_prefill_fused_moe, hip_prefill_fused_iq, expert_cache_segmented_test, expert_multi_test.
  • Failed: hip_q2_zero:
    index=65 got=0x0000 expected=0x8000
    ...
    hip_q2_zero: 1024 values, 128 failures
    

Cause and fix

This is the same signed-zero folding the guard in dq_q2_0 (src/kernels/cuda/iq_kernels.cu) already works around for gfx1012 on HIP < 7, gfx1151 and gfx1200/gfx1201. gfx1011 is not in that list, and with ROCm 7.14 it shows the same behaviour. Adding it fixes the test on all three cards (1024 values, 0 failures):

-#if defined(__HIPCC__) && ((defined(__gfx1012__) && HIP_VERSION_MAJOR < 7) || defined(__gfx1151__) || \
+#if defined(__HIPCC__) && ((defined(__gfx1012__) && HIP_VERSION_MAJOR < 7) || defined(__gfx1011__) || defined(__gfx1151__) || \
     defined(__gfx1200__) || defined(__gfx1201__))

Since gfx1011 still folds on HIP 7.14, gfx1012 on HIP ≥ 7 may need the guard too. I have no gfx1012 card to check.

Not tested: running a model. This box has 16 GB of RAM, below the documented minimum. The memory planner (--max-context 20480) reports a 4105-slot expert cache (5.68 GB) plus 0.27 GB KV, which fits a single 8 GB card.

Small doc note: OLDER_GPUS.md says gfx1011 is "the same RDNA1 ISA as gfx1010 (Navi 12)". Navi 12 is gfx1011 itself; gfx1010 is Navi 10.

Originally created by @andyelka-creator on GitHub (Oct 14, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/2374 `docs/OLDER_GPUS.md` lists gfx1011 as "untested on hardware". Here is a hardware run. **Hardware / software** - 3× AMD BC-160 (Navi 12, gfx1011, 8 GB HBM2 each); host i5-6500 (4 cores, no AVX-512), 16 GB RAM - Ubuntu, kernel 7.0.0-38-generic (in-tree amdgpu) - Strata v0.1.43.1, commit `a0116b2` - ROCm from TheRock wheels: `rocm[libraries,devel]==7.14.0a20260608`, index `https://rocm.nightlies.amd.com/v2/gfx101X-dgpu/` - configure: `-DSTRATA_ENABLE_HIP=ON -DSTRATA_ENABLE_CUDA=OFF -DSTRATA_BUILD_TESTS=ON -DSTRATA_PREFILL_MMQ=ON -DCMAKE_HIP_ARCHITECTURES=gfx1011` **Results** - Build: 0 errors. - `strata-device`: `HIP arch gfx1011 wave32 (compiled for gfx1011)`, 18 CUs, 7.984 GiB VRAM. - `ctest`, run separately on each card (`HIP_VISIBLE_DEVICES=0/1/2`), with `ple_parity` and `platform_memory_test` excluded: identical on all three cards — **96 passed, 8 skipped, 1 failed** out of 105, ~170–180 s per card. No amdgpu errors in the kernel log. - Skipped (expected for this hardware): `hip_prefill_wmma_gemm_parity`, `hip_prefill_hcd_exact_parity`, `hip_prompt_attn_wmma` (no WMMA on RDNA1), `hip_prefill_hipblaslt_gemm`, `hip_prefill_fused_moe`, `hip_prefill_fused_iq`, `expert_cache_segmented_test`, `expert_multi_test`. - Failed: `hip_q2_zero`: ``` index=65 got=0x0000 expected=0x8000 ... hip_q2_zero: 1024 values, 128 failures ``` **Cause and fix** This is the same signed-zero folding the guard in `dq_q2_0` (`src/kernels/cuda/iq_kernels.cu`) already works around for gfx1012 on HIP < 7, gfx1151 and gfx1200/gfx1201. gfx1011 is not in that list, and with ROCm 7.14 it shows the same behaviour. Adding it fixes the test on all three cards (1024 values, 0 failures): ```diff -#if defined(__HIPCC__) && ((defined(__gfx1012__) && HIP_VERSION_MAJOR < 7) || defined(__gfx1151__) || \ +#if defined(__HIPCC__) && ((defined(__gfx1012__) && HIP_VERSION_MAJOR < 7) || defined(__gfx1011__) || defined(__gfx1151__) || \ defined(__gfx1200__) || defined(__gfx1201__)) ``` Since gfx1011 still folds on HIP 7.14, gfx1012 on HIP ≥ 7 may need the guard too. I have no gfx1012 card to check. **Not tested:** running a model. This box has 16 GB of RAM, below the documented minimum. The memory planner (`--max-context 20480`) reports a 4105-slot expert cache (5.68 GB) plus 0.27 GB KV, which fits a single 8 GB card. **Small doc note:** `OLDER_GPUS.md` says gfx1011 is "the same RDNA1 ISA as gfx1010 (Navi 12)". Navi 12 is gfx1011 itself; gfx1010 is Navi 10.
Author
Owner

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

Thanks for taking the time to report this.

We're resetting the tracker for 0.2.0-beta. There are more than 1,300 open issues and pull requests, too many for us to read properly, so we're closing everything that isn't being worked on right now. Closed here does not mean rejected.

To reopen it takes about two minutes:

  1. Re-test on 0.2.0-beta. It may already be fixed. Write down what you see.
  2. Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other].
  3. Fill in the parts of the issue form: what happened, the Strata version, your graphics card, memory and system.
  4. Comment /reopen. A check runs and either reopens the issue or lists what is still missing.

The rules are in CONTRIBUTING.md.

<!-- gh-comment-id:6270992014 --> @Niko1221 commented on GitHub (Oct 19, 2026): Thanks for taking the time to report this. We're resetting the tracker for 0.2.0-beta. There are more than 1,300 open issues and pull requests, too many for us to read properly, so we're closing everything that isn't being worked on right now. Closed here does not mean rejected. To reopen it takes about two minutes: 1. Re-test on 0.2.0-beta. It may already be fixed. Write down what you see. 2. Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other]. 3. Fill in the parts of the issue form: what happened, the Strata version, your graphics card, memory and system. 4. Comment `/reopen`. A check runs and either reopens the issue or lists what is still missing. The rules are in [CONTRIBUTING.md](https://github.com/Niko1221/Strata/blob/main/CONTRIBUTING.md).
Author
Owner

@andyelka-creator commented on GitHub (Oct 20, 2026):

Re-tested on 0.2.0-beta (commit 3d1fb480), same 3× BC-160 (gfx1011), same ROCm 7.14 wheels: hip_q2_zero gives 1024 values, 0 failures on all three cards. Fixed, no need to reopen. Thanks!

A new HIP virtual memory failure on this build is in #3358.

<!-- gh-comment-id:6283591340 --> @andyelka-creator commented on GitHub (Oct 20, 2026): Re-tested on 0.2.0-beta (commit 3d1fb480), same 3× BC-160 (gfx1011), same ROCm 7.14 wheels: `hip_q2_zero` gives 1024 values, 0 failures on all three cards. Fixed, no need to reopen. Thanks! A new HIP virtual memory failure on this build is in #3358.
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#960
No description provided.