omp_set_dynamic – Enable/disable dynamic teams#
- Description:
Enable or disable the dynamic adjustment of the number of threads within a team. The function takes the language-specific equivalent of
trueandfalse, wheretrueenables dynamic adjustment of team sizes andfalsedisables it.- C/C++:
Prototype:
void omp_set_dynamic(int dynamic_threads);- Fortran:
Interface:
subroutine omp_set_dynamic(dynamic_threads)logical, intent(in) :: dynamic_threads- See also:
OMP_DYNAMIC – Dynamic adjustment of threads, omp_get_dynamic – Dynamic teams setting
- Reference:
OpenMP specification v4.5, Section 3.2.7.