]> git.ipfire.org Git - thirdparty/gcc.git/blob - libgomp/doc/openacc-runtime-library-routines/accsetdevicenum.rst
sphinx: add missing trailing newline
[thirdparty/gcc.git] / libgomp / doc / openacc-runtime-library-routines / accsetdevicenum.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_num:
7
8 acc_set_device_num -- Set device number to use.
9 ***********************************************
10
11 Description
12 This function will indicate to the runtime which device number,
13 specified by :samp:`{devicenum}`, associated with the specified device
14 type :samp:`{devicetype}`.
15
16 C/C++:
17 .. list-table::
18
19 * - *Prototype*:
20 - ``acc_set_device_num(int devicenum, acc_device_t devicetype);``
21
22 Fortran:
23 .. list-table::
24
25 * - *Interface*:
26 - ``subroutine acc_set_device_num(devicenum, devicetype)``
27 * -
28 - ``integer devicenum``
29 * -
30 - ``integer(kind=acc_device_kind) devicetype``
31
32 Reference:
33 :openacc:`2.6`, section
34 3.2.4.