omp_get_team_size

Purpose

Use omp_get_team_size to return the thread team size that the ancestor belongs to. omp_get_team_size returns -1 if the nested level is not within the range of 0 and the current thread's nested level as returned by omp_get_level.

Prototype

int omp_get_team_size(int level);