Next: acc_set_device_num, Previous: acc_set_device_type, Up: OpenACC Runtime Library Routines [Contents][Index]
acc_get_device_type
– Get type of device accelerator to be used.This function returns what device type will be used when executing a parallel or kernels region.
This function returns acc_device_none
if
acc_get_device_type
is called from
acc_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.
Prototype: | acc_device_t acc_get_device_type(void); |
Interface: | function acc_get_device_type(void) |
integer(kind=acc_device_kind) acc_get_device_type |
OpenACC specification v2.6, section 3.2.3.