Purpose
Enables or disables dynamic adjustment
of the number of threads available for execution of parallel regions.
Prototype
void omp_set_dynamic (int dynamic_threads);
Parameter
- dynamic_threads
- Indicates whether the number of threads available in subsequent
parallel region can be adjusted by the runtime. If dynamic_threads is
nonzero, the runtime can adjust the number of threads. If dynamic_threads is
zero, the runtime cannot dynamically adjust the number of threads.