HOME
| OPENMP API Specification: Version 5.0 November 2018

3.2.37  omp_get_device_num

SummaryThe 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.

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.

Cross References