Next: acc_malloc, Previous: acc_shutdown, Up: OpenACC Runtime Library Routines [Contents][Index]
acc_on_device
– Whether executing on a particular deviceThis function returns whether the program is executing on a particular
device specified in devicetype. In C/C++ a non-zero value is
returned to indicate the device is execiting on the specified device type.
In Fortran, true
will be returned. If the program is not executing
on the specified device type C/C++ will return a zero, while Fortran will
return false
.
Prototype: | acc_on_device(acc_device_t devicetype); |
Interface: | function acc_on_device(devicetype) |
integer(acc_device_kind) devicetype | |
logical acc_on_device |
OpenACC specification v2.0, section 3.2.14.