HOME
| OPENMP API Specification: Version 5.0 November 2018

3.2.7  omp_set_dynamic

SummaryThe 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.

BindingThe binding task set for an omp_set_dynamic region is the generating task.

EffectFor 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