omp_get_team_size – Number of threads in a team¶
Description:
This function returns the number of threads in a thread team to which either the current thread or its ancestor belongs. For values of
level
outside zero toomp_get_level
, -1 is returned; iflevel
is zero, 1 is returned, and foromp_get_level
, the result is identical toomp_get_num_threads
.
C/C++:
Prototype:
int omp_get_team_size(int level);
Fortran:
Interface:
integer function omp_get_team_size(level)
integer level
See also:
omp_get_num_threads, omp_get_level, omp_get_ancestor_thread_num
Reference:
OpenMP specification v4.5, Section 3.2.19.