.. Copyright 1988-2021 Free Software Foundation, Inc. This is part of the GCC manual. For copying conditions, see the GPL license file .. _omp_set_default_device: omp_set_default_device -- Set the default device for target regions ******************************************************************* :samp:`{Description}:` Set the default device for target regions without device clause. The argument shall be a nonnegative device number. :samp:`{C/C++}:` ============ ================================================ *Prototype*: ``void omp_set_default_device(int device_num);`` ============ ================================================ :samp:`{Fortran}:` ============ ================================================= *Interface*: ``subroutine omp_set_default_device(device_num)`` ``integer device_num`` ============ ================================================= :samp:`{See also}:` OMP_DEFAULT_DEVICE, omp_get_default_device :samp:`{Reference}:` `OpenMP specification v4.5 `_, Section 3.2.29.