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


2.6 omp_get_max_threads – Maximal number of threads of parallel region

Description:
Return the maximal number of threads used for the current parallel region that does not use the clause num_threads.
C/C++:

Prototype: int omp_get_max_threads();

Fortran:

Interface: integer function omp_get_max_threads()

See also:
omp_set_num_threads, omp_set_dynamic, omp_get_thread_limit
Reference:
OpenMP specifications v3.0, section 3.2.3.