int omp_get_num_procs(void);
Summary The omp_get_num_procs routine returns the number of processors available to the device.
Binding The binding thread set for an omp_get_num_procs region is all threads on a device. The effect of executing this routine is not related to any specific region corresponding to any construct or API routine.
Effect The omp_get_num_procs routine returns the number of processors that are available to the device at the time the routine is called. This value may change between the time that it is determined by the omp_get_num_procs routine and the time that it is read in the calling context due to system actions outside the control of the OpenMP implementation.