[HIP] Add offload PGO tiled matmul E2E test#366
Open
yxsamliu wants to merge 1 commit into
Open
Conversation
jmmartinez
reviewed
Mar 10, 2026
jmmartinez
reviewed
Mar 10, 2026
jmmartinez
left a comment
Contributor
There was a problem hiding this comment.
Looks good to me but I'll JP have the final word.
jplehr
reviewed
Mar 11, 2026
jplehr
left a comment
Contributor
There was a problem hiding this comment.
LG
Just comments about the GPU arch of the bots.
Reporting the actual PGO speed-up just for information purpose is good.
7e4c1ad to
1edfa31
Compare
Add a tiled matrix multiply kernel that demonstrates the offload PGO workflow on AMDGPU. The kernel uses a large per-thread sub-tile (configurable via -DTH_M and -DTH_N) with LDS-based cooperative tile loading, creating natural register pressure that exceeds the VGPR budget and causes spills. Boundary tile handling creates biased branches that PGO can optimize by guiding the register allocator to reduce spills on the hot path. Sub-tile sizes are tunable per architecture to induce spills on GPUs with different register file sizes. Two tests are registered: - pgo-tiled-matmul: correctness test (compile + run + verify) - pgo-tiled-matmul-pipeline: full PGO pipeline test (baseline -> instrument -> collect -> merge -> PGO build -> compare) The pipeline test verifies that the full -fprofile-generate / -fprofile-use workflow completes successfully and reports the performance difference for information.
1edfa31 to
f6050ee
Compare
Contributor
Author
|
Gentle ping. The llvm-zorg PR needed by this test has landed now: llvm/llvm-zorg#868 All review comments here have been addressed and resolved. Could you take another look when you get a chance? |
jmmartinez
approved these changes
Jun 15, 2026
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.
[HIP] Add offload PGO tiled matmul E2E test
Add a tiled matrix multiply kernel that demonstrates the offload PGO
workflow on AMDGPU. The kernel uses a large per-thread sub-tile
(configurable via -DTH_M and -DTH_N) with LDS-based cooperative tile
loading, creating natural register pressure that exceeds the VGPR
budget and causes spills. Boundary tile handling creates biased
branches that PGO can optimize by guiding the register allocator to
reduce spills on the hot path.
Sub-tile sizes are tunable per architecture to induce spills on GPUs
with different register file sizes.
Two tests are registered:
(baseline -> instrument -> collect -> merge -> PGO build -> compare)
The pipeline test verifies that the full -fprofile-generate /
-fprofile-use workflow completes successfully and reports the
performance difference for information.