OMP_MAX_ACTIVE_LEVELS environment variable

Use OMP_MAX_ACTIVE_LEVELS to set the max-active-levels-var internal control variable. This controls the maximum number of active nested parallel regions. In programs where nested parallelism is disabled, the initial value should be 1. In programs where nested parallelism is enabled, the initial value should be greater than 1. The function omp_get_max_active_levels can be used to retrieve this value at run time. The value for OMP_MAX_ACTIVE_LEVELS is a positive integer. If a positive integer is not specified, the default value for max-active-levels-var is set by the runtime.

Read syntax diagramSkip visual syntax diagram
>>-OMP_MAX_ACTIVE_LEVELS=n-------------------------------------><