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_is_initial_device:
8 omp_is_initial_device -- Whether executing on the host device
9 *************************************************************
12 This function returns ``true`` if currently running on the host device,
13 ``false`` otherwise. Here, ``true`` and ``false`` represent
14 their language-specific counterparts.
20 - ``int omp_is_initial_device(void);``
26 - ``logical function omp_is_initial_device()``
29 :openmp:`4.5`, Section 3.2.34.