[libc-commits] [libc] [libc] Add single threaded kernel attributes to AMDGPU startup utility (PR #104651)

Matt Arsenault via libc-commits libc-commits at lists.llvm.org
Fri Aug 16 23:15:11 PDT 2024


================
@@ -41,7 +41,10 @@ static void call_fini_array_callbacks() {
 
 } // namespace LIBC_NAMESPACE_DECL
 
-extern "C" [[gnu::visibility("protected"), clang::amdgpu_kernel]] void
+extern "C" [[gnu::visibility("protected"), clang::amdgpu_kernel,
+             clang::amdgpu_flat_work_group_size(1, 1),
+             clang::amdgpu_max_num_work_groups(1),
+             clang::amdgpu_waves_per_eu(1, 1)]] void
----------------
arsenm wrote:

You don't want amdgpu_waves_per_eu

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


More information about the libc-commits mailing list