omp_set_num_teams (GNU libgomp)

#### 3.3.3 `omp_set_num_teams` – Set upper teams limit for teams construct ¶

Description:

  Specifies the upper bound for number of teams created by the teams construct which does not specify a `num_teams` clause. The argument of `omp_set_num_teams` shall be a positive integer.

C/C++:

  Prototype: | `void omp_set_num_teams(int num_teams);`

Fortran:

  Interface: | `subroutine omp_set_num_teams(num_teams)`
  | `integer, intent(in) :: num_teams`

See also:

  `OMP_NUM_TEAMS` – Specifies the number of teams to use by teams region, `omp_get_num_teams` – Number of teams, `omp_get_max_teams` – Maximum number of teams of teams region

Reference:

  OpenMP specification v5.1, Section 3.4.3.