wrf.omp_set_max_active_levels

wrf.omp_set_max_active_levels(max_levels)

Limit the number of nested active parallel regions on the device, by setting the max-active-levels-var ICV.

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 parallel levels requested exceeds the number of levels of parallelism supported by the implementation, the value of the max-active-levels-var ICV will be set to the number of parallel levels supported by the implementation. This routine has the described effect only when called from a sequential part of the program. When called from within an explicit parallel region, the effect of this routine is implementation defined.

Parameters:

max_levels (int) – The maximum number of nested active parallel regions.

Returns:

None.