context.h File Reference

(2014-04-30 15:38:09 -0400, (build fd32605))

#include "defines.h"

Go to the source code of this file.

Namespaces

 af
 

Macros

#define TRUE   =true
 
#define FLOP   ='f'
 

Functions

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...
 
afError af_info ()
 Print diagnostic information on driver, runtime, memory, and devices. More...
 
afError af_deviceprop (char *d_name, char *d_platform, char *d_toolkit, char *d_compute)
 
afError af_cuda_info (char *driverVersion, double *runtimeVersion, int buflen)
 
afError af_deviceset (int index, bool use_graphics=true, char sort_mode='f')
 Switch to specified device. More...
 
afError af_deviceget (int *dev)
 Fetch current device index (sorted by estimated FLOPs). More...
 
afError af_devicegetreal (int dev, int *devreal)
 Translate sorted device index into real CUDA device index. More...
 
afError af_devicepush (int index)
 Save current device on stack and switch to specified device. More...
 
afError af_devicepop ()
 Pop last device off stack and switch to it. More...
 
afError af_devicecount (int *count)
 

Macro Definition Documentation

#define TRUE   =true
#define FLOP   ='f'