[Openmp-commits] [openmp] 19fa276 - [NFC][docs] Add AMDGPU documentation for `LIBOMPTARGET_STACK_SIZE`

Michael Halkenhaeuser via Openmp-commits openmp-commits at lists.llvm.org
Tue Nov 28 11:10:53 PST 2023


Author: Michael Halkenhaeuser
Date: 2023-11-28T14:09:42-05:00
New Revision: 19fa27605ca63c0d60ffd532f41de004a57a455f

URL: https://github.com/llvm/llvm-project/commit/19fa27605ca63c0d60ffd532f41de004a57a455f
DIFF: https://github.com/llvm/llvm-project/commit/19fa27605ca63c0d60ffd532f41de004a57a455f.diff

LOG: [NFC][docs] Add AMDGPU documentation for `LIBOMPTARGET_STACK_SIZE`

Add documentation w.r.t. changes by #72606, which allows to set the dynamic
callstack size.

Added: 
    

Modified: 
    llvm/docs/AMDGPUUsage.rst
    openmp/docs/design/Runtimes.rst

Removed: 
    


################################################################################
diff  --git a/llvm/docs/AMDGPUUsage.rst b/llvm/docs/AMDGPUUsage.rst
index 63566c4a35ccc10..7fb3d70bbeffebb 100644
--- a/llvm/docs/AMDGPUUsage.rst
+++ b/llvm/docs/AMDGPUUsage.rst
@@ -820,6 +820,8 @@ supported for the ``amdgcn`` target.
   that reach other lanes or by explicitly constructing the scratch buffer descriptor,
   triggers undefined behavior when it modifies the scratch values of other lanes.
   The compiler may assume that such modifications do not occur.
+  When using code object V5 ``LIBOMPTARGET_STACK_SIZE`` may be used to provide the
+  private segment size in bytes, for cases where a dynamic stack is used.
 
 **Constant 32-bit**
   *TODO*

diff  --git a/openmp/docs/design/Runtimes.rst b/openmp/docs/design/Runtimes.rst
index 62ed75797955e28..e7371b34e0350f6 100644
--- a/openmp/docs/design/Runtimes.rst
+++ b/openmp/docs/design/Runtimes.rst
@@ -1016,9 +1016,9 @@ default. The solution is to add an explicit map clause in the target region.
 LIBOMPTARGET_STACK_SIZE
 """""""""""""""""""""""
 
-This environment variable sets the stack size in bytes for the CUDA plugin. This
-can be used to increase or decrease the standard amount of memory reserved for
-each thread's stack.
+This environment variable sets the stack size in bytes for the AMDGPU and CUDA
+plugins. This can be used to increase or decrease the standard amount of memory
+reserved for each thread's stack.
 
 LIBOMPTARGET_HEAP_SIZE
 """""""""""""""""""""""


        


More information about the Openmp-commits mailing list