HOME
| OPENMP API Specification: Version 5.0 November 2018

3.2.6  omp_in_parallel

SummaryThe omp_in_parallel routine returns true if the active-levels-var ICV is greater than zero; otherwise, it returns false.

Format

SVG-Viewer needed.

 

 
int omp_in_parallel(void);  

SVG-Viewer needed.

SVG-Viewer needed.

 

 
logical function omp_in_parallel()  

SVG-Viewer needed.

BindingThe binding task set for an omp_in_parallel region is the generating task.

EffectThe effect of the omp_in_parallel routine is to return true if the current task is enclosed by an active parallel region, and the parallel region is enclosed by the outermost initial task region on the device; otherwise it returns false.

Cross References