HOME
| OPENMP API Specification: Version 5.1 November 2020

3.4.5  omp_set_teams_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.

Format

SVG-Viewer needed.

 

 
void omp_set_teams_thread_limit(int thread_limit);  

SVG-Viewer needed.

SVG-Viewer needed.

 

 
subroutine omp_set_teams_thread_limit(thread_limit) 
integer thread_limit  

SVG-Viewer needed.

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:

Cross References