| title | OMP_DYNAMIC | Microsoft Docs | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ms.custom | ||||||||||||||
| ms.date | 11/04/2016 | |||||||||||||
| ms.reviewer | ||||||||||||||
| ms.suite | ||||||||||||||
| ms.technology |
|
|||||||||||||
| ms.tgt_pltfrm | ||||||||||||||
| ms.topic | article | |||||||||||||
| f1_keywords |
|
|||||||||||||
| dev_langs |
|
|||||||||||||
| helpviewer_keywords |
|
|||||||||||||
| ms.assetid | e306049d-b644-4b73-8b63-46c835bff98b | |||||||||||||
| caps.latest.revision | 9 | |||||||||||||
| author | mikeblome | |||||||||||||
| ms.author | mblome | |||||||||||||
| manager | ghogen | |||||||||||||
| translation.priority.ht |
|
Specifies whether the OpenMP run time can adjust the number of threads in a parallel region.
set OMP_DYNAMIC[=TRUE | =FALSE]
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.
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