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_device_num:
8 omp_get_device_num -- Return device number of current device
9 ************************************************************
12 This function returns a device number that represents the device that the
13 current thread is executing on. For OpenMP 5.0, this must be equal to the
14 value returned by the ``omp_get_initial_device`` function when called
21 - ``int omp_get_device_num(void);``
27 - ``integer function omp_get_device_num()``
30 :ref:`omp_get_initial_device`
33 :openmp:`5.0`, Section 3.2.37.