diff --git a/llvm/docs/AMDGPUUsage.rst b/llvm/docs/AMDGPUUsage.rst index 63566c4a35ccc..7fb3d70bbeffe 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 62ed75797955e..e7371b34e0350 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 """""""""""""""""""""""