Next: , Previous: omp_get_schedule, Up: Runtime Library Routines

2.11 omp_get_team_size – Number of threads in a team

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 to omp_get_level -1 is returned; if level is zero 1 is returned and for omp_get_level the result is identical to omp_get_num_threads.

Prototype: int omp_get_time_size(int level);


Interface: integer function omp_get_team_size(level)
integer level

See also:
omp_get_num_threads, omp_get_level, omp_get_ancestor_thread_num
OpenMP specifications v3.0, section 3.2.18.