GPUOcelot
Classes | Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes

cuda::CudaDriverFrontend Class Reference

implements the CUDA Driver API front-end to GPU Ocelot More...

#include <CudaDriverFrontend.h>

Inheritance diagram for cuda::CudaDriverFrontend:
Inheritance graph
[legend]
Collaboration diagram for cuda::CudaDriverFrontend:
Collaboration graph
[legend]

List of all members.

Classes

class  Context
 CUDA Driver API context. More...

Public Types

typedef std::set< CUeventEventSet
typedef std::set< CUstreamStreamSet
typedef std::deque< Context * > ContextQueue
typedef std::map
< boost::thread::id,
ContextQueue
ContextQueueThreadMap

Public Member Functions

 CudaDriverFrontend ()
virtual ~CudaDriverFrontend ()
CUresult cuInit (unsigned int Flags)
CUresult cuDriverGetVersion (int *driverVersion)
CUresult cuDeviceGet (CUdevice *device, int ordinal)
CUresult cuDeviceGetCount (int *count)
CUresult cuDeviceGetName (char *name, int len, CUdevice dev)
CUresult cuDeviceComputeCapability (int *major, int *minor, CUdevice dev)
CUresult cuDeviceTotalMem (size_t *bytes, CUdevice dev)
CUresult cuDeviceGetProperties (CUdevprop *prop, CUdevice dev)
CUresult cuDeviceGetAttribute (int *pi, CUdevice_attribute attrib, CUdevice dev)
CUresult cuCtxCreate (CUcontext *pctx, unsigned int flags, CUdevice dev)
CUresult cuCtxDestroy (CUcontext ctx)
CUresult cuCtxAttach (CUcontext *pctx, unsigned int flags)
CUresult cuCtxDetach (CUcontext ctx)
CUresult cuCtxPushCurrent (CUcontext ctx)
CUresult cuCtxPopCurrent (CUcontext *pctx)
CUresult cuCtxGetDevice (CUdevice *device)
CUresult cuCtxSynchronize (void)
CUresult cuModuleLoad (CUmodule *module, const char *fname)
CUresult cuModuleLoadData (CUmodule *module, const void *image)
CUresult cuModuleLoadDataEx (CUmodule *module, const void *image, unsigned int numOptions, CUjit_option *options, void **optionValues)
CUresult cuModuleLoadFatBinary (CUmodule *module, const void *fatCubin)
CUresult cuModuleUnload (CUmodule hmod)
CUresult cuModuleGetFunction (CUfunction *hfunc, CUmodule hmod, const char *name)
CUresult cuModuleGetGlobal (CUdeviceptr *dptr, size_t *bytes, CUmodule hmod, const char *name)
CUresult cuModuleGetTexRef (CUtexref *pTexRef, CUmodule hmod, const char *name)
CUresult cuMemGetInfo (size_t *free, size_t *total)
CUresult cuMemAlloc (CUdeviceptr *dptr, unsigned int bytesize)
CUresult cuMemAllocPitch (CUdeviceptr *dptr, size_t *pPitch, unsigned int WidthInBytes, unsigned int Height, unsigned int ElementSizeBytes)
CUresult cuMemFree (CUdeviceptr dptr)
CUresult cuMemGetAddressRange (CUdeviceptr *pbase, size_t *psize, CUdeviceptr dptr)
CUresult cuMemAllocHost (void **pp, unsigned int bytesize)
CUresult cuMemFreeHost (void *p)
CUresult cuMemHostAlloc (void **pp, unsigned long long bytesize, unsigned int Flags)
CUresult cuMemHostGetDevicePointer (CUdeviceptr *pdptr, void *p, unsigned int Flags)
CUresult cuMemHostGetFlags (unsigned int *pFlags, void *p)
CUresult cuMemcpyHtoD (CUdeviceptr dstDevice, const void *srcHost, unsigned int ByteCount)
CUresult cuMemcpyDtoH (void *dstHost, CUdeviceptr srcDevice, unsigned int ByteCount)
CUresult cuMemcpyHtoH (void *dstHost, const void *srcHost, unsigned int ByteCount)
CUresult cuMemcpyDtoD (CUdeviceptr dstDevice, CUdeviceptr srcDevice, unsigned int ByteCount)
CUresult cuMemcpyDtoA (CUarray dstArray, unsigned int dstIndex, CUdeviceptr srcDevice, unsigned int ByteCount)
CUresult cuMemcpyAtoD (CUdeviceptr dstDevice, CUarray hSrc, unsigned int SrcIndex, unsigned int ByteCount)
CUresult cuMemcpyHtoA (CUarray dstArray, unsigned int dstIndex, const void *pSrc, unsigned int ByteCount)
CUresult cuMemcpyAtoH (void *dstHost, CUarray srcArray, unsigned int srcIndex, unsigned int ByteCount)
CUresult cuMemcpyAtoA (CUarray dstArray, unsigned int dstIndex, CUarray srcArray, unsigned int srcIndex, unsigned int ByteCount)
CUresult cuMemcpy2D (const CUDA_MEMCPY2D *pCopy)
CUresult cuMemcpy2DUnaligned (const CUDA_MEMCPY2D *pCopy)
CUresult cuMemcpy3D (const CUDA_MEMCPY3D *pCopy)
CUresult cuMemcpyHtoDAsync (CUdeviceptr dstDevice, const void *srcHost, unsigned int ByteCount, CUstream hStream)
CUresult cuMemcpyDtoHAsync (void *dstHost, CUdeviceptr srcDevice, unsigned int ByteCount, CUstream hStream)
CUresult cuMemcpyHtoAAsync (CUarray dstArray, unsigned int dstIndex, const void *pSrc, unsigned int ByteCount, CUstream hStream)
CUresult cuMemcpyAtoHAsync (void *dstHost, CUarray srcArray, unsigned int srcIndex, unsigned int ByteCount, CUstream hStream)
CUresult cuMemcpy2DAsync (const CUDA_MEMCPY2D *pCopy, CUstream hStream)
CUresult cuMemcpy3DAsync (const CUDA_MEMCPY3D *pCopy, CUstream hStream)
CUresult cuMemsetD8 (CUdeviceptr dstDevice, unsigned char uc, unsigned int N)
CUresult cuMemsetD16 (CUdeviceptr dstDevice, unsigned short us, unsigned int N)
CUresult cuMemsetD32 (CUdeviceptr dstDevice, unsigned int ui, unsigned int N)
CUresult cuMemsetD2D8 (CUdeviceptr dstDevice, unsigned int dstPitch, unsigned char uc, unsigned int Width, unsigned int Height)
CUresult cuMemsetD2D16 (CUdeviceptr dstDevice, unsigned int dstPitch, unsigned short us, unsigned int Width, unsigned int Height)
CUresult cuMemsetD2D32 (CUdeviceptr dstDevice, unsigned int dstPitch, unsigned int ui, unsigned int Width, unsigned int Height)
CUresult cuFuncSetBlockShape (CUfunction hfunc, int x, int y, int z)
CUresult cuFuncSetSharedSize (CUfunction hfunc, unsigned int bytes)
CUresult cuFuncGetAttribute (int *pi, CUfunction_attribute attrib, CUfunction hfunc)
CUresult cuFuncSetCacheConfig (CUfunction hfunc, CUfunc_cache pconfig)
CUresult cuArrayCreate (CUarray *pHandle, const CUDA_ARRAY_DESCRIPTOR *pAllocateArray)
CUresult cuArrayGetDescriptor (CUDA_ARRAY_DESCRIPTOR *pArrayDescriptor, CUarray hArray)
CUresult cuArrayDestroy (CUarray hArray)
CUresult cuArray3DCreate (CUarray *pHandle, const CUDA_ARRAY3D_DESCRIPTOR *pAllocateArray)
CUresult cuArray3DGetDescriptor (CUDA_ARRAY3D_DESCRIPTOR *pArrayDescriptor, CUarray hArray)
CUresult cuTexRefCreate (CUtexref *pTexRef)
CUresult cuTexRefDestroy (CUtexref hTexRef)
CUresult cuTexRefSetArray (CUtexref hTexRef, CUarray hArray, unsigned int Flags)
CUresult cuTexRefSetAddress (size_t *ByteOffset, CUtexref hTexRef, CUdeviceptr dptr, unsigned int bytes)
CUresult cuTexRefSetAddress2D (CUtexref hTexRef, const CUDA_ARRAY_DESCRIPTOR *desc, CUdeviceptr dptr, unsigned int Pitch)
CUresult cuTexRefSetFormat (CUtexref hTexRef, CUarray_format fmt, int NumPackedComponents)
CUresult cuTexRefSetAddressMode (CUtexref hTexRef, int dim, CUaddress_mode am)
CUresult cuTexRefSetFilterMode (CUtexref hTexRef, CUfilter_mode fm)
CUresult cuTexRefSetFlags (CUtexref hTexRef, unsigned int Flags)
CUresult cuTexRefGetAddress (CUdeviceptr *pdptr, CUtexref hTexRef)
CUresult cuTexRefGetArray (CUarray *phArray, CUtexref hTexRef)
CUresult cuTexRefGetAddressMode (CUaddress_mode *pam, CUtexref hTexRef, int dim)
CUresult cuTexRefGetFilterMode (CUfilter_mode *pfm, CUtexref hTexRef)
CUresult cuTexRefGetFormat (CUarray_format *pFormat, int *pNumChannels, CUtexref hTexRef)
CUresult cuTexRefGetFlags (unsigned int *pFlags, CUtexref hTexRef)
CUresult cuParamSetSize (CUfunction hfunc, unsigned int numbytes)
CUresult cuParamSeti (CUfunction hfunc, int offset, unsigned int value)
CUresult cuParamSetf (CUfunction hfunc, int offset, float value)
CUresult cuParamSetv (CUfunction hfunc, int offset, void *ptr, unsigned int numbytes)
CUresult cuParamSetTexRef (CUfunction hfunc, int texunit, CUtexref hTexRef)
CUresult cuLaunch (CUfunction f)
CUresult cuLaunchGrid (CUfunction f, int grid_width, int grid_height)
CUresult cuLaunchGridAsync (CUfunction f, int grid_width, int grid_height, CUstream hStream)
CUresult cuEventCreate (CUevent *phEvent, unsigned int Flags)
CUresult cuEventRecord (CUevent hEvent, CUstream hStream)
CUresult cuEventQuery (CUevent hEvent)
CUresult cuEventSynchronize (CUevent hEvent)
CUresult cuEventDestroy (CUevent hEvent)
CUresult cuEventElapsedTime (float *pMilliseconds, CUevent hStart, CUevent hEnd)
CUresult cuStreamCreate (CUstream *phStream, unsigned int Flags)
CUresult cuStreamQuery (CUstream hStream)
CUresult cuStreamSynchronize (CUstream hStream)
CUresult cuStreamDestroy (CUstream hStream)
CUresult cuGraphicsUnregisterResource (CUgraphicsResource resource)
CUresult cuGraphicsSubResourceGetMappedArray (CUarray *pArray, CUgraphicsResource resource, unsigned int arrayIndex, unsigned int mipLevel)
CUresult cuGraphicsResourceGetMappedPointer (CUdeviceptr *pDevPtr, size_t *pSize, CUgraphicsResource resource)
CUresult cuGraphicsResourceSetMapFlags (CUgraphicsResource resource, unsigned int flags)
CUresult cuGraphicsMapResources (unsigned int count, CUgraphicsResource *resources, CUstream hStream)
CUresult cuGraphicsUnmapResources (unsigned int count, CUgraphicsResource *resources, CUstream hStream)
CUresult cuGLInit ()
CUresult cuGLCtxCreate (CUcontext *pCtx, unsigned int Flags, CUdevice device)
CUresult cuGraphicsGLRegisterBuffer (CUgraphicsResource *pCudaResource, unsigned int buffer, unsigned int Flags)
CUresult cuGraphicsGLRegisterImage (CUgraphicsResource *pCudaResource, unsigned int image, int target, unsigned int Flags)
CUresult cuGetExportTable (const void **ppExportTable, const CUuuid *pExportTableId)
std::string toString (CUresult result)

Static Public Member Functions

static CudaDriverFrontendget ()

Public Attributes

unsigned int _flags
boost::mutex _mutex
 locking object for _contexts queue [each contex has its own mutex]
ContextQueueThreadMap _contexts
 contexts
bool _devicesLoaded
 true if devices are loaded
int _computeCapability
 The minimum supoported compute capability.
executive::DeviceVector _devices
 set of available devices

Static Public Attributes

static CudaDriverFrontend_instance = 0
 singleton instance of front end

Detailed Description

implements the CUDA Driver API front-end to GPU Ocelot


Member Typedef Documentation

typedef std::map< boost::thread::id , ContextQueue > cuda::CudaDriverFrontend::ContextQueueThreadMap

Constructor & Destructor Documentation

cuda::CudaDriverFrontend::CudaDriverFrontend ( )
cuda::CudaDriverFrontend::~CudaDriverFrontend ( ) [virtual]

Member Function Documentation

CUresult cuda::CudaDriverFrontend::cuArray3DCreate ( CUarray pHandle,
const CUDA_ARRAY3D_DESCRIPTOR pAllocateArray 
) [virtual]

Reimplemented from cuda::CudaDriverInterface.

CUresult cuda::CudaDriverFrontend::cuArray3DGetDescriptor ( CUDA_ARRAY3D_DESCRIPTOR pArrayDescriptor,
CUarray  hArray 
) [virtual]

Reimplemented from cuda::CudaDriverInterface.

CUresult cuda::CudaDriverFrontend::cuArrayCreate ( CUarray pHandle,
const CUDA_ARRAY_DESCRIPTOR pAllocateArray 
) [virtual]

Reimplemented from cuda::CudaDriverInterface.

CUresult cuda::CudaDriverFrontend::cuArrayDestroy ( CUarray  hArray) [virtual]

Reimplemented from cuda::CudaDriverInterface.

CUresult cuda::CudaDriverFrontend::cuArrayGetDescriptor ( CUDA_ARRAY_DESCRIPTOR pArrayDescriptor,
CUarray  hArray 
) [virtual]

Reimplemented from cuda::CudaDriverInterface.

CUresult cuda::CudaDriverFrontend::cuCtxAttach ( CUcontext pctx,
unsigned int  flags 
) [virtual]

Reimplemented from cuda::CudaDriverInterface.

CUresult cuda::CudaDriverFrontend::cuCtxCreate ( CUcontext pctx,
unsigned int  flags,
CUdevice  dev 
) [virtual]

Reimplemented from cuda::CudaDriverInterface.

CUresult cuda::CudaDriverFrontend::cuCtxDestroy ( CUcontext  ctx) [virtual]

Reimplemented from cuda::CudaDriverInterface.

CUresult cuda::CudaDriverFrontend::cuCtxDetach ( CUcontext  ctx) [virtual]

Reimplemented from cuda::CudaDriverInterface.

CUresult cuda::CudaDriverFrontend::cuCtxGetDevice ( CUdevice device) [virtual]

Reimplemented from cuda::CudaDriverInterface.

CUresult cuda::CudaDriverFrontend::cuCtxPopCurrent ( CUcontext pctx) [virtual]

Reimplemented from cuda::CudaDriverInterface.

CUresult cuda::CudaDriverFrontend::cuCtxPushCurrent ( CUcontext  ctx) [virtual]

Reimplemented from cuda::CudaDriverInterface.

CUresult cuda::CudaDriverFrontend::cuCtxSynchronize ( void  ) [virtual]

Reimplemented from cuda::CudaDriverInterface.

CUresult cuda::CudaDriverFrontend::cuDeviceComputeCapability ( int *  major,
int *  minor,
CUdevice  dev 
) [virtual]

Reimplemented from cuda::CudaDriverInterface.

CUresult cuda::CudaDriverFrontend::cuDeviceGet ( CUdevice device,
int  ordinal 
) [virtual]

Reimplemented from cuda::CudaDriverInterface.

CUresult cuda::CudaDriverFrontend::cuDeviceGetAttribute ( int *  pi,
CUdevice_attribute  attrib,
CUdevice  dev 
) [virtual]

Reimplemented from cuda::CudaDriverInterface.

CUresult cuda::CudaDriverFrontend::cuDeviceGetCount ( int *  count) [virtual]

Reimplemented from cuda::CudaDriverInterface.

CUresult cuda::CudaDriverFrontend::cuDeviceGetName ( char *  name,
int  len,
CUdevice  dev 
) [virtual]

Reimplemented from cuda::CudaDriverInterface.

CUresult cuda::CudaDriverFrontend::cuDeviceGetProperties ( CUdevprop prop,
CUdevice  dev 
) [virtual]

Reimplemented from cuda::CudaDriverInterface.

CUresult cuda::CudaDriverFrontend::cuDeviceTotalMem ( size_t bytes,
CUdevice  dev 
) [virtual]

Reimplemented from cuda::CudaDriverInterface.

CUresult cuda::CudaDriverFrontend::cuDriverGetVersion ( int *  driverVersion) [virtual]

Reimplemented from cuda::CudaDriverInterface.

CUresult cuda::CudaDriverFrontend::cuEventCreate ( CUevent phEvent,
unsigned int  Flags 
) [virtual]

Reimplemented from cuda::CudaDriverInterface.

CUresult cuda::CudaDriverFrontend::cuEventDestroy ( CUevent  hEvent) [virtual]

Reimplemented from cuda::CudaDriverInterface.

CUresult cuda::CudaDriverFrontend::cuEventElapsedTime ( float *  pMilliseconds,
CUevent  hStart,
CUevent  hEnd 
) [virtual]

Reimplemented from cuda::CudaDriverInterface.

CUresult cuda::CudaDriverFrontend::cuEventQuery ( CUevent  hEvent) [virtual]

Reimplemented from cuda::CudaDriverInterface.

CUresult cuda::CudaDriverFrontend::cuEventRecord ( CUevent  hEvent,
CUstream  hStream 
) [virtual]

Reimplemented from cuda::CudaDriverInterface.

CUresult cuda::CudaDriverFrontend::cuEventSynchronize ( CUevent  hEvent) [virtual]

Reimplemented from cuda::CudaDriverInterface.

CUresult cuda::CudaDriverFrontend::cuFuncGetAttribute ( int *  pi,
CUfunction_attribute  attrib,
CUfunction  hfunc 
) [virtual]

Reimplemented from cuda::CudaDriverInterface.

CUresult cuda::CudaDriverFrontend::cuFuncSetBlockShape ( CUfunction  hfunc,
int  x,
int  y,
int  z 
) [virtual]

Reimplemented from cuda::CudaDriverInterface.

CUresult cuda::CudaDriverFrontend::cuFuncSetCacheConfig ( CUfunction  hfunc,
CUfunc_cache  pconfig 
) [virtual]

Reimplemented from cuda::CudaDriverInterface.

CUresult cuda::CudaDriverFrontend::cuFuncSetSharedSize ( CUfunction  hfunc,
unsigned int  bytes 
) [virtual]

Reimplemented from cuda::CudaDriverInterface.

CUresult cuda::CudaDriverFrontend::cuGetExportTable ( const void **  ppExportTable,
const CUuuid pExportTableId 
) [virtual]

Reimplemented from cuda::CudaDriverInterface.

CUresult cuda::CudaDriverFrontend::cuGLCtxCreate ( CUcontext pCtx,
unsigned int  Flags,
CUdevice  device 
) [virtual]

Reimplemented from cuda::CudaDriverInterface.

CUresult cuda::CudaDriverFrontend::cuGLInit ( ) [virtual]

Reimplemented from cuda::CudaDriverInterface.

CUresult cuda::CudaDriverFrontend::cuGraphicsGLRegisterBuffer ( CUgraphicsResource pCudaResource,
unsigned int  buffer,
unsigned int  Flags 
) [virtual]

Reimplemented from cuda::CudaDriverInterface.

CUresult cuda::CudaDriverFrontend::cuGraphicsGLRegisterImage ( CUgraphicsResource pCudaResource,
unsigned int  image,
int  target,
unsigned int  Flags 
) [virtual]

Reimplemented from cuda::CudaDriverInterface.

CUresult cuda::CudaDriverFrontend::cuGraphicsMapResources ( unsigned int  count,
CUgraphicsResource resources,
CUstream  hStream 
) [virtual]

Reimplemented from cuda::CudaDriverInterface.

CUresult cuda::CudaDriverFrontend::cuGraphicsResourceGetMappedPointer ( CUdeviceptr pDevPtr,
size_t pSize,
CUgraphicsResource  resource 
) [virtual]

Reimplemented from cuda::CudaDriverInterface.

CUresult cuda::CudaDriverFrontend::cuGraphicsResourceSetMapFlags ( CUgraphicsResource  resource,
unsigned int  flags 
) [virtual]

Reimplemented from cuda::CudaDriverInterface.

CUresult cuda::CudaDriverFrontend::cuGraphicsSubResourceGetMappedArray ( CUarray pArray,
CUgraphicsResource  resource,
unsigned int  arrayIndex,
unsigned int  mipLevel 
) [virtual]

Reimplemented from cuda::CudaDriverInterface.

CUresult cuda::CudaDriverFrontend::cuGraphicsUnmapResources ( unsigned int  count,
CUgraphicsResource resources,
CUstream  hStream 
) [virtual]

Reimplemented from cuda::CudaDriverInterface.

CUresult cuda::CudaDriverFrontend::cuGraphicsUnregisterResource ( CUgraphicsResource  resource) [virtual]

Reimplemented from cuda::CudaDriverInterface.

CUresult cuda::CudaDriverFrontend::cuInit ( unsigned int  Flags) [virtual]

Reimplemented from cuda::CudaDriverInterface.

CUresult cuda::CudaDriverFrontend::cuLaunch ( CUfunction  f) [virtual]

Reimplemented from cuda::CudaDriverInterface.

CUresult cuda::CudaDriverFrontend::cuLaunchGrid ( CUfunction  f,
int  grid_width,
int  grid_height 
) [virtual]

Reimplemented from cuda::CudaDriverInterface.

CUresult cuda::CudaDriverFrontend::cuLaunchGridAsync ( CUfunction  f,
int  grid_width,
int  grid_height,
CUstream  hStream 
) [virtual]

Reimplemented from cuda::CudaDriverInterface.

CUresult cuda::CudaDriverFrontend::cuMemAlloc ( CUdeviceptr dptr,
unsigned int  bytesize 
) [virtual]

Reimplemented from cuda::CudaDriverInterface.

CUresult cuda::CudaDriverFrontend::cuMemAllocHost ( void **  pp,
unsigned int  bytesize 
) [virtual]

Reimplemented from cuda::CudaDriverInterface.

CUresult cuda::CudaDriverFrontend::cuMemAllocPitch ( CUdeviceptr dptr,
size_t pPitch,
unsigned int  WidthInBytes,
unsigned int  Height,
unsigned int  ElementSizeBytes 
) [virtual]

Reimplemented from cuda::CudaDriverInterface.

CUresult cuda::CudaDriverFrontend::cuMemcpy2D ( const CUDA_MEMCPY2D pCopy) [virtual]

Reimplemented from cuda::CudaDriverInterface.

CUresult cuda::CudaDriverFrontend::cuMemcpy2DAsync ( const CUDA_MEMCPY2D pCopy,
CUstream  hStream 
) [virtual]

Reimplemented from cuda::CudaDriverInterface.

CUresult cuda::CudaDriverFrontend::cuMemcpy2DUnaligned ( const CUDA_MEMCPY2D pCopy) [virtual]

Reimplemented from cuda::CudaDriverInterface.

CUresult cuda::CudaDriverFrontend::cuMemcpy3D ( const CUDA_MEMCPY3D pCopy) [virtual]

Reimplemented from cuda::CudaDriverInterface.

CUresult cuda::CudaDriverFrontend::cuMemcpy3DAsync ( const CUDA_MEMCPY3D pCopy,
CUstream  hStream 
) [virtual]

Reimplemented from cuda::CudaDriverInterface.

CUresult cuda::CudaDriverFrontend::cuMemcpyAtoA ( CUarray  dstArray,
unsigned int  dstIndex,
CUarray  srcArray,
unsigned int  srcIndex,
unsigned int  ByteCount 
) [virtual]

Reimplemented from cuda::CudaDriverInterface.

CUresult cuda::CudaDriverFrontend::cuMemcpyAtoD ( CUdeviceptr  dstDevice,
CUarray  hSrc,
unsigned int  SrcIndex,
unsigned int  ByteCount 
) [virtual]

Reimplemented from cuda::CudaDriverInterface.

CUresult cuda::CudaDriverFrontend::cuMemcpyAtoH ( void *  dstHost,
CUarray  srcArray,
unsigned int  srcIndex,
unsigned int  ByteCount 
) [virtual]

Reimplemented from cuda::CudaDriverInterface.

CUresult cuda::CudaDriverFrontend::cuMemcpyAtoHAsync ( void *  dstHost,
CUarray  srcArray,
unsigned int  srcIndex,
unsigned int  ByteCount,
CUstream  hStream 
) [virtual]

Reimplemented from cuda::CudaDriverInterface.

CUresult cuda::CudaDriverFrontend::cuMemcpyDtoA ( CUarray  dstArray,
unsigned int  dstIndex,
CUdeviceptr  srcDevice,
unsigned int  ByteCount 
) [virtual]

Reimplemented from cuda::CudaDriverInterface.

CUresult cuda::CudaDriverFrontend::cuMemcpyDtoD ( CUdeviceptr  dstDevice,
CUdeviceptr  srcDevice,
unsigned int  ByteCount 
) [virtual]

Reimplemented from cuda::CudaDriverInterface.

CUresult cuda::CudaDriverFrontend::cuMemcpyDtoH ( void *  dstHost,
CUdeviceptr  srcDevice,
unsigned int  ByteCount 
) [virtual]

Reimplemented from cuda::CudaDriverInterface.

CUresult cuda::CudaDriverFrontend::cuMemcpyDtoHAsync ( void *  dstHost,
CUdeviceptr  srcDevice,
unsigned int  ByteCount,
CUstream  hStream 
) [virtual]

Reimplemented from cuda::CudaDriverInterface.

CUresult cuda::CudaDriverFrontend::cuMemcpyHtoA ( CUarray  dstArray,
unsigned int  dstIndex,
const void *  pSrc,
unsigned int  ByteCount 
) [virtual]

Reimplemented from cuda::CudaDriverInterface.

CUresult cuda::CudaDriverFrontend::cuMemcpyHtoAAsync ( CUarray  dstArray,
unsigned int  dstIndex,
const void *  pSrc,
unsigned int  ByteCount,
CUstream  hStream 
) [virtual]

Reimplemented from cuda::CudaDriverInterface.

CUresult cuda::CudaDriverFrontend::cuMemcpyHtoD ( CUdeviceptr  dstDevice,
const void *  srcHost,
unsigned int  ByteCount 
) [virtual]

Reimplemented from cuda::CudaDriverInterface.

CUresult cuda::CudaDriverFrontend::cuMemcpyHtoDAsync ( CUdeviceptr  dstDevice,
const void *  srcHost,
unsigned int  ByteCount,
CUstream  hStream 
) [virtual]

Reimplemented from cuda::CudaDriverInterface.

CUresult cuda::CudaDriverFrontend::cuMemcpyHtoH ( void *  dstHost,
const void *  srcHost,
unsigned int  ByteCount 
) [virtual]

Reimplemented from cuda::CudaDriverInterface.

CUresult cuda::CudaDriverFrontend::cuMemFree ( CUdeviceptr  dptr) [virtual]

Reimplemented from cuda::CudaDriverInterface.

CUresult cuda::CudaDriverFrontend::cuMemFreeHost ( void *  p) [virtual]

Reimplemented from cuda::CudaDriverInterface.

CUresult cuda::CudaDriverFrontend::cuMemGetAddressRange ( CUdeviceptr pbase,
size_t psize,
CUdeviceptr  dptr 
) [virtual]

Reimplemented from cuda::CudaDriverInterface.

CUresult cuda::CudaDriverFrontend::cuMemGetInfo ( size_t free,
size_t total 
) [virtual]

Reimplemented from cuda::CudaDriverInterface.

CUresult cuda::CudaDriverFrontend::cuMemHostAlloc ( void **  pp,
unsigned long long  bytesize,
unsigned int  Flags 
) [virtual]

Reimplemented from cuda::CudaDriverInterface.

CUresult cuda::CudaDriverFrontend::cuMemHostGetDevicePointer ( CUdeviceptr pdptr,
void *  p,
unsigned int  Flags 
) [virtual]

Reimplemented from cuda::CudaDriverInterface.

CUresult cuda::CudaDriverFrontend::cuMemHostGetFlags ( unsigned int *  pFlags,
void *  p 
) [virtual]

Reimplemented from cuda::CudaDriverInterface.

CUresult cuda::CudaDriverFrontend::cuMemsetD16 ( CUdeviceptr  dstDevice,
unsigned short  us,
unsigned int  N 
) [virtual]

Reimplemented from cuda::CudaDriverInterface.

CUresult cuda::CudaDriverFrontend::cuMemsetD2D16 ( CUdeviceptr  dstDevice,
unsigned int  dstPitch,
unsigned short  us,
unsigned int  Width,
unsigned int  Height 
) [virtual]

Reimplemented from cuda::CudaDriverInterface.

CUresult cuda::CudaDriverFrontend::cuMemsetD2D32 ( CUdeviceptr  dstDevice,
unsigned int  dstPitch,
unsigned int  ui,
unsigned int  Width,
unsigned int  Height 
) [virtual]

Reimplemented from cuda::CudaDriverInterface.

CUresult cuda::CudaDriverFrontend::cuMemsetD2D8 ( CUdeviceptr  dstDevice,
unsigned int  dstPitch,
unsigned char  uc,
unsigned int  Width,
unsigned int  Height 
) [virtual]

Reimplemented from cuda::CudaDriverInterface.

CUresult cuda::CudaDriverFrontend::cuMemsetD32 ( CUdeviceptr  dstDevice,
unsigned int  ui,
unsigned int  N 
) [virtual]

Reimplemented from cuda::CudaDriverInterface.

CUresult cuda::CudaDriverFrontend::cuMemsetD8 ( CUdeviceptr  dstDevice,
unsigned char  uc,
unsigned int  N 
) [virtual]

Reimplemented from cuda::CudaDriverInterface.

CUresult cuda::CudaDriverFrontend::cuModuleGetFunction ( CUfunction hfunc,
CUmodule  hmod,
const char *  name 
) [virtual]

Reimplemented from cuda::CudaDriverInterface.

CUresult cuda::CudaDriverFrontend::cuModuleGetGlobal ( CUdeviceptr dptr,
size_t bytes,
CUmodule  hmod,
const char *  name 
) [virtual]

Reimplemented from cuda::CudaDriverInterface.

CUresult cuda::CudaDriverFrontend::cuModuleGetTexRef ( CUtexref pTexRef,
CUmodule  hmod,
const char *  name 
) [virtual]

Reimplemented from cuda::CudaDriverInterface.

CUresult cuda::CudaDriverFrontend::cuModuleLoad ( CUmodule module,
const char *  fname 
) [virtual]

Reimplemented from cuda::CudaDriverInterface.

CUresult cuda::CudaDriverFrontend::cuModuleLoadData ( CUmodule module,
const void *  image 
) [virtual]

Reimplemented from cuda::CudaDriverInterface.

CUresult cuda::CudaDriverFrontend::cuModuleLoadDataEx ( CUmodule module,
const void *  image,
unsigned int  numOptions,
CUjit_option options,
void **  optionValues 
) [virtual]

Reimplemented from cuda::CudaDriverInterface.

CUresult cuda::CudaDriverFrontend::cuModuleLoadFatBinary ( CUmodule module,
const void *  fatCubin 
) [virtual]

Reimplemented from cuda::CudaDriverInterface.

CUresult cuda::CudaDriverFrontend::cuModuleUnload ( CUmodule  hmod) [virtual]

Reimplemented from cuda::CudaDriverInterface.

CUresult cuda::CudaDriverFrontend::cuParamSetf ( CUfunction  hfunc,
int  offset,
float  value 
) [virtual]

Reimplemented from cuda::CudaDriverInterface.

CUresult cuda::CudaDriverFrontend::cuParamSeti ( CUfunction  hfunc,
int  offset,
unsigned int  value 
) [virtual]

Reimplemented from cuda::CudaDriverInterface.

CUresult cuda::CudaDriverFrontend::cuParamSetSize ( CUfunction  hfunc,
unsigned int  numbytes 
) [virtual]

Reimplemented from cuda::CudaDriverInterface.

CUresult cuda::CudaDriverFrontend::cuParamSetTexRef ( CUfunction  hfunc,
int  texunit,
CUtexref  hTexRef 
) [virtual]

Reimplemented from cuda::CudaDriverInterface.

CUresult cuda::CudaDriverFrontend::cuParamSetv ( CUfunction  hfunc,
int  offset,
void *  ptr,
unsigned int  numbytes 
) [virtual]

Reimplemented from cuda::CudaDriverInterface.

CUresult cuda::CudaDriverFrontend::cuStreamCreate ( CUstream phStream,
unsigned int  Flags 
) [virtual]

Reimplemented from cuda::CudaDriverInterface.

CUresult cuda::CudaDriverFrontend::cuStreamDestroy ( CUstream  hStream) [virtual]

Reimplemented from cuda::CudaDriverInterface.

CUresult cuda::CudaDriverFrontend::cuStreamQuery ( CUstream  hStream) [virtual]

Reimplemented from cuda::CudaDriverInterface.

CUresult cuda::CudaDriverFrontend::cuStreamSynchronize ( CUstream  hStream) [virtual]

Reimplemented from cuda::CudaDriverInterface.

CUresult cuda::CudaDriverFrontend::cuTexRefCreate ( CUtexref pTexRef) [virtual]

Reimplemented from cuda::CudaDriverInterface.

CUresult cuda::CudaDriverFrontend::cuTexRefDestroy ( CUtexref  hTexRef) [virtual]

Reimplemented from cuda::CudaDriverInterface.

CUresult cuda::CudaDriverFrontend::cuTexRefGetAddress ( CUdeviceptr pdptr,
CUtexref  hTexRef 
) [virtual]

Reimplemented from cuda::CudaDriverInterface.

CUresult cuda::CudaDriverFrontend::cuTexRefGetAddressMode ( CUaddress_mode pam,
CUtexref  hTexRef,
int  dim 
) [virtual]

Reimplemented from cuda::CudaDriverInterface.

CUresult cuda::CudaDriverFrontend::cuTexRefGetArray ( CUarray phArray,
CUtexref  hTexRef 
) [virtual]

Reimplemented from cuda::CudaDriverInterface.

CUresult cuda::CudaDriverFrontend::cuTexRefGetFilterMode ( CUfilter_mode pfm,
CUtexref  hTexRef 
) [virtual]

Reimplemented from cuda::CudaDriverInterface.

CUresult cuda::CudaDriverFrontend::cuTexRefGetFlags ( unsigned int *  pFlags,
CUtexref  hTexRef 
) [virtual]

Reimplemented from cuda::CudaDriverInterface.

CUresult cuda::CudaDriverFrontend::cuTexRefGetFormat ( CUarray_format pFormat,
int *  pNumChannels,
CUtexref  hTexRef 
) [virtual]

Reimplemented from cuda::CudaDriverInterface.

CUresult cuda::CudaDriverFrontend::cuTexRefSetAddress ( size_t ByteOffset,
CUtexref  hTexRef,
CUdeviceptr  dptr,
unsigned int  bytes 
) [virtual]

Reimplemented from cuda::CudaDriverInterface.

CUresult cuda::CudaDriverFrontend::cuTexRefSetAddress2D ( CUtexref  hTexRef,
const CUDA_ARRAY_DESCRIPTOR desc,
CUdeviceptr  dptr,
unsigned int  Pitch 
) [virtual]

Reimplemented from cuda::CudaDriverInterface.

CUresult cuda::CudaDriverFrontend::cuTexRefSetAddressMode ( CUtexref  hTexRef,
int  dim,
CUaddress_mode  am 
) [virtual]

Reimplemented from cuda::CudaDriverInterface.

CUresult cuda::CudaDriverFrontend::cuTexRefSetArray ( CUtexref  hTexRef,
CUarray  hArray,
unsigned int  Flags 
) [virtual]

Reimplemented from cuda::CudaDriverInterface.

CUresult cuda::CudaDriverFrontend::cuTexRefSetFilterMode ( CUtexref  hTexRef,
CUfilter_mode  fm 
) [virtual]

Reimplemented from cuda::CudaDriverInterface.

CUresult cuda::CudaDriverFrontend::cuTexRefSetFlags ( CUtexref  hTexRef,
unsigned int  Flags 
) [virtual]

Reimplemented from cuda::CudaDriverInterface.

CUresult cuda::CudaDriverFrontend::cuTexRefSetFormat ( CUtexref  hTexRef,
CUarray_format  fmt,
int  NumPackedComponents 
) [virtual]

Reimplemented from cuda::CudaDriverInterface.

static CudaDriverFrontend* cuda::CudaDriverFrontend::get ( ) [static]

Reimplemented from cuda::CudaDriverInterface.

std::string cuda::CudaDriverFrontend::toString ( CUresult  result)

Reimplemented from cuda::CudaDriverInterface.


Member Data Documentation

The minimum supoported compute capability.

contexts

set of available devices

true if devices are loaded

singleton instance of front end

locking object for _contexts queue [each contex has its own mutex]


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines