HOME
| OPENMP API Specification: Version 5.1 November 2020

3.2.6  omp_set_dynamic

Summary The omp_set_dynamic routine enables or disables dynamic adjustment of the number of threads available for the execution of subsequent parallel regions by setting the value of the dyn-var ICV.

Format

SVG-Viewer needed.

 

 
void omp_set_dynamic(int dynamic_threads);  

SVG-Viewer needed.

SVG-Viewer needed.

 

 
subroutine omp_set_dynamic(dynamic_threads) 
logical dynamic_threads  

SVG-Viewer needed.

Binding The binding task set for an omp_set_dynamic region is the generating task.

Effect For implementations that support dynamic adjustment of the number of threads, if the argument to omp_set_dynamic evaluates to true, dynamic adjustment is enabled for the current task; otherwise, dynamic adjustment is disabled for the current task. For implementations that do not support dynamic adjustment of the number of threads, this routine has no effect: the value of dyn-var remains false.

Cross References