int omp_get_max_active_levels(void);
Summary The omp_get_max_active_levels routine returns the value of the max-active-levels-var ICV, which determines the maximum number of nested active parallel regions when the innermost parallel region is generated by the current task.
Binding The binding task set for an omp_get_max_active_levels region is the generating task.
Effect The omp_get_max_active_levels routine returns the value of the max-active-levels-var ICV. The current task may only generate an active parallel region if the returned value is greater than the value of the active-levels-var ICV.