3.3.1 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()
See also:

omp_get_num_teams_dim – Number of teams along a dimension, OMP_NUM_TEAMS – Specifies the number of teams to use by teams region, omp_get_team_num – Get team number

Reference:

OpenMP specification v4.5, Section 3.2.32.