]> git.ipfire.org Git - thirdparty/gcc.git/blob - libgomp/doc/openmp-runtime-library-routines/ompsetdynamic.rst
sphinx: add missing trailing newline
[thirdparty/gcc.git] / libgomp / doc / openmp-runtime-library-routines / ompsetdynamic.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 .. _omp_set_dynamic:
7
8 omp_set_dynamic -- Enable/disable dynamic teams
9 ***********************************************
10
11 Description:
12 Enable or disable the dynamic adjustment of the number of threads
13 within a team. The function takes the language-specific equivalent
14 of ``true`` and ``false``, where ``true`` enables dynamic
15 adjustment of team sizes and ``false`` disables it.
16
17 C/C++:
18 .. list-table::
19
20 * - *Prototype*:
21 - ``void omp_set_dynamic(int dynamic_threads);``
22
23 Fortran:
24 .. list-table::
25
26 * - *Interface*:
27 - ``subroutine omp_set_dynamic(dynamic_threads)``
28 * -
29 - ``logical, intent(in) :: dynamic_threads``
30
31 See also:
32 :ref:`OMP_DYNAMIC`, :ref:`omp_get_dynamic`
33
34 Reference:
35 :openmp:`4.5`, Section 3.2.7.