]> git.ipfire.org Git - thirdparty/gcc.git/blob - libgomp/doc/openmp-runtime-library-routines/ompgetinitialdevice.rst
sphinx: copy files from texi2rst-generated repository
[thirdparty/gcc.git] / libgomp / doc / openmp-runtime-library-routines / ompgetinitialdevice.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 .. _omp_get_initial_device:
7
8 omp_get_initial_device -- Return device number of initial device
9 ****************************************************************
10
11 Description:
12 This function returns a device number that represents the host device.
13 For OpenMP 5.1, this must be equal to the value returned by the
14 ``omp_get_num_devices`` function.
15
16 C/C++:
17 .. list-table::
18
19 * - *Prototype*:
20 - ``int omp_get_initial_device(void);``
21
22 Fortran:
23 .. list-table::
24
25 * - *Interface*:
26 - ``integer function omp_get_initial_device()``
27
28 See also:
29 :ref:`omp_get_num_devices`
30
31 Reference:
32 :openmp:`4.5`, Section 3.2.35.