mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #3924] [CLOSED] [Engine] rocBLAS table for gfx1030 with rocBLAS 5.2.0 (Arch Linux ROCm 7.2.4): prompts below 1,152 tokens 12-18% faster #4835
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#4835
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/3924
Author: @schmittcn
Created: 10/24/2026
Status: ❌ Closed
Base:
main← Head:pr/gfx1030-rocblas-rocm72📝 Commits (5)
2788a78tools/hip: gfx1030 rocBLAS table for ROCm 7.2.4 (Arch, rocBLAS 5.2.0.dabb6df2b98-dirty)8b11b58bench: gfx1030 rocBLAS table for ROCm 7.2.4 (Arch), A/B on RX 6900 XT: prompts below 1,152 tokens -12 to -18%, 11K -4 to -9%b02ab6cdocs: AMD_HIP.md names the ROCm 7.2.4 (Arch) gfx1030 rocBLAS table5cfa15bMerge remote-tracking branch 'upstream/main' into pr/gfx1030-rocblas-rocm72354bded[Docs] rocBLAS table: exact version string, directory setting, no end-to-end gain on a layer split📊 Changes
13 files changed (+1564 additions, -1 deletions)
View changed files
➕
bench/results/2026-10-24-rdna2-rocblas-table-rocm72/README.md(+83 -0)➕
bench/results/2026-10-24-rdna2-rocblas-table-rocm72/answers-off.txt(+12 -0)➕
bench/results/2026-10-24-rdna2-rocblas-table-rocm72/answers-on.txt(+12 -0)➕
bench/results/2026-10-24-rdna2-rocblas-table-rocm72/config-on.json(+58 -0)➕
bench/results/2026-10-24-rdna2-rocblas-table-rocm72/timing-off-run1.txt(+24 -0)➕
bench/results/2026-10-24-rdna2-rocblas-table-rocm72/timing-off-run2.txt(+24 -0)➕
bench/results/2026-10-24-rdna2-rocblas-table-rocm72/timing-off-run3.txt(+24 -0)➕
bench/results/2026-10-24-rdna2-rocblas-table-rocm72/timing-on-run1.txt(+28 -0)➕
bench/results/2026-10-24-rdna2-rocblas-table-rocm72/timing-on-run2.txt(+28 -0)➕
bench/results/2026-10-24-rdna2-rocblas-table-rocm72/timing-on-run3.txt(+28 -0)➕
bench/results/2026-10-24-rdna2-rocblas-table-rocm72/tune-summary.txt(+1122 -0)📝
docs/AMD_HIP.md(+5 -1)➕
tools/hip/gfx1030-rocblas-5.2.0.dabb6df2b98-dirty.txt(+116 -0)📄 Description
Problem and result
The rocBLAS tables in
tools/hipcover gfx1030 with rocBLAS 5.6.0.8d1ae90e (ROCm 10.0.0). #3343 adds 5.4.0.ad84daa81c(TheRock 7.13). Arch Linux packages ROCm 7.2.4 (
rocblas 7.2.4-3). Its rocBLAS reports5.2.0.dabb6df2b98-dirty, soan engine built against the system ROCm on Arch finds no table for its build and runs rocBLAS's default kernels.
This PR adds that table. It was made with
tools/hip/tune_rocblason an RX 6900 XT against that rocBLAS, anddocs/AMD_HIP.md now names it. With it, prompts below 1,152 tokens read 12-18% faster on the GPU timeline. Prompts of
1.3K-1.5K tokens read 2-4% faster, and prompts of 11K-12K tokens 4-9% faster. No code changes: setup already points
STRATA_ROCBLAS_TUNINGattools/hipon gfx103x, and the engine takes the file of its own build.Related discussion
#3343, the same kind of table for TheRock's rocBLAS 5.4.0. This PR is independent of it, and the two files do not
overlap. #981 is the table mechanism.
Approach
LD_LIBRARY_PATH=/opt/rocm/lib build-hip/tune_rocblas --tuning-out tools/hip/gfx1030-rocblas-5.2.0.dabb6df2b98-dirty.txtwith the defaults. It wrote 112 rows: 78 with a solution, 34
default. Each solution it kept matched the defaultkernel's output (relative L2 about 2e-5, no padding writes). The full tuner output, the raw timing lines, the answers
and the sanitized config are in
bench/results/2026-10-24-rdna2-rocblas-table-rocm72/. The measurement follows themethod of
bench/results/2026-10-05-rdna2-rocblas-table.Validation
Environment:
lib_dirs/opt/rocm/lib.7ddc17a3. Its only local changes are insrc/qwen35, which the measured model doesnot use.
--adapt-every 100000in both arms).Passed:
STRATA_ROCBLAS_TUNING(unset or
tools/hip). Each arm got 12 prompts (685-12,164 tokens), each from its own offset ofdocs/DETAILS.md, with temperature 0 andmax_tokens8. Each arm ran three times as a fresh server. The GPUtimeline comes from
strata prefill timing. Mean change:rocBLAS tuning enabled (112 rows, 78 with a solution, gfx1030, rocBLAS 5.2.0.dabb6df2b98-dirty)). Each on-arm run reportstuned_launches=6268 fallbacks=0.Failed:
"request:" against "request.". This is the FP16 rounding of a different kernel; #981's report saw identical answers
on its four prompts.
Not run:
table and says so in its log.
Limits
One machine, one model. The table is valid for this one rocBLAS build only.
Ubuntu ROCm 7.2.4, a table of this kind loaded and was used but made no end-to-end difference at 4K and 16K
prompts (expert streaming and the hand-off dominate there; see the comment by @DylanFromMassey).
5.2.0.dabb6df2b9, so this file does not load there; thatbuild needs its own table. docs/AMD_HIP.md now says so and recommends pointing
STRATA_ROCBLAS_TUNINGat thedirectory (setup's default) so each GPU of a split takes its own file.
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.