Repository navigation
Studio ROCm: ship the gfx1151 hipBLASLt GEMM table for the Windows ROCm 7.14 build - #18838
Merged
Merged
Conversation
…Cm 7.14 build Windows Studio installs torch 2.11.0+rocm7.14.0 from the multi-arch index, whose hipBLASLt (100401-cd957402) differs from the Linux gfx1151 build the existing table was measured on, so the table never matched there and every DiT GEMM ran on hipBLASLt's default pick. Measured on a Windows gfx1151 runner: 1.03-1.37x on the large Qwen-Image-2.1 / FLUX.3 klein 1024^2 shapes, up to 2.5x on the small ones. Rows where the tuned pick was not faster are left out (default pick kept).
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Member
Author
|
@codex review |
|
Codex Review: Didn't find any major issues. Breezy! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Studio ships one hipBLASLt GEMM table for gfx1151 (
rocm_gemm_tables/gfx1151_torch2.11.0_hip713_...csv, #17299). TunableOp only reads a table whose validators match the running build exactly, and that table was measured on the Linux build (torch 2.11.0+rocm7.13.0, hipBLASLt 100300-02d4f738fc). The Windows installer pins torch 2.11.0+rocm7.14.0 from AMD's multi-arch index (HIP 714, hipBLASLt 100401-cd957402), so on Windows the table never matched and every denoiser GEMM ran on hipBLASLt's default pick.Change
Adds
gfx1151_torch2.11.0_hip714_qwenimage21_flux3klein_1024.csv: the same Qwen-Image-2.1 and FLUX.3 klein 1024x1024 shapes as the Linux table, tuned on a Windows gfx1151 runner with Studio's own Windows environment. There is no code change. The loader already picks a table only on an exact validator match, so Linux and every other build keep reading only their own table.Per GEMM on the Windows runner (default pick vs the table's pick, median of 30 timed calls):
The small shapes (modulation, text stream) gain 1.35-2.56x. One shape (128 x 4096 x 3072) was slower with the tuned pick (0.73x), so it is left out and keeps the default. The largest difference between the tuned and default outputs is 3.8e-3 to 7.5e-3 of the output range, which is bf16 summation order.
End to end on Windows (same job, main vs this branch): measured on one Windows gfx1151 runner, main first then this branch in the same job, 1024x1024, 3 renders each (run 44978757641):
Main's first Qwen-Image render (5.57 s/step, 146.8 s, a cold start) is left out of its range. For scale, two main renders of Qwen-Image differ from each other by LPIPS 0.0015. Device memory is 48.0 GiB on main and 48.1 GiB here.
Tests
tests/test_diffusion_rocm_tunableop.py::test_windows_and_linux_gfx1151_builds_each_get_their_own_table: a host with the Windows validators selects only the new table, and a host with the Linux validators selects only the Linux one. Fails on main (no Windows table), passes here. The existing shipped-table tests (full validators, four-column rows, package data glob) cover the new file too.tests/test_diffusion_rocm_tunableop.py: 21 passed.Not proven here