Go to the source code of this file.
Namespaces |
| namespace | af |
| | Specify which part of convolution to retain.
|
Defines |
| #define | TRUE =true |
| #define | FLOP ='f' |
Functions |
|
| AFAPI void | info () |
| | Print diagnostic information on driver, runtime, memory, and devices.
|
| AFAPI void | deviceset (int index) |
| | Switch to specified device.
|
| AFAPI int | deviceget () |
| | Return the index of current device.
|
| AFAPI int | devicecount () |
| | Returns the number of available devices.
|
|
| AFAPI afError | af_info () |
| | Print diagnostic information on driver, runtime, memory, and devices.
|
| AFAPI afError | af_cuda_info (char *driverVersion, double *runtimeVersion, int buflen) |
| AFAPI afError | af_deviceset (int index, bool use_graphics=true, char sort_mode='f') |
| | Switch to specified device.
|
| AFAPI afError | af_deviceget (int *dev) |
| | Fetch current device index (sorted by estimated FLOPs).
|
| AFAPI afError | af_devicegetreal (int dev, int *devreal) |
| | Translate sorted device index into real CUDA device index.
|
| AFAPI afError | af_devicepush (int index) |
| | Save current device on stack and switch to specified device.
|
| AFAPI afError | af_devicepop () |
| | Pop last device off stack and switch to it.
|
| AFAPI afError | af_devicecountactive (int *count, int *devices) |
| | Enumerate active devices.
|
| AFAPI afError | af_devicecount (int *count) |
Define Documentation
Function Documentation
Print diagnostic information on driver, runtime, memory, and devices.
| AFAPI afError af_cuda_info |
( |
char * |
driverVersion, |
|
|
double * |
runtimeVersion, |
|
|
int |
buflen |
|
) |
| |
| AFAPI afError af_deviceset |
( |
int |
index, |
|
|
bool |
use_graphics = true, |
|
|
char |
sort_mode = 'f' |
|
) |
| |
Switch to specified device.
Requires ArrayFire Pro to index beyond first device.
- Parameters:
-
| [in] | index | Index of device to select (zero-based). |
| [in] | use_graphics | Indicate if graphics should be enabled (default: true) |
| [in] | sort_mode | To sort devices based on theoretical FLOPs (sort_mode = 'f') or Memory(sort_mode = 'm') |
| AFAPI afError af_deviceget |
( |
int * |
dev | ) |
|
Fetch current device index (sorted by estimated FLOPs).
- Parameters:
-
| [out] | dev | Device index (zero-based). -1 if not yet initialized. |
| AFAPI afError af_devicegetreal |
( |
int |
dev, |
|
|
int * |
devreal |
|
) |
| |
Translate sorted device index into real CUDA device index.
- Parameters:
-
| [in] | dev | Sorted index as seen in info() (zero-based) |
| [out] | devreal | CUDA device index (zero-based). -1 if not yet initialized or dev beyond range. |
| AFAPI afError af_devicepush |
( |
int |
index | ) |
|
Save current device on stack and switch to specified device.
- Parameters:
-
| [in] | index | Index of device to select. |
- See also:
- af_devicepop(), af_deviceset()
| AFAPI afError af_devicecountactive |
( |
int * |
count, |
|
|
int * |
devices |
|
) |
| |
Enumerate active devices.
- Parameters:
-
| [out] | count | Count of active devices |
| [out] | devices | Pointer to store back indices (zero-based, ignore if NULL) |
- See also:
- af_deviceget()
| AFAPI afError af_devicecount |
( |
int * |
count | ) |
|