OpenMP: Difference between revisions

Marked this version for translation
mNo edit summary
(Marked this version for translation)
Line 187: Line 187:
[http://en.wikipedia.org/wiki/Non_Uniform_Memory_Access NUMA] architecture.
[http://en.wikipedia.org/wiki/Non_Uniform_Memory_Access NUMA] architecture.


<!--T:25-->
The <code>OMP_STACKSIZE</code> environment variable specifies the size of the stack for each thread created by the OpenMP runtime. Note that the main OpenMP thread (executing the sequential part of the OpenMP program) gets its stack size from the execution shell, while <code>OMP_STACKSIZE</code> applies to each additional thread created at runtime. If <code>OMP_STACKSIZE</code> is not set, its implied value will be 4M. If your OpenMP code does not have enough stack memory, it might crash with a segmentation fault error message.
The <code>OMP_STACKSIZE</code> environment variable specifies the size of the stack for each thread created by the OpenMP runtime. Note that the main OpenMP thread (executing the sequential part of the OpenMP program) gets its stack size from the execution shell, while <code>OMP_STACKSIZE</code> applies to each additional thread created at runtime. If <code>OMP_STACKSIZE</code> is not set, its implied value will be 4M. If your OpenMP code does not have enough stack memory, it might crash with a segmentation fault error message.


Bureaucrats, cc_docs_admin, cc_staff
2,879

edits