HOME
| OPENMP API Specification: Version 5.0 November 2018

3.2.36  omp_get_num_devices

SummaryThe omp_get_num_devices routine returns the number of target devices.

Format

SVG-Viewer needed.

 

 
int omp_get_num_devices(void);  

SVG-Viewer needed.

SVG-Viewer needed.

 

 
integer function omp_get_num_devices()  

SVG-Viewer needed.

BindingThe binding task set for an omp_get_num_devices region is the generating task.

EffectThe omp_get_num_devices routine returns the number of available target devices. When called from within a target region the effect of this routine is unspecified.

Cross References