OMP_DYNAMIC

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

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

Syntax

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

Environment Variables