HOME
| OPENMP API Specification: Version 5.1 November 2020

3.7.5  omp_get_device_num

Summary The omp_get_device_num routine returns the device number of the device on which the calling thread is executing.

Format

SVG-Viewer needed.

 

 
int omp_get_device_num(void);  

SVG-Viewer needed.

SVG-Viewer needed.

 

 
integer function omp_get_device_num()  

SVG-Viewer needed.

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.

Cross References