HOME
| OPENMP API Specification: Version 5.0 November 2018

3.2.2  omp_get_num_threads

SummaryThe omp_get_num_threads routine returns the number of threads in the current team.

Format

SVG-Viewer needed.

 

 
int omp_get_num_threads(void);  

SVG-Viewer needed.

SVG-Viewer needed.

 

 
integer function omp_get_num_threads()  

SVG-Viewer needed.

BindingThe binding region for an omp_get_num_threads region is the innermost enclosing parallel region.

EffectThe omp_get_num_threads routine returns the number of threads in the team that is executing the parallel region to which the routine region binds. If called from the sequential part of a program, this routine returns 1.

Cross References