Documentation
|
|
| void | info (bool isdebug=false) |
| Print diagnostic information on driver, runtime, memory, and devices. More... | |
| void | deviceprop (char *d_name, char *d_platform, char *d_toolkit, char *d_compute) |
| Returns information about current device and platform. More... | |
| void | deviceset (int index) |
| Switch to specified device. More... | |
| int | deviceget () |
| Return the index of current device. More... | |
| int | devicecount () |
| Returns the number of available devices. More... | |
| void af::info | ( | bool | isdebug = false | ) |
Print diagnostic information on driver, runtime, memory, and devices.
| [in] | isdebug | Toggle printing memory manager diagnostics (default: false) |
Example output:
| void af::deviceprop | ( | char * | d_name, |
| char * | d_platform, | ||
| char * | d_toolkit, | ||
| char * | d_compute | ||
| ) |
Returns information about current device and platform.
Requires char arrays to be allocated before calling. Recommended size is 64 characters.
| [in] | d_name | Stores returned device name |
| [in] | d_platform | Stores returned platform |
| [in] | d_toolkit | Stores returned toolkit information |
| [in] | d_compute | Stores returned compute capability |
Example usage:
Example output:
| void af::deviceset | ( | int | index | ) |
Switch to specified device.
Requires ArrayFire Pro to index beyond first device.
| [in] | index | Index of device to select. |
| int af::deviceget | ( | ) |
Return the index of current device.
| int af::devicecount | ( | ) |
Returns the number of available devices.