HOME
| OPENMP API Specification: Version 5.1 November 2020

3.3.5  omp_get_place_num

Summary The omp_get_place_num routine returns the place number of the place to which the encountering thread is bound.

Format

SVG-Viewer needed.

 

 
int omp_get_place_num(void);  

SVG-Viewer needed.

SVG-Viewer needed.

 

 
integer function omp_get_place_num()  

SVG-Viewer needed.

Binding The binding thread set for an omp_get_place_num region is the encountering thread.

Effect When the encountering thread is bound to a place, the omp_get_place_num routine returns the place number associated with the thread. The returned value is between 0 and one less than the value returned by omp_get_num_places(), inclusive. When the encountering thread is not bound to a place, the routine returns -1.

Cross References