HOME
| OPENMP API Specification: Version 5.0 November 2018

3.2.27  omp_get_place_num

SummaryThe 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.

BindingThe binding thread set for an omp_get_place_num region is the encountering thread.

EffectWhen 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