Next: omp_set_nested, Previous: omp_set_dynamic, Up: Runtime Library Routines [Contents][Index]

### 2.26 `omp_set_max_active_levels` – Limits the number of active parallel regions

Description:

  This function limits the maximum allowed number of nested, active parallel regions.

C/C++

  Prototype: | `void omp_set_max_active_levels(int max_levels);`

Fortran:

  Interface: | `subroutine omp_set_max_active_levels(max_levels)`
  | `integer max_levels`

See also:

  omp_get_max_active_levels, omp_get_active_level

Reference:

  OpenMP specification v4.5, Section 3.2.15.