]> git.ipfire.org Git - thirdparty/gcc.git/blob - libgomp/doc/openmp-environment-variables/ompdefaultdevice.rst
81389037561ab07031bda42532434815eca36dc1
[thirdparty/gcc.git] / libgomp / doc / openmp-environment-variables / ompdefaultdevice.rst
1 ..
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.
5
6 .. index:: Environment Variable
7
8 .. _omp_default_device:
9
10 OMP_DEFAULT_DEVICE -- Set the device used in target regions
11 ***********************************************************
12
13 Description:
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.
19
20 See also:
21 :ref:`omp_get_default_device`, :ref:`omp_set_default_device`,
22
23 Reference:
24 :openmp:`4.5`, Section 4.13