acc_get_device_num

int acc_get_device_num(acc_device_t)

Returns the device number of the accelerator device of the given type that will be used to run the next parallel or kernels region.

API Index OpenACC™ Application Programming Interface Version 1.0