]>
Commit | Line | Data |
---|---|---|
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 | ||
8 | acc_get_num_devices -- Get number of devices for given device type | |
9 | ****************************************************************** | |
10 | ||
11 | Description | |
12 | This function returns a value indicating the number of devices available | |
13 | for the device type specified in :samp:`{devicetype}`. | |
14 | ||
15 | C/C++: | |
16 | .. list-table:: | |
17 | ||
18 | * - *Prototype*: | |
19 | - ``int acc_get_num_devices(acc_device_t devicetype);`` | |
20 | ||
21 | Fortran: | |
22 | .. list-table:: | |
23 | ||
24 | * - *Interface*: | |
25 | - ``integer function acc_get_num_devices(devicetype)`` | |
26 | * - | |
27 | - ``integer(kind=acc_device_kind) devicetype`` | |
28 | ||
29 | Reference: | |
30 | :openacc:`2.6`, section | |
31 | 3.2.1. |