3.1.16 omp_get_max_active_levels – Current maximum number of active regions

Description:

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

C/C++
Prototype:int omp_get_max_active_levels(void);
Fortran:
Interface:integer function omp_get_max_active_levels()
See also:

omp_set_max_active_levels – Limits the number of active parallel regions, omp_get_active_level – Number of parallel regions

Reference:

OpenMP specification v4.5, Section 3.2.16.