[PATCH] D154210: AMDGPU: Add some notes about amdgpu-flat-work-group-size

Yaxun Liu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 7 07:27:38 PDT 2023


yaxunl added inline comments.


================
Comment at: llvm/docs/AMDGPUUsage.rst:989
                                              by the ``amdgpu_flat_work_group_size`` CLANG attribute [CLANG-ATTR]_.
-                                             The implied default value is 1,1024.
+                                             The implied default value is 1,1024. The behavior is
+                                             undefined if the number of logically active lanes
----------------
Clang always adds this function attribute to the kernel. The implicit default value specified by Clang is 1,256 for OpenCL and 1,1024 for HIP.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D154210/new/

https://reviews.llvm.org/D154210



More information about the llvm-commits mailing list