This routine returns, for a given nested level ofthe current thread, the thread number of the ancestor or the current thread.
INTEGER FUNCTION OMP_GET_ANCESTOR_THREAD_NUM(LEVEL)
int omp_get_ancestor_thread_num(int level)
Notes & Restrictions:
If the requested nest level is outside the range of 0 and the nest level of the current thread, as returned by the omp_get_level routine, the routine returns -1.
Lawrence Livermore National Laboratory
7000 East Avenue • Livermore, CA 94550 | LLNL-WEB-458451
Operated by the Lawrence Livermore National Security, LLC for the
Department of Energy's National Nuclear Security Administration
Learn about the Department of Energy's Vulnerability Disclosure Program