GNU libgomp: omp_get_dynamic

Next: omp_get_level, Previous: omp_get_default_device, Up: Runtime Library Routines [Contents][Index]

### 2.5 `omp_get_dynamic` – Dynamic teams setting

Description:

  This function returns `true` if enabled, `false` otherwise. Here, `true` and `false` represent their language-specific counterparts.

  The dynamic team setting may be initialized at startup by the `OMP_DYNAMIC` environment variable or at runtime using `omp_set_dynamic`. If undefined, dynamic adjustment is disabled by default.

C/C++:

  Prototype: | `int omp_get_dynamic(void);`

Fortran:

  Interface: | `logical function omp_get_dynamic()`

See also:

  omp_set_dynamic, OMP_DYNAMIC

Reference:

  OpenMP specification v4.5, Section 3.2.8.