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.
8 acc_on_device -- Whether executing on a particular device
9 *********************************************************
12 This function returns whether the program is executing on a particular
13 device specified in :samp:`{devicetype}`. In C/C++ a non-zero value is
14 returned to indicate the device is executing on the specified device type.
15 In Fortran, ``true`` will be returned. If the program is not executing
16 on the specified device type C/C++ will return a zero, while Fortran will
23 - ``acc_on_device(acc_device_t devicetype);``
29 - ``function acc_on_device(devicetype)``
31 - ``integer(acc_device_kind) devicetype``
33 - ``logical acc_on_device``
36 :openacc:`2.6`, section