HOME
| OPENMP API Specification: Version 5.1 November 2020

3.2.5  omp_in_parallel

Summary The 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.

Binding The binding task set for an omp_in_parallel region is the generating task.

Effect The 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