int omp_get_place_num(void);
Summary The omp_get_place_num routine returns the place number of the place to which the encountering thread is bound.
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.