GNU libgomp: acc_get_device_num

Next: acc_async_test, Previous: acc_set_device_num, Up: OpenACC Runtime Library Routines [Contents][Index]

### 5.5 `acc_get_device_num` – Get device number to be used.

Description

  This function returns which device number associated with the specified device type devicetype, will be used when executing a parallel or kernels region.

C/C++:

  Prototype: | `int acc_get_device_num(acc_device_t devicetype);`

Fortran:

  Interface: | `function acc_get_device_num(devicetype)`
  | `integer(kind=acc_device_kind) devicetype`
  | `integer acc_get_device_num`

Reference:

  OpenACC specification v2.0, section 3.2.5.