OMP_GET_NUM_PROCS
Purpose:
Returns the number of processors that are available to the program.
Format:
Fortran
INTEGER FUNCTION OMP_GET_NUM_PROCS()
C/C++
#include <omp.h>
int omp_get_num_procs(void)
An official website of the United States government
Here's how you know
Official websites use .gov
A .gov website belongs to an official government organization in the United States.
Secure .gov websites use HTTPS
A lock (
) or https:// means you’ve safely connected to the .gov website. Share sensitive information only on official, secure websites.
Returns the number of processors that are available to the program.
INTEGER FUNCTION OMP_GET_NUM_PROCS()
#include <omp.h>
int omp_get_num_procs(void)
