omp_get_thread_num_dim (GNU libgomp)

#### 3.4.2 `omp_get_thread_num_dim` – Dimensional ID of the current thread ¶

Description:

  Returns the value of dimension dim of the multidimensional thread identification number for the invoking thread in the current team, i.e. the value of the thread-num-var ICV in dimension dim. For inactive spatial dimensions, the routine returns 0. The dimension argument DIM must be non-negative.

  The returned value is between zero and one less than the value returned by `omp_get_num_threads` for the dimension dim.

  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_num(int dim)`
  | `integer :: dim`

Fortran:

  Interface: | `integer function omp_get_thread_num(dim)`

See also:

  `omp_get_thread_num` – Current thread ID, `omp_get_num_threads_dim` – Size of a dimension of the active team

Reference:

  OpenMP Technical Report 15, Section 29.2