[llvm] [AMDGPU] Replace dynamic VGPR feature with attribute (PR #133444)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 25 05:57:54 PDT 2025


================
@@ -221,11 +226,10 @@ static void testAbsoluteLimits(StringRef CPUName, StringRef FS,
 }
 
 TEST(AMDGPU, TestOccupancyAbsoluteLimits) {
-  testAbsoluteLimits("gfx1200", "+wavefrontsize32", 1, 16, 256);
-  testAbsoluteLimits("gfx1200", "+wavefrontsize32,+dynamic-vgpr", 1, 16, 128);
-  testAbsoluteLimits(
-      "gfx1200", "+wavefrontsize32,+dynamic-vgpr,+dynamic-vgpr-block-size-32",
-      1, 16, 256);
+  testAbsoluteLimits("gfx1200", "+wavefrontsize32", false, 1, 16, 256);
+  testAbsoluteLimits("gfx1200", "+wavefrontsize32", true, 1, 16, 128);
+  testAbsoluteLimits("gfx1200", "+wavefrontsize32,+dynamic-vgpr-block-size-32",
+                     true, 1, 16, 256);
----------------
arsenm wrote:

I'm reading this differently. "The VGPR block size is configurable to be 16-VGPRs with a maximum allocation of 128 VGPRs per wave" - this is a software configurable parameter, it's not a property of the target. It just has poor configurability unlike other kernel settings 

https://github.com/llvm/llvm-project/pull/133444


More information about the llvm-commits mailing list