mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #4764] [Docs] re-measure rocBLAS tuning tables when the package rebuilds under the same version #5171
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#5171
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/4764
Author: @sakuumomo
Created: 10/30/2026
Status: 🔄 Open
Base:
main← Head:docs-rocblas-per-build📝 Commits (1)
a62cb3ddocs(amd-hip): record the rocBLAS build-identity trap - packaged rocBLAS (7.2.x in Nixpkgs and the ROCm repos) self-reports a bare 5.2.0. on every rebuild, and the rocBLAS tuning table's version gate matches exactly that string. Solution indices are per-build: observed on a live engine where a same-version rebuild of the rocBLAS package moved the indices under a table calibrated against the previous build - the gate passed, 17426 'rocBLAS solution ... refused (status 11)' lines followed, each shape fell back to the default kernel after three refusals, results stayed correct, speed did not. The old wording ('the full version string, tweak hash included') implied the string always identifies a build; it names one paragraph that says when it does not and what re-calibration to run after any package rebuild📊 Changes
1 file changed (+11 additions, -3 deletions)
View changed files
📝
docs/AMD_HIP.md(+11 -3)📄 Description
Problem and result: On a live gfx1030 engine, a rebuild of the rocBLAS package under an unchanged self-reported version string left the tuning table loaded but wrong: the gate passed,
prefill gemm: rocBLAS solution -1086326174 refused (status 11) for T=6789 N=4 K=10240 ldy=4 three times; the default kernel runs for this shaperepeated across every tuned shape (17426 lines), prompts ran on default kernels, results stayed correct. The docs' "valid for one rocBLAS build (the full version string, tweak hash included)" implies the version string always identifies a build; packaged rocBLAS 7.2.x (Nixpkgs, ROCm repos) reports bare5.2.0.with no tweak hash on every rebuild, so it cannot. After this PR the section says so and names the cure: re-runtune_rocblasagainst the exact library the engine loads after any package rebuild, even when the version string did not change.Related discussion: none found in open or closed issues covering this.
Approach: docs-only. One sentence reworded and one paragraph added in the rocBLAS table section: what packaged builds report, why indices are per-build, the observable symptom (status-11 burst plus fallbacks, no wrong results), and the re-calibration rule. No engine or table-file changes.
Validation:
Passed: reproduced on my own machine (RX 6900 XT, gfx1030, engine 0.1.54 HIP build, rocBLAS 7.2.3 rebuilt via a distro package update): full engine log with the 17426-line refusal burst kept as evidence; re-running
tune_rocblasagainst the rebuilt library wrote a fresh 112-row table (77 tuned rows), and the next engine boot loggedrocBLAS tuning enabled (112 rows, 77 with a solution, gfx1030, rocBLAS 5.2.0.)with zero refusals. In that re-measure only 8 of 77 tuned indices matched the old table - quantitative evidence that the indices move under a same-version rebuild. Docs checks: the section renders, the changed cross-reference resolves to the same section, no other file or claim touched (diff is 11 insertions / 3 deletions in one file).Failed: none observed.
Not run: none required - documentation-only change, no build or GPU execution involved in the PR itself.
Limits: the 7.2.x reports-
5.2.0.behavior is stated from observation on Nixpkgs-built rocBLAS 7.2.3 and 7.2.4, both self-reporting5.2.0.(the tuner meta line); I did not audit every distribution's packaging. The shipped Ubuntu/opt/rocm5.6.0.8d1ae90e table has a tweak hash and is unaffected by this note.Update (2026-11-07): rebased onto upstream
v0.2.12(123bad4a), zero conflicts; the content is identical (11 insertions / 3 deletions indocs/AMD_HIP.md— the section this PR rewrites had not moved betweenv0.2.8andv0.2.12). New tipa62cb3d3(single commit, title check green); the previous headb835984bis preserved as tagpin-b835984b. Commit re-signed (GPG ed25519) on 2026-11-07.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.