omp_get_thread_limit_dim (GNU libgomp)

#### 3.4.5 `omp_get_thread_limit_dim` – Maximum number of threads in a dimension ¶

Description:

  Return the maximal number of threads in dimension dim that are available in the current contention group in that dimension, i.e. the value of the thread-limit-var ICV in dimension dim. The routine returns one if the dimension dim exceeds the number of dimensions for which values have been specified in the thread-limit-var ICV. The dimension argument DIM must be non-negative.

  Fortran note: In GCC, this routine does not support passing default-kind integer arguments with `-fdefault-integer-8`.

C/C++:

  Prototype: | `int omp_get_thread_limit_dim(int dim)`

Fortran:

  Interface: | `integer function omp_get_thread_limit_dim(dim)`

See also:

  `omp_get_thread_limit` – Maximum number of threads, `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 Technical Report 15, Section 29.5