Next: omp_set_schedule, Previous: omp_set_nested, Up: Runtime Library Routines [Contents][Index]
omp_set_num_threads
– Set upper team size limitSpecifies 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.
Prototype: | void omp_set_num_threads(int num_threads); |
Interface: | subroutine omp_set_num_threads(num_threads) |
integer, intent(in) :: num_threads |
OpenMP specification v4.5, Section 3.2.1.