Next: , Previous: omp_set_nested, Up: Runtime Library Routines


2.18 omp_set_num_threads – Set upper team size limit

Description:
Specifies the number of threads used by default in subsequent parallel sections, if those do not specify a num_threads clause. The argument of omp_set_num_threads shall be a positive integer.
C/C++:

Prototype: void omp_set_num_threads(int);

Fortran:

Interface: subroutine omp_set_num_threads(set)
integer, intent(in) :: set

See also:
OMP_NUM_THREADS, omp_get_num_threads, omp_get_max_threads
Reference:
OpenMP specifications v3.0, section 3.2.1.