HOME
| OPENMP API Specification: Version 5.1 November 2020

3.7.2  omp_set_default_device

Summary The omp_set_default_device routine controls the default target device by assigning the value of the default-device-var ICV.

Format

SVG-Viewer needed.

 

 
void omp_set_default_device(int device_num);  

SVG-Viewer needed.

SVG-Viewer needed.

 

 
subroutine omp_set_default_device(device_num) 
integer device_num  

SVG-Viewer needed.

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

Effect The effect of this routine is to set the value of the default-device-var ICV of the current task to the value specified in the argument. When called from within a target region the effect of this routine is unspecified.

Cross References