mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #2302] [CLOSED] hip: gfx1103 gets the native dot4 and the gfx11 WMMA kernels #3970
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#3970
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/2302
Author: @AlexisCarbonell
Created: 10/13/2026
Status: ❌ Closed
Base:
main← Head:pr-engine📝 Commits (1)
34ce856hip: 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
dp4aguard inhip_compat/intrinsics.hppand outside the__gfx11xx__list of the WMMA kernels: every quantized dot product ranthe 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; thegfx1150 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 ingfx_arch_is_gfx11_wmma()(the runtime gates of every WMMApath), 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#ifguards.cmake/hip_backend.cmakeanddocs/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 thecompanion setup PR), and
tools/test_setup_strix_halo.pynow 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):
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, whichrun and pass with the table), 2 environmental failures (
ple_parityneeds thebench/microfixtures,platform_memory_testneeds a memlock limit above 8 MiB);gfx1100;gfx1103;gfx1201compile. CUDA and SYCL were not built here (no toolchainson 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.