omp_set_teams_thread_limit – Set upper thread limit for teams construct#
- Description:
Specifies the upper bound for number of threads that will be available for each team created by the teams construct which does not specify a
thread_limit
clause. The argument ofomp_set_teams_thread_limit
shall be a positive integer.- C/C++:
Prototype:
void omp_set_teams_thread_limit(int thread_limit);
- Fortran:
Interface:
subroutine omp_set_teams_thread_limit(thread_limit)
integer, intent(in) :: thread_limit
- See also:
OMP_TEAMS_THREAD_LIMIT – Set the maximum number of threads imposed by teams, omp_get_teams_thread_limit – Maximum number of threads imposed by teams, omp_get_thread_limit – Maximum number of threads
- Reference:
OpenMP specification v5.1, Section 3.4.5.