]>
Commit | Line | Data |
---|---|---|
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 | .. _omp_get_num_procs: | |
7 | ||
8 | omp_get_num_procs -- Number of processors online | |
9 | ************************************************ | |
10 | ||
11 | Description: | |
12 | Returns the number of processors online on that device. | |
13 | ||
14 | C/C++: | |
15 | .. list-table:: | |
16 | ||
17 | * - *Prototype*: | |
18 | - ``int omp_get_num_procs(void);`` | |
19 | ||
20 | Fortran: | |
21 | .. list-table:: | |
22 | ||
23 | * - *Interface*: | |
24 | - ``integer function omp_get_num_procs()`` | |
25 | ||
26 | Reference: | |
3ed1b4ce | 27 | :openmp:`4.5`, Section 3.2.5. |