]> git.ipfire.org Git - thirdparty/gcc.git/blame - libgomp/doc/openacc-runtime-library-routines/accgetnumdevices.rst
sphinx: add missing trailing newline
[thirdparty/gcc.git] / libgomp / doc / openacc-runtime-library-routines / accgetnumdevices.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_get_num_devices:
7
8acc_get_num_devices -- Get number of devices for given device type
9******************************************************************
10
11Description
12 This function returns a value indicating the number of devices available
13 for the device type specified in :samp:`{devicetype}`.
14
15C/C++:
16 .. list-table::
17
18 * - *Prototype*:
19 - ``int acc_get_num_devices(acc_device_t devicetype);``
20
21Fortran:
22 .. list-table::
23
24 * - *Interface*:
25 - ``integer function acc_get_num_devices(devicetype)``
26 * -
27 - ``integer(kind=acc_device_kind) devicetype``
28
29Reference:
30 :openacc:`2.6`, section
3ed1b4ce 31 3.2.1.