[TRITON][GLUON][GFX950] Add Unified Attention Gluon Kernel - #4614
Open
cagrikymk wants to merge 10 commits into
Open
[TRITON][GLUON][GFX950] Add Unified Attention Gluon Kernel#4614cagrikymk wants to merge 10 commits into
cagrikymk wants to merge 10 commits into
Conversation
Contributor
🏷️ CI GuideRuns automatically on every PR:
Extended tests (opt-in via labels):
|
Contributor
Author
|
GPT-OSS 120b benchmark, bf16 kv cache: ISL/OSL 1024/1024
ISL/OSL 8192/1024
|
cagrikymk
marked this pull request as ready for review
August 7, 2026 15:57
vgokhale
previously approved these changes
Aug 7, 2026
Contributor
Author
|
@vgokhale Due to triton version difference between CI and my local setup (both are 3.7 but at different commits), I was getting LLVM compilation error when using waves_per_eu=3 with sliding window in CI: I changed occupancy to 0 for that case, and it compiles to a kernel with occupancy 3 without any error in CI triton now. |
vgokhale
previously approved these changes
Aug 7, 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.
Motivation
This PR adds gfx950 gluon kernel for unified attention. It uses single kernel that supports both 2d and 3d grid.
Performance is tuned for head sizes [64, 128, 256], dtype fp8 x fp8 and bf16 x bf16.
Remaining Steps
Technical Details
Performance numbers are collected using Triton 3.7.1.
Geomean speedup by head_size against Triton
This is the geomean speedup of various run configs with varrying concurrency, kv/seq. length, number of KV/Q heads,
Detailed performance report:
gluon_gfx950_perf_report.md
Test Plan
Existing tests are routed to the gluon kernel if conditions are met
Test Result
Tests pass