void omp_set_teams_thread_limit(int thread_limit);
Summary The omp_set_teams_thread_limit routine defines the maximum number of OpenMP threads that can participate in each contention group created by a teams construct.
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_teams_thread_limit region is the generating task.
Effect The omp_set_teams_thread_limit routine sets the value of the teams-thread-limit-var ICV to the value of the thread_limit argument.
If the value of thread_limit exceeds the number of OpenMP threads that an implementation supports for each contention group created by a teams construct, the value of the teams-thread-limit-var ICV will be set to the number that is supported by the implementation.
Restrictions Restrictions to the omp_set_teams_thread_limit routine are as follows: