3.3.3 omp_set_num_teams – Set upper teams limit for teams construct


Specifies the upper bound for number of teams created by the teams construct which does not specify a num_teams clause. The argument of omp_set_num_teams shall be a positive integer.

Prototype:void omp_set_num_teams(int num_teams);
Interface:subroutine omp_set_num_teams(num_teams)
integer, intent(in) :: num_teams
See also:

OMP_NUM_TEAMS – Specifies the number of teams to use by teams region, omp_get_num_teams – Number of teams, omp_get_max_teams – Maximum number of teams of teams region


OpenMP specification v5.1, Section 3.4.3.