OMP_MAX_ACTIVE_LEVELS
The OMP_MAX_ACTIVE_LEVELS environment variable sets the max-active-levels-var internal control variable. This controls the maximum number of active nested parallel regions.
>>-OMP_MAX_ACTIVE_LEVELS=n-------------------------------------><
- n
- is the maximum number of nested active parallel regions. It must be a positive scalar integer. The maximum value that you can specify is 5.
In programs where nested parallelism is enabled, the initial value is greater than 1. The function omp_get_max_active_levels can be used to retrieve the max-active-levels-var internal control variable at run time.