libgomp: acc_on_device
1
1 5.14 'acc_on_device' - Whether executing on a particular device
1 ===============================================================
1
1 _Description_:
1 This function returns whether the program is executing on a
1 particular device specified in DEVICETYPE. In C/C++ a non-zero
1 value is returned to indicate the device is execiting on the
1 specified device type. In Fortran, 'true' will be returned. If
1 the program is not executing on the specified device type C/C++
1 will return a zero, while Fortran will return 'false'.
1
1 _C/C++_:
1 _Prototype_: 'acc_on_device(acc_device_t devicetype);'
1
1 _Fortran_:
1 _Interface_: 'function acc_on_device(devicetype)'
1 'integer(acc_device_kind) devicetype'
1 'logical acc_on_device'
1
1 _Reference_:
1 OpenACC specification v2.0 (https://www.openacc.org), section
1 3.2.14.
1