This routine returns, for a given nested level of the current thread, the size of the thread team to which the ancestor or the current thread belongs.
INTEGER FUNCTION OMP_GET_TEAM_SIZE(LEVEL)
int omp_get_team_size(int level);
Notes & Restrictions:
If the requested nested level is outside the range of 0 and the nested level of the current thread, as returned by the omp_get_level routine, the routine returns -1. Inactive parallel regions are regarded like active parallel regions executed with one thread.
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