]> git.ipfire.org Git - thirdparty/gcc.git/blob - libgomp/doc/openmp-runtime-library-routines/ompgetnumdevices.rst
sphinx: add missing trailing newline
[thirdparty/gcc.git] / libgomp / doc / openmp-runtime-library-routines / ompgetnumdevices.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 .. _omp_get_num_devices:
7
8 omp_get_num_devices -- Number of target devices
9 ***********************************************
10
11 Description:
12 Returns the number of target devices.
13
14 C/C++:
15 .. list-table::
16
17 * - *Prototype*:
18 - ``int omp_get_num_devices(void);``
19
20 Fortran:
21 .. list-table::
22
23 * - *Interface*:
24 - ``integer function omp_get_num_devices()``
25
26 Reference:
27 :openmp:`4.5`, Section 3.2.31.