[llvm] AMDGPU: Treat uint32_max as the default value for amdgpu-max-num-workgroups (PR #113751)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Sat Oct 26 08:22:30 PDT 2024


================
@@ -54,16 +81,25 @@ attributes #4 = {"amdgpu-max-num-workgroups"="1024,1024,1024"}
 
 ; CHECK: - .args:
 ; CHECK:        .max_flat_workgroup_size: 1024
+; CHECK-NEXT:   .max_num_workgroups_x: 0
----------------
arsenm wrote:

It doesn't say that. It states "Clang only emits this attribute when all the three numbers are >= 1." Which doesn't really make sense.

0 doesn't make sense as a value 

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


More information about the llvm-commits mailing list