libgomp: omp_get_num_threads

1 
1 2.14 'omp_get_num_threads' - Size of the active team
1 ====================================================
1 
1 _Description_:
1      Returns the number of threads in the current team.  In a sequential
1      section of the program 'omp_get_num_threads' returns 1.
1 
1      The default team size may be initialized at startup by the
1      'OMP_NUM_THREADS' environment variable.  At runtime, the size of
1      the current team may be set either by the 'NUM_THREADS' clause or
1      by 'omp_set_num_threads'.  If none of the above were used to define
1      a specific value and 'OMP_DYNAMIC' is disabled, one thread per CPU
1      online is used.
1 
1 _C/C++_:
1      _Prototype_:   'int omp_get_num_threads(void);'
1 
1 _Fortran_:
1      _Interface_:   'integer function omp_get_num_threads()'
1 
1 _See also_:
DONTPRINTYET 1      ⇒omp_get_max_threads, ⇒omp_set_num_threads, *note1      OMP_NUM_THREADS::
1 
1 _Reference_:
1      OpenMP specification v4.5 (http://www.openmp.org/), Section 3.2.2.
1