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

### 5.2 `acc_set_device_type` – Set type of device accelerator to use.

Description

  This function indicates to the runtime library which device typr, specified in devicetype, to use when executing a parallel or kernels region.

C/C++:

  Prototype: | `acc_set_device_type(acc_device_t devicetype);`

Fortran:

  Interface: | `subroutine acc_set_device_type(devicetype)`
  | `integer(kind=acc_device_kind) devicetype`

Reference:

  OpenACC specification v2.0, section 3.2.2.