GNU libgomp: omp_get_default_device

Next: omp_get_dynamic, Previous: omp_get_cancellation, Up: Runtime Library Routines [Contents][Index]

### 2.4 `omp_get_default_device` – Get the default device for target regions

Description:

  Get the default device for target regions without device clause.

C/C++:

  Prototype: | `int omp_get_default_device(void);`

Fortran:

  Interface: | `integer function omp_get_default_device()`

See also:

  OMP_DEFAULT_DEVICE, omp_set_default_device

Reference:

  OpenMP specification v4.0, Section 3.2.24.