HOME
| OPENMP API Specification: Version 5.1 November 2020

3.7.6  omp_is_initial_device

Summary The omp_is_initial_device routine returns true if the current task is executing on the host device; otherwise, it returns false.

Format

SVG-Viewer needed.

 

 
int omp_is_initial_device(void);  

SVG-Viewer needed.

SVG-Viewer needed.

 
logical function omp_is_initial_device()  

SVG-Viewer needed.

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

Effect The effect of this routine is to return true if the current task is executing on the host device; otherwise, it returns false.

Cross References