int omp_get_device_num(void);
SummaryThe omp_get_device_num routine returns the device number of the device on which the calling thread is executing.
BindingThe binding task set for an omp_get_devices_num region is the generating task.
EffectThe omp_get_device_num routine returns the device number of the device on which the calling thread is executing. When called on the host device, it will return the same value as the omp_get_initial_device routine.