75 AFAPI void deviceprop(
char* d_name,
char* d_platform,
char *d_toolkit,
char* d_compute);
100 #endif // __cplusplus
void info(bool isdebug=false)
Print diagnostic information on driver, runtime, memory, and devices.
void deviceprop(char *d_name, char *d_platform, char *d_toolkit, char *d_compute)
Returns information about current device and platform.
#define FLOP
Definition: context.h:15
afError af_cuda_info(char *driverVersion, double *runtimeVersion, int buflen)
afError af_devicepop()
Pop last device off stack and switch to it.
afError
Definition: defines.h:10
#define TRUE
Definition: context.h:14
afError af_deviceprop(char *d_name, char *d_platform, char *d_toolkit, char *d_compute)
afError af_info()
Print diagnostic information on driver, runtime, memory, and devices.
int devicecount()
Returns the number of available devices.
afError af_deviceset(int index, bool use_graphics=true, char sort_mode='f')
Switch to specified device.
void deviceset(int index)
Switch to specified device.
afError af_devicegetreal(int dev, int *devreal)
Translate sorted device index into real CUDA device index.
#define AFAPI
Definition: defines.h:45
afError af_devicecount(int *count)
int deviceget()
Return the index of current device.
afError af_deviceget(int *dev)
Fetch current device index (sorted by estimated FLOPs).
afError af_devicepush(int index)
Save current device on stack and switch to specified device.
unsigned count(const array &input)
Count nonzero elements in input.