HOME
| OPENMP API Specification: Version 5.1 November 2020

3.3.3  omp_get_place_num_procs

Summary The omp_get_place_num_procs routine returns the number of processors available to the execution environment in the specified place.

Format

SVG-Viewer needed.

 

 
int omp_get_place_num_procs(int place_num);  

SVG-Viewer needed.

SVG-Viewer needed.

 

 
integer function omp_get_place_num_procs(place_num) 
integer place_num  

SVG-Viewer needed.

Binding The binding thread set for an omp_get_place_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_place_num_procs routine returns the number of processors associated with the place numbered place_num. The routine returns zero when place_num is negative, or is greater than or equal to the value returned by omp_get_num_places().

Cross References