Next: omp_get_dynamic, Previous: omp_get_default_device, Up: Runtime Library Routines [Contents][Index]
omp_get_device_num
– Return device number of current deviceThis function returns a device number that represents the device that the
current thread is executing on. For OpenMP 5.0, this must be equal to the
value returned by the omp_get_initial_device
function when called
from the host.
Prototype: | int omp_get_device_num(void); |
Interface: | integer function omp_get_device_num() |
OpenMP specification v5.0, Section 3.2.37.