HOME
| OPENMP API Specification: Version 5.0 November 2018

3.2.5  omp_get_num_procs

SummaryThe omp_get_num_procs routine returns the number of processors available to the device.

Format

SVG-Viewer needed.

 

 
int omp_get_num_procs(void);  

SVG-Viewer needed.

SVG-Viewer needed.

 

 
integer function omp_get_num_procs()  

SVG-Viewer needed.

BindingThe binding thread set for an omp_get_num_procs region is all threads on a device. The effect of executing this routine is not related to any specific region corresponding to any construct or API routine.

EffectThe omp_get_num_procs routine returns the number of processors that are available to the device at the time the routine is called. This value may change between the time that it is determined by the omp_get_num_procs routine and the time that it is read in the calling context due to system actions outside the control of the OpenMP implementation.

Cross References