Skip to content

Commit 19fa276

Browse files
committed
[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.
1 parent a8ac930 commit 19fa276

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

llvm/docs/AMDGPUUsage.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -820,6 +820,8 @@ supported for the ``amdgcn`` target.
820820
that reach other lanes or by explicitly constructing the scratch buffer descriptor,
821821
triggers undefined behavior when it modifies the scratch values of other lanes.
822822
The compiler may assume that such modifications do not occur.
823+
When using code object V5 ``LIBOMPTARGET_STACK_SIZE`` may be used to provide the
824+
private segment size in bytes, for cases where a dynamic stack is used.
823825

824826
**Constant 32-bit**
825827
*TODO*

openmp/docs/design/Runtimes.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1016,9 +1016,9 @@ default. The solution is to add an explicit map clause in the target region.
10161016
LIBOMPTARGET_STACK_SIZE
10171017
"""""""""""""""""""""""
10181018

1019-
This environment variable sets the stack size in bytes for the CUDA plugin. This
1020-
can be used to increase or decrease the standard amount of memory reserved for
1021-
each thread's stack.
1019+
This environment variable sets the stack size in bytes for the AMDGPU and CUDA
1020+
plugins. This can be used to increase or decrease the standard amount of memory
1021+
reserved for each thread's stack.
10221022

10231023
LIBOMPTARGET_HEAP_SIZE
10241024
"""""""""""""""""""""""

0 commit comments

Comments
 (0)