HOME
| OPENMP API Specification: Version 5.0 November 2018

6.3  OMP_DYNAMIC

The OMP_DYNAMIC environment variable controls dynamic adjustment of the number of threads to use for executing parallel regions by setting the initial value of the dyn-var ICV.

The value of this environment variable must be one of the following:

true | false

If the environment variable is set to true, the OpenMP implementation may adjust the number of threads to use for executing parallel regions in order to optimize the use of system resources. If the environment variable is set to false, the dynamic adjustment of the number of threads is disabled. The behavior of the program is implementation defined if the value of OMP_DYNAMIC is neither true nor false.

Example:  

 
setenv OMP_DYNAMIC true  

Cross References