void omp_set_num_teams(int num_teams);
Summary The omp_set_num_teams routine affects the number of threads to be used for subsequent teams regions that do not specify a num_teams clause, by setting the value of the nteams-var ICV of the current task.
Constraints on Arguments The value of the argument passed to this routine must evaluate to a positive integer, or else the behavior of this routine is implementation defined.
Binding The binding task set for an omp_set_num_teams region is the generating task.
Effect The effect of this routine is to set the value of the nteams-var ICV of the current task to the value specified in the argument.
Restrictions Restrictions to the omp_set_num_teams routine are as follows: