HOME
| OPENMP API Specification: Version 5.1 November 2020

3.4.2  omp_get_team_num

Summary The omp_get_team_num routine returns the initial team number of the calling thread.

Format

SVG-Viewer needed.

 

 
int omp_get_team_num(void);  

SVG-Viewer needed.

SVG-Viewer needed.

 

 
integer function omp_get_team_num()  

SVG-Viewer needed.

Binding The binding task set for an omp_get_team_num region is the generating task.

Effect The omp_get_team_num routine returns the initial team number of the calling thread. The initial team number is an integer between 0 and one less than the value returned by omp_get_num_teams(), inclusive. The routine returns 0 if it is called outside of a teams region.

Cross References