omp_get_thread_num_dim – Dimensional ID of the current thread ¶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.
| Prototype: | int omp_get_thread_num(int dim) |
integer :: dim |
| Interface: | integer function omp_get_thread_num(dim) |
omp_get_thread_num – Current thread ID, omp_get_num_threads_dim – Size of a dimension of the active team
OpenMP Technical Report 15, Section 29.2