2 Copyright 1988-2022 Free Software Foundation, Inc.
3 This is part of the GCC manual.
4 For copying conditions, see the copyright.rst file.
8 omp_get_team_size -- Number of threads in a team
9 ************************************************
12 This function returns the number of threads in a thread team to which
13 either the current thread or its ancestor belongs. For values of :samp:`{level}`
14 outside zero to ``omp_get_level``, -1 is returned; if :samp:`{level}` is zero,
15 1 is returned, and for ``omp_get_level``, the result is identical
16 to ``omp_get_num_threads``.
22 - ``int omp_get_team_size(int level);``
28 - ``integer function omp_get_team_size(level)``
33 :ref:`omp_get_num_threads`, :ref:`omp_get_level`, :ref:`omp_get_ancestor_thread_num`
36 :openmp:`4.5`, Section 3.2.19.