omp_get_thread_limit (GNU libgomp)

#### 3.3.6 `omp_get_thread_limit` – Maximum number of threads ¶

Description:

  Return the maximal number of threads that are available in the current contention group to execute tasks, i.e. the unidimenional value of the thread-limit-var ICV.

C/C++:

  Prototype: | `int omp_get_thread_limit(void);`

Fortran:

  Interface: | `integer function omp_get_thread_limit()`

See also:

  `omp_get_thread_limit_dim` – Maximum number of threads in a dimension, `omp_get_max_threads` – Maximum number of threads of parallel region, `OMP_THREAD_LIMIT` – Set the maximum number of threads

Reference:

  OpenMP specification v4.5, Section 3.2.14.