omp_set_dynamic
Visual Studio 2005
Indicates that the number of threads available in subsequent parallel region can be adjusted by the run time.
void omp_set_dynamic( int val );
The number of threads will never exceed the value set by omp_set_num_threads or by OMP_NUM_THREADS.
Use omp_get_dynamic to display the current setting of omp_set_dynamic.
The setting for omp_set_dynamic will override the setting of the OMP_DYNAMIC environment variable.
For more information, see 3.1.7 omp_set_dynamic Function.