acc_get_device_type – Get type of device accelerator to be used.#
- Description
This function returns what device type will be used when executing a parallel or kernels region.
This function returns
acc_device_none
ifacc_get_device_type
is called fromacc_ev_device_init_start
,acc_ev_device_init_end
callbacks of the OpenACC Profiling Interface (OpenACC Profiling Interface), that is, if the device is currently being initialized.- C/C++:
Prototype:
acc_device_t acc_get_device_type(void);
- Fortran:
Interface:
function acc_get_device_type(void)
integer(kind=acc_device_kind) acc_get_device_type
- Reference:
OpenACC specification v2.6, section 3.2.3.