libgomp: omp_set_num_threads
1
1 2.28 'omp_set_num_threads' - Set upper team size limit
1 ======================================================
1
1 _Description_:
1 Specifies the number of threads used by default in subsequent
1 parallel sections, if those do not specify a 'num_threads' clause.
1 The argument of 'omp_set_num_threads' shall be a positive integer.
1
1 _C/C++_:
1 _Prototype_: 'void omp_set_num_threads(int num_threads);'
1
1 _Fortran_:
1 _Interface_: 'subroutine omp_set_num_threads(num_threads)'
1 'integer, intent(in) :: num_threads'
1
1 _See also_:
DONTPRINTYET 1 ⇒OMP_NUM_THREADS, ⇒omp_get_num_threads, *note1 omp_get_max_threads::
1
1 _Reference_:
1 OpenMP specification v4.5 (http://www.openmp.org/), Section 3.2.1.
1