In this repo, what optimizations are applied for AMD GPU gfx1151 ?
Rate quality
Private research annotation
Sign in to add a private research label or note.
- User
In this repo, what optimizations are applied for AMD GPU gfx1151 ?
Assistant
Based on the Triton codebase analysis,
gfx1151is treated as part of the gfx11 family (RDNA3 architecture) and receives the following specific optimizations:1. WMMA (Wave Matrix Multiply Accumulate) v1
- Optimization: The compiler applies the
BlockedToWMMApass with WMMA version 1. - Mechanism: Blocked
dotoperations in Triton IR are converted into RDNA3-specific WMMA intrinsics. - Source:
third_party/amd/lib/TritonAMDGPUTransforms/AccelerateAMDMatmul.cppexplicitly assigns for architectures starting with "gfx11".
- Optimization: The compiler applies the
- User
Does it apply WMMAv3?
Assistant
No, WMMAv3 is not applied for
gfx1151.According to the
getWmmaVersionlogic inthird_party/amd/lib/TritonAMDGPUTransforms/AccelerateAMDMatmul.cpp,gfx1151uses WMMAv1.The codebase explicitly defines the versions as follows:
- WMMAv1: Applied to architectures starting with
gfx11(which includesgfx1151). - WMMAv2: Applied to architectures starting with
gfx12(excludinggfx1250). - WMMAv3: Explicitly reserved for
gfx1250.
Code reference from
AccelerateAMDMatmul.cpp:cppint getWmmaVersion(StringRef archGen) { if (archGen.starts_with("gfx11")) return 1; if (archGen.starts_with("gfx12") && !archGen.ends_with("50")) return 2; if (archGen == "gfx1250") return 3; return 0; }- WMMAv1: Applied to architectures starting with