[Mlir-commits] [mlir] [MLIR][NVVM] Add "blocksareclusters" kernel attribute support (PR #154519)

Rajat Bajpai llvmlistbot at llvm.org
Wed Aug 20 05:53:19 PDT 2025


================
@@ -83,6 +83,10 @@ def NVVM_Dialect : Dialect {
     /// are grid constants.
     static StringRef getGridConstantAttrName() { return "nvvm.grid_constant"; }
 
+    /// Get the name of the attribute used to annotate the `.blocksareclusters`
+    /// PTX directive for kernel functions.
----------------
rajatbajpai wrote:

Does this look okay?

>This attribute implies that the grid launch configuration for the corresponding kernel function is specifying the number of clusters instead of the number of thread blocks. This attribute is only allowed for kernel functions and requires nvvm.reqntid and nvvm.cluster_dim attributes.

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


More information about the Mlir-commits mailing list