]> git.ipfire.org Git - thirdparty/gcc.git/blob - libgomp/doc/openacc-runtime-library-routines/accgetdevicenum.rst
9fa002928c889973138ab83d75c86b58967bc6a2
[thirdparty/gcc.git] / libgomp / doc / openacc-runtime-library-routines / accgetdevicenum.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_get_device_num:
7
8 acc_get_device_num -- Get device number to be used.
9 ***************************************************
10
11 Description
12 This function returns which device number associated with the specified device
13 type :samp:`{devicetype}`, will be used when executing a parallel or kernels
14 region.
15
16 C/C++:
17 .. list-table::
18
19 * - *Prototype*:
20 - ``int acc_get_device_num(acc_device_t devicetype);``
21
22 Fortran:
23 .. list-table::
24
25 * - *Interface*:
26 - ``function acc_get_device_num(devicetype)``
27 * -
28 - ``integer(kind=acc_device_kind) devicetype``
29 * -
30 - ``integer acc_get_device_num``
31
32 Reference:
33 :openacc:`2.6`, section
34 3.2.5.