HOME
| OPENMP API Specification: Version 5.0 November 2018

3.2.39  omp_get_team_num

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

BindingThe binding task set for an omp_get_team_num region is the generating task.

EffectThe 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