HOME
| OPENMP API Specification: Version 5.1 November 2020

3.7.1  omp_get_num_procs

Summary The 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.

Binding The 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.

Effect The 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