Compartir a través de


OMP_DYNAMIC

Specifies whether the OpenMP run time can adjust the number of threads in a parallel region.

set OMP_DYNAMIC[=TRUE | =FALSE]

Remarks

The OMP_DYNAMIC environment variable can be overridden by the omp_set_dynamic function.

The default value in the Visual C++ implementation of the OpenMP standard is OMP_DYNAMIC=FALSE.

For more information, see 4.3 OMP_DYNAMIC.

Example

The following command sets the OMP_DYNAMIC environment variable to TRUE:

set OMP_DYNAMIC=TRUE

The following command displays the current setting of the OMP_DYNAMIC environment variable:

set OMP_DYNAMIC

See Also

Reference

OpenMP Environment Variables