GNU libgomp: omp_set_default_device

Next: omp_set_dynamic, Previous: omp_is_initial_device, Up: Runtime Library Routines [Contents][Index]

### 2.23 `omp_set_default_device` – Set the default device for target regions

Description:

  Set the default device for target regions without device clause. The argument shall be a nonnegative device number.

C/C++:

  Prototype: | `void omp_set_default_device(int device_num);`

Fortran:

  Interface: | `subroutine omp_set_default_device(device_num)`
  | `integer device_num`

See also:

  OMP_DEFAULT_DEVICE, omp_get_default_device

Reference:

  OpenMP specification v4.0, Section 3.2.23.