[PR #2302] [CLOSED] hip: gfx1103 gets the native dot4 and the gfx11 WMMA kernels #3970

Closed
opened 2026-11-07 15:32:07 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/2302
Author: @AlexisCarbonell
Created: 10/13/2026
Status: ❌ Closed

Base: main ← Head: pr-engine


📝 Commits (1)

  • 34ce856 hip: gfx1103 gets the native dot4 and the gfx11 WMMA kernels

📊 Changes

12 files changed (+25 additions, -22 deletions)

View changed files

📝 cmake/hip_backend.cmake (+1 -1)
📝 docs/STRIX_HALO.md (+1 -1)
📝 include/strata/hip_compat/intrinsics.hpp (+2 -2)
📝 include/strata/kernels/gfx_arch.hpp (+2 -2)
📝 src/core/arch_defaults_test.cpp (+2 -0)
📝 src/kernels/cuda/qsa_prompt_attn.cu (+2 -2)
📝 src/kernels/cuda/qsa_select.cu (+2 -2)
📝 src/prefill/kernels.cu (+1 -1)
📝 src/prefill/moe_fused.cu (+1 -1)
📝 src/prefill/moe_fused_iq.cu (+1 -1)
📝 src/prefill/wmma_gemm.cu (+7 -7)
📝 tools/test_setup_strix_halo.py (+3 -2)

📄 Description

Issue: Refs #1423

Summary

The Radeon 780M / 760M / 740M (Phoenix / Hawk Point, gfx1103) was outside the dp4a guard in
hip_compat/intrinsics.hpp and outside the __gfx11xx__ list of the WMMA kernels: every quantized dot product ran
the four-step byte loop, and the prompt attention, block scorer, prompt GEMMs and prompt experts took the hipBLAS /
portable-kernel paths. This puts gfx1103 in both lists, like gfx1102 and gfx1150 (the same v_dot4_i32_iu8; the
gfx1150 port runs the same WMMA files).

What changed

  • include/strata/hip_compat/intrinsics.hpp: __gfx1103__ in the sudot4 guard (native signed dot4).
  • include/strata/kernels/gfx_arch.hpp: gfx1103 in gfx_arch_is_gfx11_wmma() (the runtime gates of every WMMA
    path), and the header comment.
  • src/prefill/wmma_gemm.cu (6 guards), src/prefill/kernels.cu, src/prefill/moe_fused.cu,
    src/prefill/moe_fused_iq.cu, src/kernels/cuda/qsa_prompt_attn.cu, src/kernels/cuda/qsa_select.cu:
    __gfx1103__ in the #if guards.
  • cmake/hip_backend.cmake and docs/STRIX_HALO.md: the comments that named gfx1103 as excluded.
  • src/core/arch_defaults_test.cpp: arch_default_env("gfx1103") stays empty (the switches are setup's; see the
    companion setup PR), and tools/test_setup_strix_halo.py now expects gfx1103 in the engine's WMMA list.

Extra Notes

Measured on one 780M (Ryzen 7 8745HS, 60 GB, GTT 50 GiB, ROCm 10.1, Q2_0 + MTP, 32K context):

  • decode 8.70 -> 13.44 tok/s at a 32K prompt with default flags (dot4 is the default change);
  • the WMMA parity tests now run and pass on gfx1103 instead of skipping (hip_intrinsics,
    hip_prefill_wmma_gemm_parity, hip_prompt_attn_wmma, qsa_*, hip_prefill_fused_moe, hip_prefill_fused_iq,
    hip_gemm_f16_io_parity, hip_prefill_mmq_parity); ctest: 57 passed, 2 skipped (the two hipBLASLt tests, which
    run and pass with the table), 2 environmental failures (ple_parity needs the bench/micro fixtures,
    platform_memory_test needs a memlock limit above 8 MiB);
  • the greedy token ids are unchanged against the pre-port build at 4K and 32K (dot4 is exact integer arithmetic);
  • HIP builds for gfx1103 and for gfx1100;gfx1103;gfx1201 compile. CUDA and SYCL were not built here (no toolchains
    on the test box); the added macros are undefined for them, as for the other gfx11 targets.

Raw runs and the numbers: bench/results/2026-10-12-community-gfx1103.


🔄 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/2302 **Author:** [@AlexisCarbonell](https://github.com/AlexisCarbonell) **Created:** 10/13/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `pr-engine` --- ### 📝 Commits (1) - [`34ce856`](https://github.com/Niko1221/Strata/commit/34ce8568cebd1b06ad6c6acb6ecbe45b9e89bbbb) hip: gfx1103 gets the native dot4 and the gfx11 WMMA kernels ### 📊 Changes **12 files changed** (+25 additions, -22 deletions) <details> <summary>View changed files</summary> 📝 `cmake/hip_backend.cmake` (+1 -1) 📝 `docs/STRIX_HALO.md` (+1 -1) 📝 `include/strata/hip_compat/intrinsics.hpp` (+2 -2) 📝 `include/strata/kernels/gfx_arch.hpp` (+2 -2) 📝 `src/core/arch_defaults_test.cpp` (+2 -0) 📝 `src/kernels/cuda/qsa_prompt_attn.cu` (+2 -2) 📝 `src/kernels/cuda/qsa_select.cu` (+2 -2) 📝 `src/prefill/kernels.cu` (+1 -1) 📝 `src/prefill/moe_fused.cu` (+1 -1) 📝 `src/prefill/moe_fused_iq.cu` (+1 -1) 📝 `src/prefill/wmma_gemm.cu` (+7 -7) 📝 `tools/test_setup_strix_halo.py` (+3 -2) </details> ### 📄 Description Issue: Refs #1423 ## Summary The Radeon 780M / 760M / 740M (Phoenix / Hawk Point, gfx1103) was outside the `dp4a` guard in `hip_compat/intrinsics.hpp` and outside the `__gfx11xx__` list of the WMMA kernels: every quantized dot product ran the four-step byte loop, and the prompt attention, block scorer, prompt GEMMs and prompt experts took the hipBLAS / portable-kernel paths. This puts gfx1103 in both lists, like gfx1102 and gfx1150 (the same `v_dot4_i32_iu8`; the gfx1150 port runs the same WMMA files). ## What changed - `include/strata/hip_compat/intrinsics.hpp`: `__gfx1103__` in the sudot4 guard (native signed dot4). - `include/strata/kernels/gfx_arch.hpp`: gfx1103 in `gfx_arch_is_gfx11_wmma()` (the runtime gates of every WMMA path), and the header comment. - `src/prefill/wmma_gemm.cu` (6 guards), `src/prefill/kernels.cu`, `src/prefill/moe_fused.cu`, `src/prefill/moe_fused_iq.cu`, `src/kernels/cuda/qsa_prompt_attn.cu`, `src/kernels/cuda/qsa_select.cu`: `__gfx1103__` in the `#if` guards. - `cmake/hip_backend.cmake` and `docs/STRIX_HALO.md`: the comments that named gfx1103 as excluded. - `src/core/arch_defaults_test.cpp`: `arch_default_env("gfx1103")` stays empty (the switches are setup's; see the companion setup PR), and `tools/test_setup_strix_halo.py` now expects gfx1103 in the engine's WMMA list. ## Extra Notes Measured on one 780M (Ryzen 7 8745HS, 60 GB, GTT 50 GiB, ROCm 10.1, Q2_0 + MTP, 32K context): - decode **8.70 -> 13.44 tok/s** at a 32K prompt with default flags (dot4 is the default change); - the WMMA parity tests now **run and pass** on gfx1103 instead of skipping (`hip_intrinsics`, `hip_prefill_wmma_gemm_parity`, `hip_prompt_attn_wmma`, `qsa_*`, `hip_prefill_fused_moe`, `hip_prefill_fused_iq`, `hip_gemm_f16_io_parity`, `hip_prefill_mmq_parity`); `ctest`: 57 passed, 2 skipped (the two hipBLASLt tests, which run and pass with the table), 2 environmental failures (`ple_parity` needs the `bench/micro` fixtures, `platform_memory_test` needs a memlock limit above 8 MiB); - the greedy token ids are unchanged against the pre-port build at 4K and 32K (dot4 is exact integer arithmetic); - HIP builds for gfx1103 and for `gfx1100;gfx1103;gfx1201` compile. CUDA and SYCL were not built here (no toolchains on the test box); the added macros are undefined for them, as for the other gfx11 targets. Raw runs and the numbers: `bench/results/2026-10-12-community-gfx1103`. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 15:32:07 +07:00
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#3970
No description provided.