GNU libgomp: omp_get_num_teams

Next: omp_get_num_threads, Previous: omp_get_num_procs, Up: Runtime Library Routines [Contents][Index]

### 2.13 `omp_get_num_teams` – Number of teams

Description:

  Returns the number of teams in the current team region.

C/C++:

  Prototype: | `int omp_get_num_teams(void);`

Fortran:

  Interface: | `integer function omp_get_num_teams()`

Reference:

  OpenMP specification v4.5, Section 3.2.32.