HOME
| OPENMP API Specification: Version 5.1 November 2020

3.4.3  omp_set_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.

Format

SVG-Viewer needed.

 

 
void omp_set_num_teams(int num_teams);  

SVG-Viewer needed.

SVG-Viewer needed.

 

 
subroutine omp_set_num_teams(num_teams) 
integer num_teams  

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_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:

Cross References