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 .. _omp_get_initial_device:
8 omp_get_initial_device -- Return device number of initial device
9 ****************************************************************
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.
20 - ``int omp_get_initial_device(void);``
26 - ``integer function omp_get_initial_device()``
29 :ref:`omp_get_num_devices`
32 :openmp:`4.5`, Section 3.2.35.