int omp_get_device_num(void);
Summary The omp_get_device_num routine returns the device number of the device on which the calling thread is executing.
Binding The binding task set for an omp_get_device_num region is the generating task.
Effect The 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.