mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #1395] [CLOSED] hip: a hipBLASLt tuning table for gfx1150 (Radeon 890M), and gfx1151's exact speed switches on gfx1150 #3425
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#3425
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/1395
Author: @zeriyoshi
Created: 10/7/2026
Status: ❌ Closed
Base:
main← Head:gfx1150_improve📝 Commits (2)
f904049hip: hipBLASLt tuning table for gfx1150 (Radeon 890M, ROCm 7.14.1 / hipBLASLt 100401)68fc624core: gfx1151's exact speed switches on gfx1150 too, less STRATA_HCD_EXACT📊 Changes
12 files changed (+611 additions, -10 deletions)
View changed files
➕
bench/results/2026-10-07-community-gfx1150/README.md(+127 -0)➕
bench/results/2026-10-07-community-gfx1150/runs.csv(+55 -0)➕
bench/results/2026-10-07-community-gfx1150/strata-gfx1150.json(+74 -0)➕
bench/results/2026-10-07-community-gfx1150/tune-summary.csv(+145 -0)📝
bench/results/COMMUNITY.md(+1 -0)📝
docs/AMD_HIP.md(+17 -2)📝
docs/STRIX_HALO.md(+1 -1)📝
include/strata/core/arch_defaults.hpp(+7 -2)📝
include/strata/kernels/gfx_arch.hpp(+3 -0)📝
src/core/arch_defaults.cpp(+17 -4)📝
src/core/arch_defaults_test.cpp(+18 -1)➕
tools/hip/gfx1150-hipblaslt-100401.txt(+146 -0)📄 Description
Title
hip: a hipBLASLt tuning table for gfx1150 (Radeon 890M), and gfx1151's exact speed switches on gfx1150
Issue: Follow-up to #1217
Summary
0.1.40.2 builds and runs on gfx1150 (Strix Point, Radeon 890M / 880M) since #1217, but there was no hipBLASLt table for
it, so the prompt's dense GEMMs ran on plain hipBLAS. This PR adds:
tools/hip/gfx1150-hipblaslt-100401.txt, calibrated on a Radeon 890M with ROCm 7.14.1's hipBLASLt. Prompts read1.5-1.7x faster (3,562 tokens: 124 -> 216 tok/s; 7,010 tokens: 131 -> 226 tok/s; medians of 3 interleaved
rounds). Decode is unchanged.
arch_default_env(): the gfx1151 table of exact speed switches lessSTRATA_HCD_EXACT(17 switches).With and without them, greedy answers were the same text. Decode is +2% and prompts +2-6%.
STRATA_GFX1150_DEFAULTS=0turns them off.The two commits stand alone: the second can be dropped without touching the first.
What changed
Commit 1:
hip: hipBLASLt tuning table for gfx1150 (Radeon 890M, ROCm 7.14.1 / hipBLASLt 100401)tools/hip/gfx1150-hipblaslt-100401.txt(new, 144 rows)STRATA_HIPBLASLT_VERBOSE=1gfx1201-hipblaslt-100500.txttools/hip/tune_hipblaslt.cppagainst AMD's TheRock ROCm 7.14.1 for gfx1150 (hipBLASLt 1.4.1cd957402, version number 100401), with the engine's 32 MiB workspacerepetitions
T=8192 takes 90 ms instead of 308 ms
bench/results/2026-10-07-community-gfx1150/(new)README.md: the rig, the calibration, the measurements and the methodruns.csv: every run of the A/Btune-summary.csv: per-row medians, the kept solution and the candidate countstrata-gfx1150.json: the server config usedbench/results/COMMUNITY.md: one row for the new folder (the PR column still reads-)docs/AMD_HIP.mdSTRATA_HIPBLASLT_TUNINGat the table by hand,because setup does not install for gfx1150
Commit 2:
core: gfx1151's exact speed switches on gfx1150 too, less STRATA_HCD_EXACTinclude/strata/kernels/gfx_arch.hpp: addsgfx_arch_is_gfx1150()src/core/arch_defaults.cpparch_default_env()returns the gfx1151 table for gfx1150 too, withoutSTRATA_HCD_EXACTcannot run
STRATA_GFX1150_DEFAULTS=0orSTRATA_GFX1151_DEFAULTS=0strata: gfx1150 (Strix Point): 17 exact speed switches on by default (STRATA_GFX1150_DEFAULTS=0 turns them off; ...)include/strata/core/arch_defaults.hpp: the header comments cover gfx1150src/core/arch_defaults_test.cpp, new cases:STRATA_HCD_EXACTdocs/STRIX_HALO.md: section 4 notes that gfx1150 takes the same table lessSTRATA_HCD_EXACTdocs/AMD_HIP.mdand the bench README: a sentence each on the new defaultMeasurements (all from
bench/results/2026-10-07-community-gfx1150)Setup for the A/B:
--prefill autostrata serve: prompttimingswith it
after its first sentence, because the summation order of the dense GEMMs changes
hip_prefill_hipblaslt_gemmpasses (launches=4 fallbacks=0)hip_prefill_hcd_exact_parityskips at every T (64-16384), because the table never sends the HC down projectionto 1176 / 1177
STRATA_HIPBLASLT_TUNINGin the config's env:arch_defaults_testpasses with Apple clang (C++17) and GCC 14.2and
ple_parity, which needsbench/microdata.iq_parityby hand: all 10 formats okExtra Notes
ttm.pages_limit=18350080)-DCMAKE_HIP_ARCHITECTURES=gfx1150 -DSTRATA_PREFILL_MMQ=ONto hipBLAS, as with the other tables
table + switches, one run each (base: 153 / 216 / 226 tok/s at 1K / 3.6K / 7K):
STRATA_HIP_WMMA=1: 155 / 252 / 277STRATA_PF_FUSED=1: 155 / 257 / 255STRATA_PF_GEMM=1: 166 / 243 / 262hip_prompt_attn_wmmameasured the WMMA attention 4.4-5.7x faster than the FP32 kernel, with anerror against FP64 of about 3-4.5e-6 (the FP32 kernel: about 2e-6; output scale about 3.6)
tune_hipblaslt's mean of three repetitions was sensitive to single stalledrepetitions. A median over more repetitions (or the selection used here) gave steadier picks
--prefill 16384(the table has T=16384 rows, but the A/B used--prefill auto)🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.