diff options
author | Michael Halkenhaeuser <MichaelGerald.Halkenhauser@amd.com> | 2023-11-28 13:56:19 -0500 |
---|---|---|
committer | Michael Halkenhaeuser <MichaelGerald.Halkenhauser@amd.com> | 2023-11-28 14:09:42 -0500 |
commit | 19fa27605ca63c0d60ffd532f41de004a57a455f (patch) | |
tree | d92ecfc9c55031e8180b153ce0ca6bffa6a43572 | |
parent | a8ac930b99d93b2a539ada7e566993d148899144 (diff) |
[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.
-rw-r--r-- | llvm/docs/AMDGPUUsage.rst | 2 | ||||
-rw-r--r-- | openmp/docs/design/Runtimes.rst | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/llvm/docs/AMDGPUUsage.rst b/llvm/docs/AMDGPUUsage.rst index 63566c4a35cc..7fb3d70bbeff 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 62ed75797955..e7371b34e035 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 """"""""""""""""""""""" |