]> git.ipfire.org Git - thirdparty/gcc.git/blob - libgomp/doc/openmp-environment-variables/ompstacksize.rst
sphinx: copy files from texi2rst-generated repository
[thirdparty/gcc.git] / libgomp / doc / openmp-environment-variables / ompstacksize.rst
1 ..
2 Copyright 1988-2022 Free Software Foundation, Inc.
3 This is part of the GCC manual.
4 For copying conditions, see the copyright.rst file.
5
6 .. index:: Environment Variable
7
8 .. _omp_stacksize:
9
10 OMP_STACKSIZE -- Set default thread stack size
11 **********************************************
12
13 Description:
14 Set the default thread stack size in kilobytes, unless the number
15 is suffixed by ``B``, ``K``, ``M`` or ``G``, in which
16 case the size is, respectively, in bytes, kilobytes, megabytes
17 or gigabytes. This is different from ``pthread_attr_setstacksize``
18 which gets the number of bytes as an argument. If the stack size cannot
19 be set due to system constraints, an error is reported and the initial
20 stack size is left unchanged. If undefined, the stack size is system
21 dependent.
22
23 Reference:
24 :openmp:`4.5`, Section 4.7