Next: omp_set_max_active_levels
– Limits the number of active parallel regions, Previous: omp_set_default_device
– Set the default device for target regions, Up: OpenMP Runtime Library Routines [Contents][Index]
omp_set_dynamic
– Enable/disable dynamic teamsEnable or disable the dynamic adjustment of the number of threads
within a team. The function takes the language-specific equivalent
of true
and false
, where true
enables dynamic
adjustment of team sizes and false
disables it.
Prototype: | void omp_set_dynamic(int dynamic_threads); |
Interface: | subroutine omp_set_dynamic(dynamic_threads) |
logical, intent(in) :: dynamic_threads |
OMP_DYNAMIC
– Dynamic adjustment of threads, omp_get_dynamic
– Dynamic teams setting
OpenMP specification v4.5, Section 3.2.7.