3.6.2 omp_set_default_device – Set the default device for target regions

Description:

Get the value of the default-device-var ICV, which is used for target regions without a device clause. The argument shall be a nonnegative device number, omp_initial_device, or omp_invalid_device.

The effect of running this routine in a target region is unspecified.

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 – Set the device used in target regions, omp_get_default_device – Get the default device for target regions

Reference:

OpenMP specification v4.5, Section 3.2.29.