omp_set_dynamic

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 library. If dynamic_threads is nonzero, the runtime library can adjust the number of threads. If dynamic_threads is zero, the runtime library cannot dynamically adjust the number of threads.