omp_get_num_teams_dim (GNU libgomp)

#### 3.4.3 `omp_get_num_teams_dim` – Number of teams along a dimension ¶

description:

  Returns the size in dimension DIM of the number of initial teams, i.e. the value of the league-size-var ICV in dimension dim. For inactive spatial dimensions, the routine returns 1. The dimension argument DIM must be non-negative.

  Fortran note: In GCC, this routine does not support passing default-kind integer arguments with `-fdefault-integer-8`.

c/c++:

  prototype: | `int omp_get_num_teams(int dim)`

fortran:

  interface: | `integer function omp_get_num_teams(dim)`
  | `integer :: dim`

See also:

  `omp_get_num_teams` – Number of teams, `OMP_NUM_TEAMS` – Specifies the number of teams to use by teams region, `omp_get_team_num_dim` – Get team number in a dimension `omp_get_supported_active_team_dims` – Number of supported team dimensions

reference:

  OpenMP Technical Report 15, Section 29.3