]> git.ipfire.org Git - thirdparty/gcc.git/blame - libgomp/doc/openacc-runtime-library-routines/accsetdevicetype.rst
sphinx: add missing trailing newline
[thirdparty/gcc.git] / libgomp / doc / openacc-runtime-library-routines / accsetdevicetype.rst
CommitLineData
c63539ff
ML
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
8acc_set_device_type -- Set type of device accelerator to use.
9*************************************************************
10
11Description
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
15C/C++:
16 .. list-table::
17
18 * - *Prototype*:
19 - ``acc_set_device_type(acc_device_t devicetype);``
20
21Fortran:
22 .. list-table::
23
24 * - *Interface*:
25 - ``subroutine acc_set_device_type(devicetype)``
26 * -
27 - ``integer(kind=acc_device_kind) devicetype``
28
29Reference:
30 :openacc:`2.6`, section
3ed1b4ce 31 3.2.2.