2 Copyright 1988-2022 Free Software Foundation, Inc.
3 This is part of the GCC manual.
4 For copying conditions, see the copyright.rst file.
6 .. index:: Environment Variable
8 .. _omp_default_device:
10 OMP_DEFAULT_DEVICE -- Set the device used in target regions
11 ***********************************************************
14 Set to choose the device which is used in a ``target`` region, unless the
15 value is overridden by ``omp_set_default_device`` or by a ``device``
16 clause. The value shall be the nonnegative device number. If no device with
17 the given device number exists, the code is executed on the host. If unset,
18 device number 0 will be used.
21 :ref:`omp_get_default_device`, :ref:`omp_set_default_device`,
24 :openmp:`4.5`, Section 4.13