]> git.ipfire.org Git - thirdparty/gcc.git/blob - libgomp/doc/openacc-runtime-library-routines/accsetdevicetype.rst
sphinx: add missing trailing newline
[thirdparty/gcc.git] / libgomp / doc / openacc-runtime-library-routines / accsetdevicetype.rst
1 ..
2 Copyright 1988-2022 Free Software Foundation, Inc.
3 This is part of the GCC manual.
4 For copying conditions, see the copyright.rst file.
5
6 .. _acc_set_device_type:
7
8 acc_set_device_type -- Set type of device accelerator to use.
9 *************************************************************
10
11 Description
12 This function indicates to the runtime library which device type, specified
13 in :samp:`{devicetype}`, to use when executing a parallel or kernels region.
14
15 C/C++:
16 .. list-table::
17
18 * - *Prototype*:
19 - ``acc_set_device_type(acc_device_t devicetype);``
20
21 Fortran:
22 .. list-table::
23
24 * - *Interface*:
25 - ``subroutine acc_set_device_type(devicetype)``
26 * -
27 - ``integer(kind=acc_device_kind) devicetype``
28
29 Reference:
30 :openacc:`2.6`, section
31 3.2.2.