[all-commits] [llvm/llvm-project] bde0a8: [Clang][HIP][CUDA] Add `__cluster_dims__` and `__n...
Shilei Tian via All-commits
all-commits at lists.llvm.org
Fri Oct 17 08:40:04 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: bde0a8cd632ec714ea26e04dea0b7bd0f3231cfa
https://github.com/llvm/llvm-project/commit/bde0a8cd632ec714ea26e04dea0b7bd0f3231cfa
Author: Shilei Tian <i at tianshilei.me>
Date: 2025-10-17 (Fri, 17 Oct 2025)
Changed paths:
M clang/include/clang/Basic/Attr.td
M clang/include/clang/Basic/AttrDocs.td
M clang/include/clang/Basic/DiagnosticSemaKinds.td
M clang/include/clang/Sema/Sema.h
M clang/lib/CodeGen/Targets/AMDGPU.cpp
M clang/lib/Headers/__clang_hip_runtime_wrapper.h
M clang/lib/Sema/SemaDeclAttr.cpp
M clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
M clang/test/CodeGenCUDA/Inputs/cuda.h
A clang/test/CodeGenCUDA/cluster_dims.cu
M clang/test/Misc/pragma-attribute-supported-attributes-list.test
M clang/test/SemaCUDA/Inputs/cuda.h
A clang/test/SemaCUDA/cluster_dims.cu
Log Message:
-----------
[Clang][HIP][CUDA] Add `__cluster_dims__` and `__no_cluster__` attribute (#156686)
This PR adds basic frontend support for `__cluster_dims__` and
`__no_cluster__` attribute.
In CUDA/HIP programming, the ``__cluster_dims__`` attribute can be
applied to a kernel function to set the dimensions of a thread block
cluster. The ``__no_cluster__`` attribute can be applied to a kernel
function to indicate that the thread block cluster feature will not be
enabled at both compile time and kernel launch time. Note that
`__no_cluster__` is a LLVM/Clang only attribute.
Co-authored-by: Yaxun (Sam) Liu <yaxun.liu at amd.com>
Co-authored-by: Jay Foad <jay.foad at amd.com>
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list