HOME
| OPENMP API Specification: Version 5.1 November 2020

3.2.15  omp_set_max_active_levels

Summary The omp_set_max_active_levels routine limits the number of nested active parallel regions when a new nested parallel region is generated by the current task by setting the max-active-levels-var ICV.

Format

SVG-Viewer needed.

 

 
void omp_set_max_active_levels(int max_levels);  

SVG-Viewer needed.

SVG-Viewer needed.

 

 
subroutine omp_set_max_active_levels(max_levels) 
integer max_levels  

SVG-Viewer needed.

Constraints on Arguments The value of the argument passed to this routine must evaluate to a non-negative integer, otherwise the behavior of this routine is implementation defined.

Binding The binding task set for an omp_set_max_active_levels region is the generating task.

Effect The effect of this routine is to set the value of the max-active-levels-var ICV to the value specified in the argument.

If the number of active levels requested exceeds the number of active levels of parallelism supported by the implementation, the value of the max-active-levels-var ICV will be set to the number of active levels supported by the implementation.

Cross References