GNU libgomp: acc_set_device_num

Next: acc_get_device_num, Previous: acc_get_device_type, Up: OpenACC Runtime Library Routines [Contents][Index]

### 5.4 `acc_set_device_num` – Set device number to use.

Description

  This function will indicate to the runtime which device number, specified by num, associated with the specifed device type devicetype.

C/C++:

  Prototype: | `acc_set_device_num(int num, acc_device_t devicetype);`

Fortran:

  Interface: | `subroutine acc_set_device_num(devicenum, devicetype)`
  | `integer devicenum`
  | `integer(kind=acc_device_kind) devicetype`

Reference:

  OpenACC specification v2.0, section 3.2.4.