Important OpenMP library routines

  • int omp get num threads (), returns the number of threads inside a parallel region
  • int omp get thread num (), returns the a thread for each thread inside a parallel region
  • void omp set num threads (int), sets the number of threads to be used
  • void omp set nested (int), turns nested parallelism on/off