[clang] [Clang][HIP][CUDA] Add `__cluster_dims__` and `__no_cluster__` attribute (PR #156686)
Erich Keane via cfe-commits
cfe-commits at lists.llvm.org
Thu Sep 4 07:31:55 PDT 2025
================
@@ -7532,6 +7532,25 @@ A managed variable can be accessed in both device and host code.
}];
}
+def CUDAClusterDimsAttrDoc : Documentation {
+ let Category = DocCatDecl;
+ let Content = [{
+In CUDA/HIP programming, the ``__cluster_dims__`` attribute can be applied to a kernel function
----------------
erichkeane wrote:
We only refer to them as `__global__` and `__device__` because they are in a position where the namespace is reserved. As these are attributes, we should NOT be referring to them by that name.
https://github.com/llvm/llvm-project/pull/156686
More information about the cfe-commits
mailing list