Blender V2.61 - r43446
Classes | Defines | Typedefs | Enumerations | Functions | Variables

util_cuda.h File Reference

#include <stdlib.h>
#include "util_opengl.h"
#include "util_string.h"

Go to the source code of this file.

Classes

struct  CUuuid_st
struct  CUdevprop_st
struct  CUDA_MEMCPY2D_st
struct  CUDA_MEMCPY3D_st
struct  CUDA_ARRAY_DESCRIPTOR_st
struct  CUDA_ARRAY3D_DESCRIPTOR_st

Defines

#define CUDA_VERSION   3020
#define CU_MEMHOSTALLOC_PORTABLE   0x01
#define CU_MEMHOSTALLOC_DEVICEMAP   0x02
#define CU_MEMHOSTALLOC_WRITECOMBINED   0x04
#define CUDA_ARRAY3D_2DARRAY   0x01
#define CUDA_ARRAY3D_SURFACE_LDST   0x02
#define CU_TRSA_OVERRIDE_FORMAT   0x01
#define CU_TRSF_READ_AS_INTEGER   0x01
#define CU_TRSF_NORMALIZED_COORDINATES   0x02
#define CU_TRSF_SRGB   0x10
#define CU_PARAM_TR_DEFAULT   -1
#define CUDAAPI

Typedefs

typedef unsigned int CUdeviceptr
typedef int CUdevice
typedef struct CUctx_st * CUcontext
typedef struct CUmod_st * CUmodule
typedef struct CUfunc_st * CUfunction
typedef struct CUarray_st * CUarray
typedef struct CUtexref_st * CUtexref
typedef struct CUsurfref_st * CUsurfref
typedef struct CUevent_st * CUevent
typedef struct CUstream_st * CUstream
typedef struct
CUgraphicsResource_st * 
CUgraphicsResource
typedef struct CUuuid_st CUuuid
typedef enum CUctx_flags_enum CUctx_flags
typedef enum CUevent_flags_enum CUevent_flags
typedef enum CUarray_format_enum CUarray_format
typedef enum CUaddress_mode_enum CUaddress_mode
typedef enum CUfilter_mode_enum CUfilter_mode
typedef enum
CUdevice_attribute_enum 
CUdevice_attribute
typedef struct CUdevprop_st CUdevprop
typedef enum
CUfunction_attribute_enum 
CUfunction_attribute
typedef enum CUfunc_cache_enum CUfunc_cache
typedef enum CUmemorytype_enum CUmemorytype
typedef enum CUcomputemode_enum CUcomputemode
typedef enum CUjit_option_enum CUjit_option
typedef enum CUjit_target_enum CUjit_target
typedef enum CUjit_fallback_enum CUjit_fallback
typedef enum
CUgraphicsRegisterFlags_enum 
CUgraphicsRegisterFlags
typedef enum
CUgraphicsMapResourceFlags_enum 
CUgraphicsMapResourceFlags
typedef enum
CUarray_cubemap_face_enum 
CUarray_cubemap_face
typedef enum CUlimit_enum CUlimit
typedef enum cudaError_enum CUresult
typedef struct CUDA_MEMCPY2D_st CUDA_MEMCPY2D
typedef struct CUDA_MEMCPY3D_st CUDA_MEMCPY3D
typedef struct
CUDA_ARRAY_DESCRIPTOR_st 
CUDA_ARRAY_DESCRIPTOR
typedef struct
CUDA_ARRAY3D_DESCRIPTOR_st 
CUDA_ARRAY3D_DESCRIPTOR
typedef CUresult CUDAAPI tcuInit (unsigned int Flags)
typedef CUresult CUDAAPI tcuDriverGetVersion (int *driverVersion)
typedef CUresult CUDAAPI tcuDeviceGet (CUdevice *device, int ordinal)
typedef CUresult CUDAAPI tcuDeviceGetCount (int *count)
typedef CUresult CUDAAPI tcuDeviceGetName (char *name, int len, CUdevice dev)
typedef CUresult CUDAAPI tcuDeviceComputeCapability (int *major, int *minor, CUdevice dev)
typedef CUresult CUDAAPI tcuDeviceTotalMem (size_t *bytes, CUdevice dev)
typedef CUresult CUDAAPI tcuDeviceGetProperties (CUdevprop *prop, CUdevice dev)
typedef CUresult CUDAAPI tcuDeviceGetAttribute (int *pi, CUdevice_attribute attrib, CUdevice dev)
typedef CUresult CUDAAPI tcuCtxCreate (CUcontext *pctx, unsigned int flags, CUdevice dev)
typedef CUresult CUDAAPI tcuCtxDestroy (CUcontext ctx)
typedef CUresult CUDAAPI tcuCtxAttach (CUcontext *pctx, unsigned int flags)
typedef CUresult CUDAAPI tcuCtxDetach (CUcontext ctx)
typedef CUresult CUDAAPI tcuCtxPushCurrent (CUcontext ctx)
typedef CUresult CUDAAPI tcuCtxPopCurrent (CUcontext *pctx)
typedef CUresult CUDAAPI tcuCtxGetDevice (CUdevice *device)
typedef CUresult CUDAAPI tcuCtxSynchronize (void)
typedef CUresult CUDAAPI tcuCtxSetLimit (CUlimit limit, size_t value)
typedef CUresult CUDAAPI tcuCtxGetLimit (size_t *pvalue, CUlimit limit)
typedef CUresult CUDAAPI tcuCtxGetCacheConfig (CUfunc_cache *pconfig)
typedef CUresult CUDAAPI tcuCtxSetCacheConfig (CUfunc_cache config)
typedef CUresult CUDAAPI tcuCtxGetApiVersion (CUcontext ctx, unsigned int *version)
typedef CUresult CUDAAPI tcuModuleLoad (CUmodule *module, const char *fname)
typedef CUresult CUDAAPI tcuModuleLoadData (CUmodule *module, const void *image)
typedef CUresult CUDAAPI tcuModuleLoadDataEx (CUmodule *module, const void *image, unsigned int numOptions, CUjit_option *options, void **optionValues)
typedef CUresult CUDAAPI tcuModuleLoadFatBinary (CUmodule *module, const void *fatCubin)
typedef CUresult CUDAAPI tcuModuleUnload (CUmodule hmod)
typedef CUresult CUDAAPI tcuModuleGetFunction (CUfunction *hfunc, CUmodule hmod, const char *name)
typedef CUresult CUDAAPI tcuModuleGetGlobal (CUdeviceptr *dptr, size_t *bytes, CUmodule hmod, const char *name)
typedef CUresult CUDAAPI tcuModuleGetTexRef (CUtexref *pTexRef, CUmodule hmod, const char *name)
typedef CUresult CUDAAPI tcuModuleGetSurfRef (CUsurfref *pSurfRef, CUmodule hmod, const char *name)
typedef CUresult CUDAAPI tcuMemGetInfo (size_t *free, size_t *total)
typedef CUresult CUDAAPI tcuMemAlloc (CUdeviceptr *dptr, size_t bytesize)
typedef CUresult CUDAAPI tcuMemAllocPitch (CUdeviceptr *dptr, size_t *pPitch, size_t WidthInBytes, size_t Height, unsigned int ElementSizeBytes)
typedef CUresult CUDAAPI tcuMemFree (CUdeviceptr dptr)
typedef CUresult CUDAAPI tcuMemGetAddressRange (CUdeviceptr *pbase, size_t *psize, CUdeviceptr dptr)
typedef CUresult CUDAAPI tcuMemAllocHost (void **pp, size_t bytesize)
typedef CUresult CUDAAPI tcuMemFreeHost (void *p)
typedef CUresult CUDAAPI tcuMemHostAlloc (void **pp, size_t bytesize, unsigned int Flags)
typedef CUresult CUDAAPI tcuMemHostGetDevicePointer (CUdeviceptr *pdptr, void *p, unsigned int Flags)
typedef CUresult CUDAAPI tcuMemHostGetFlags (unsigned int *pFlags, void *p)
typedef CUresult CUDAAPI tcuMemcpyHtoD (CUdeviceptr dstDevice, const void *srcHost, size_t ByteCount)
typedef CUresult CUDAAPI tcuMemcpyDtoH (void *dstHost, CUdeviceptr srcDevice, size_t ByteCount)
typedef CUresult CUDAAPI tcuMemcpyDtoD (CUdeviceptr dstDevice, CUdeviceptr srcDevice, size_t ByteCount)
typedef CUresult CUDAAPI tcuMemcpyDtoA (CUarray dstArray, size_t dstOffset, CUdeviceptr srcDevice, size_t ByteCount)
typedef CUresult CUDAAPI tcuMemcpyAtoD (CUdeviceptr dstDevice, CUarray srcArray, size_t srcOffset, size_t ByteCount)
typedef CUresult CUDAAPI tcuMemcpyHtoA (CUarray dstArray, size_t dstOffset, const void *srcHost, size_t ByteCount)
typedef CUresult CUDAAPI tcuMemcpyAtoH (void *dstHost, CUarray srcArray, size_t srcOffset, size_t ByteCount)
typedef CUresult CUDAAPI tcuMemcpyAtoA (CUarray dstArray, size_t dstOffset, CUarray srcArray, size_t srcOffset, size_t ByteCount)
typedef CUresult CUDAAPI tcuMemcpy2D (const CUDA_MEMCPY2D *pCopy)
typedef CUresult CUDAAPI tcuMemcpy2DUnaligned (const CUDA_MEMCPY2D *pCopy)
typedef CUresult CUDAAPI tcuMemcpy3D (const CUDA_MEMCPY3D *pCopy)
typedef CUresult CUDAAPI tcuMemcpyHtoDAsync (CUdeviceptr dstDevice, const void *srcHost, size_t ByteCount, CUstream hStream)
typedef CUresult CUDAAPI tcuMemcpyDtoHAsync (void *dstHost, CUdeviceptr srcDevice, size_t ByteCount, CUstream hStream)
typedef CUresult CUDAAPI tcuMemcpyDtoDAsync (CUdeviceptr dstDevice, CUdeviceptr srcDevice, size_t ByteCount, CUstream hStream)
typedef CUresult CUDAAPI tcuMemcpyHtoAAsync (CUarray dstArray, size_t dstOffset, const void *srcHost, size_t ByteCount, CUstream hStream)
typedef CUresult CUDAAPI tcuMemcpyAtoHAsync (void *dstHost, CUarray srcArray, size_t srcOffset, size_t ByteCount, CUstream hStream)
typedef CUresult CUDAAPI tcuMemcpy2DAsync (const CUDA_MEMCPY2D *pCopy, CUstream hStream)
typedef CUresult CUDAAPI tcuMemcpy3DAsync (const CUDA_MEMCPY3D *pCopy, CUstream hStream)
typedef CUresult CUDAAPI tcuMemsetD8 (CUdeviceptr dstDevice, unsigned char uc, size_t N)
typedef CUresult CUDAAPI tcuMemsetD16 (CUdeviceptr dstDevice, unsigned short us, size_t N)
typedef CUresult CUDAAPI tcuMemsetD32 (CUdeviceptr dstDevice, unsigned int ui, size_t N)
typedef CUresult CUDAAPI tcuMemsetD2D8 (CUdeviceptr dstDevice, size_t dstPitch, unsigned char uc, size_t Width, size_t Height)
typedef CUresult CUDAAPI tcuMemsetD2D16 (CUdeviceptr dstDevice, size_t dstPitch, unsigned short us, size_t Width, size_t Height)
typedef CUresult CUDAAPI tcuMemsetD2D32 (CUdeviceptr dstDevice, size_t dstPitch, unsigned int ui, size_t Width, size_t Height)
typedef CUresult CUDAAPI tcuMemsetD8Async (CUdeviceptr dstDevice, unsigned char uc, size_t N, CUstream hStream)
typedef CUresult CUDAAPI tcuMemsetD16Async (CUdeviceptr dstDevice, unsigned short us, size_t N, CUstream hStream)
typedef CUresult CUDAAPI tcuMemsetD32Async (CUdeviceptr dstDevice, unsigned int ui, size_t N, CUstream hStream)
typedef CUresult CUDAAPI tcuMemsetD2D8Async (CUdeviceptr dstDevice, size_t dstPitch, unsigned char uc, size_t Width, size_t Height, CUstream hStream)
typedef CUresult CUDAAPI tcuMemsetD2D16Async (CUdeviceptr dstDevice, size_t dstPitch, unsigned short us, size_t Width, size_t Height, CUstream hStream)
typedef CUresult CUDAAPI tcuMemsetD2D32Async (CUdeviceptr dstDevice, size_t dstPitch, unsigned int ui, size_t Width, size_t Height, CUstream hStream)
typedef CUresult CUDAAPI tcuArrayCreate (CUarray *pHandle, const CUDA_ARRAY_DESCRIPTOR *pAllocateArray)
typedef CUresult CUDAAPI tcuArrayGetDescriptor (CUDA_ARRAY_DESCRIPTOR *pArrayDescriptor, CUarray hArray)
typedef CUresult CUDAAPI tcuArrayDestroy (CUarray hArray)
typedef CUresult CUDAAPI tcuArray3DCreate (CUarray *pHandle, const CUDA_ARRAY3D_DESCRIPTOR *pAllocateArray)
typedef CUresult CUDAAPI tcuArray3DGetDescriptor (CUDA_ARRAY3D_DESCRIPTOR *pArrayDescriptor, CUarray hArray)
typedef CUresult CUDAAPI tcuStreamCreate (CUstream *phStream, unsigned int Flags)
typedef CUresult CUDAAPI tcuStreamWaitEvent (CUstream hStream, CUevent hEvent, unsigned int Flags)
typedef CUresult CUDAAPI tcuStreamQuery (CUstream hStream)
typedef CUresult CUDAAPI tcuStreamSynchronize (CUstream hStream)
typedef CUresult CUDAAPI tcuStreamDestroy (CUstream hStream)
typedef CUresult CUDAAPI tcuEventCreate (CUevent *phEvent, unsigned int Flags)
typedef CUresult CUDAAPI tcuEventRecord (CUevent hEvent, CUstream hStream)
typedef CUresult CUDAAPI tcuEventQuery (CUevent hEvent)
typedef CUresult CUDAAPI tcuEventSynchronize (CUevent hEvent)
typedef CUresult CUDAAPI tcuEventDestroy (CUevent hEvent)
typedef CUresult CUDAAPI tcuEventElapsedTime (float *pMilliseconds, CUevent hStart, CUevent hEnd)
typedef CUresult CUDAAPI tcuFuncSetBlockShape (CUfunction hfunc, int x, int y, int z)
typedef CUresult CUDAAPI tcuFuncSetSharedSize (CUfunction hfunc, unsigned int bytes)
typedef CUresult CUDAAPI tcuFuncGetAttribute (int *pi, CUfunction_attribute attrib, CUfunction hfunc)
typedef CUresult CUDAAPI tcuFuncSetCacheConfig (CUfunction hfunc, CUfunc_cache config)
typedef CUresult CUDAAPI tcuParamSetSize (CUfunction hfunc, unsigned int numbytes)
typedef CUresult CUDAAPI tcuParamSeti (CUfunction hfunc, int offset, unsigned int value)
typedef CUresult CUDAAPI tcuParamSetf (CUfunction hfunc, int offset, float value)
typedef CUresult CUDAAPI tcuParamSetv (CUfunction hfunc, int offset, void *ptr, unsigned int numbytes)
typedef CUresult CUDAAPI tcuLaunch (CUfunction f)
typedef CUresult CUDAAPI tcuLaunchGrid (CUfunction f, int grid_width, int grid_height)
typedef CUresult CUDAAPI tcuLaunchGridAsync (CUfunction f, int grid_width, int grid_height, CUstream hStream)
typedef CUresult CUDAAPI tcuParamSetTexRef (CUfunction hfunc, int texunit, CUtexref hTexRef)
typedef CUresult CUDAAPI tcuTexRefSetArray (CUtexref hTexRef, CUarray hArray, unsigned int Flags)
typedef CUresult CUDAAPI tcuTexRefSetAddress (size_t *ByteOffset, CUtexref hTexRef, CUdeviceptr dptr, size_t bytes)
typedef CUresult CUDAAPI tcuTexRefSetAddress2D (CUtexref hTexRef, const CUDA_ARRAY_DESCRIPTOR *desc, CUdeviceptr dptr, size_t Pitch)
typedef CUresult CUDAAPI tcuTexRefSetFormat (CUtexref hTexRef, CUarray_format fmt, int NumPackedComponents)
typedef CUresult CUDAAPI tcuTexRefSetAddressMode (CUtexref hTexRef, int dim, CUaddress_mode am)
typedef CUresult CUDAAPI tcuTexRefSetFilterMode (CUtexref hTexRef, CUfilter_mode fm)
typedef CUresult CUDAAPI tcuTexRefSetFlags (CUtexref hTexRef, unsigned int Flags)
typedef CUresult CUDAAPI tcuTexRefGetAddress (CUdeviceptr *pdptr, CUtexref hTexRef)
typedef CUresult CUDAAPI tcuTexRefGetArray (CUarray *phArray, CUtexref hTexRef)
typedef CUresult CUDAAPI tcuTexRefGetAddressMode (CUaddress_mode *pam, CUtexref hTexRef, int dim)
typedef CUresult CUDAAPI tcuTexRefGetFilterMode (CUfilter_mode *pfm, CUtexref hTexRef)
typedef CUresult CUDAAPI tcuTexRefGetFormat (CUarray_format *pFormat, int *pNumChannels, CUtexref hTexRef)
typedef CUresult CUDAAPI tcuTexRefGetFlags (unsigned int *pFlags, CUtexref hTexRef)
typedef CUresult CUDAAPI tcuTexRefCreate (CUtexref *pTexRef)
typedef CUresult CUDAAPI tcuTexRefDestroy (CUtexref hTexRef)
typedef CUresult CUDAAPI tcuSurfRefSetArray (CUsurfref hSurfRef, CUarray hArray, unsigned int Flags)
typedef CUresult CUDAAPI tcuSurfRefGetArray (CUarray *phArray, CUsurfref hSurfRef)
typedef CUresult CUDAAPI tcuGraphicsUnregisterResource (CUgraphicsResource resource)
typedef CUresult CUDAAPI tcuGraphicsSubResourceGetMappedArray (CUarray *pArray, CUgraphicsResource resource, unsigned int arrayIndex, unsigned int mipLevel)
typedef CUresult CUDAAPI tcuGraphicsResourceGetMappedPointer (CUdeviceptr *pDevPtr, size_t *pSize, CUgraphicsResource resource)
typedef CUresult CUDAAPI tcuGraphicsResourceSetMapFlags (CUgraphicsResource resource, unsigned int flags)
typedef CUresult CUDAAPI tcuGraphicsMapResources (unsigned int count, CUgraphicsResource *resources, CUstream hStream)
typedef CUresult CUDAAPI tcuGraphicsUnmapResources (unsigned int count, CUgraphicsResource *resources, CUstream hStream)
typedef CUresult CUDAAPI tcuGetExportTable (const void **ppExportTable, const CUuuid *pExportTableId)
typedef CUresult CUDAAPI tcuGLCtxCreate (CUcontext *pCtx, unsigned int Flags, CUdevice device)
typedef CUresult CUDAAPI tcuGraphicsGLRegisterBuffer (CUgraphicsResource *pCudaResource, GLuint buffer, unsigned int Flags)
typedef CUresult CUDAAPI tcuGraphicsGLRegisterImage (CUgraphicsResource *pCudaResource, GLuint image, GLenum target, unsigned int Flags)
typedef CUresult CUDAAPI tcuCtxSetCurrent (CUcontext ctx)

Enumerations

enum  CUctx_flags_enum {
  CU_CTX_SCHED_AUTO = 0, CU_CTX_SCHED_SPIN = 1, CU_CTX_SCHED_YIELD = 2, CU_CTX_SCHED_MASK = 0x3,
  CU_CTX_BLOCKING_SYNC = 4, CU_CTX_MAP_HOST = 8, CU_CTX_LMEM_RESIZE_TO_MAX = 16, CU_CTX_FLAGS_MASK = 0x1f
}
enum  CUevent_flags_enum { CU_EVENT_DEFAULT = 0, CU_EVENT_BLOCKING_SYNC = 1, CU_EVENT_DISABLE_TIMING = 2 }
enum  CUarray_format_enum {
  CU_AD_FORMAT_UNSIGNED_INT8 = 0x01, CU_AD_FORMAT_UNSIGNED_INT16 = 0x02, CU_AD_FORMAT_UNSIGNED_INT32 = 0x03, CU_AD_FORMAT_SIGNED_INT8 = 0x08,
  CU_AD_FORMAT_SIGNED_INT16 = 0x09, CU_AD_FORMAT_SIGNED_INT32 = 0x0a, CU_AD_FORMAT_HALF = 0x10, CU_AD_FORMAT_FLOAT = 0x20
}
enum  CUaddress_mode_enum { CU_TR_ADDRESS_MODE_WRAP = 0, CU_TR_ADDRESS_MODE_CLAMP = 1, CU_TR_ADDRESS_MODE_MIRROR = 2, CU_TR_ADDRESS_MODE_BORDER = 3 }
enum  CUfilter_mode_enum { CU_TR_FILTER_MODE_POINT = 0, CU_TR_FILTER_MODE_LINEAR = 1 }
enum  CUdevice_attribute_enum {
  CU_DEVICE_ATTRIBUTE_MAX_THREADS_PER_BLOCK = 1, CU_DEVICE_ATTRIBUTE_MAX_BLOCK_DIM_X = 2, CU_DEVICE_ATTRIBUTE_MAX_BLOCK_DIM_Y = 3, CU_DEVICE_ATTRIBUTE_MAX_BLOCK_DIM_Z = 4,
  CU_DEVICE_ATTRIBUTE_MAX_GRID_DIM_X = 5, CU_DEVICE_ATTRIBUTE_MAX_GRID_DIM_Y = 6, CU_DEVICE_ATTRIBUTE_MAX_GRID_DIM_Z = 7, CU_DEVICE_ATTRIBUTE_MAX_SHARED_MEMORY_PER_BLOCK = 8,
  CU_DEVICE_ATTRIBUTE_SHARED_MEMORY_PER_BLOCK = 8, CU_DEVICE_ATTRIBUTE_TOTAL_CONSTANT_MEMORY = 9, CU_DEVICE_ATTRIBUTE_WARP_SIZE = 10, CU_DEVICE_ATTRIBUTE_MAX_PITCH = 11,
  CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_BLOCK = 12, CU_DEVICE_ATTRIBUTE_REGISTERS_PER_BLOCK = 12, CU_DEVICE_ATTRIBUTE_CLOCK_RATE = 13, CU_DEVICE_ATTRIBUTE_TEXTURE_ALIGNMENT = 14,
  CU_DEVICE_ATTRIBUTE_GPU_OVERLAP = 15, CU_DEVICE_ATTRIBUTE_MULTIPROCESSOR_COUNT = 16, CU_DEVICE_ATTRIBUTE_KERNEL_EXEC_TIMEOUT = 17, CU_DEVICE_ATTRIBUTE_INTEGRATED = 18,
  CU_DEVICE_ATTRIBUTE_CAN_MAP_HOST_MEMORY = 19, CU_DEVICE_ATTRIBUTE_COMPUTE_MODE = 20, CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE1D_WIDTH = 21, CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_WIDTH = 22,
  CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_HEIGHT = 23, CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE3D_WIDTH = 24, CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE3D_HEIGHT = 25, CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE3D_DEPTH = 26,
  CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_ARRAY_WIDTH = 27, CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_ARRAY_HEIGHT = 28, CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_ARRAY_NUMSLICES = 29, CU_DEVICE_ATTRIBUTE_SURFACE_ALIGNMENT = 30,
  CU_DEVICE_ATTRIBUTE_CONCURRENT_KERNELS = 31, CU_DEVICE_ATTRIBUTE_ECC_ENABLED = 32, CU_DEVICE_ATTRIBUTE_PCI_BUS_ID = 33, CU_DEVICE_ATTRIBUTE_PCI_DEVICE_ID = 34,
  CU_DEVICE_ATTRIBUTE_TCC_DRIVER = 35
}
enum  CUfunction_attribute_enum {
  CU_FUNC_ATTRIBUTE_MAX_THREADS_PER_BLOCK = 0, CU_FUNC_ATTRIBUTE_SHARED_SIZE_BYTES = 1, CU_FUNC_ATTRIBUTE_CONST_SIZE_BYTES = 2, CU_FUNC_ATTRIBUTE_LOCAL_SIZE_BYTES = 3,
  CU_FUNC_ATTRIBUTE_NUM_REGS = 4, CU_FUNC_ATTRIBUTE_PTX_VERSION = 5, CU_FUNC_ATTRIBUTE_BINARY_VERSION = 6, CU_FUNC_ATTRIBUTE_MAX
}
enum  CUfunc_cache_enum { CU_FUNC_CACHE_PREFER_NONE = 0x00, CU_FUNC_CACHE_PREFER_SHARED = 0x01, CU_FUNC_CACHE_PREFER_L1 = 0x02 }
enum  CUmemorytype_enum { CU_MEMORYTYPE_HOST = 0x01, CU_MEMORYTYPE_DEVICE = 0x02, CU_MEMORYTYPE_ARRAY = 0x03 }
enum  CUcomputemode_enum { CU_COMPUTEMODE_DEFAULT = 0, CU_COMPUTEMODE_EXCLUSIVE = 1, CU_COMPUTEMODE_PROHIBITED = 2 }
enum  CUjit_option_enum {
  CU_JIT_MAX_REGISTERS = 0, CU_JIT_THREADS_PER_BLOCK, CU_JIT_WALL_TIME, CU_JIT_INFO_LOG_BUFFER,
  CU_JIT_INFO_LOG_BUFFER_SIZE_BYTES, CU_JIT_ERROR_LOG_BUFFER, CU_JIT_ERROR_LOG_BUFFER_SIZE_BYTES, CU_JIT_OPTIMIZATION_LEVEL,
  CU_JIT_TARGET_FROM_CUCONTEXT, CU_JIT_TARGET, CU_JIT_FALLBACK_STRATEGY
}
enum  CUjit_target_enum {
  CU_TARGET_COMPUTE_10 = 0, CU_TARGET_COMPUTE_11, CU_TARGET_COMPUTE_12, CU_TARGET_COMPUTE_13,
  CU_TARGET_COMPUTE_20, CU_TARGET_COMPUTE_21
}
enum  CUjit_fallback_enum { CU_PREFER_PTX = 0, CU_PREFER_BINARY }
enum  CUgraphicsRegisterFlags_enum { CU_GRAPHICS_REGISTER_FLAGS_NONE = 0x00 }
enum  CUgraphicsMapResourceFlags_enum { CU_GRAPHICS_MAP_RESOURCE_FLAGS_NONE = 0x00, CU_GRAPHICS_MAP_RESOURCE_FLAGS_READ_ONLY = 0x01, CU_GRAPHICS_MAP_RESOURCE_FLAGS_WRITE_DISCARD = 0x02 }
enum  CUarray_cubemap_face_enum {
  CU_CUBEMAP_FACE_POSITIVE_X = 0x00, CU_CUBEMAP_FACE_NEGATIVE_X = 0x01, CU_CUBEMAP_FACE_POSITIVE_Y = 0x02, CU_CUBEMAP_FACE_NEGATIVE_Y = 0x03,
  CU_CUBEMAP_FACE_POSITIVE_Z = 0x04, CU_CUBEMAP_FACE_NEGATIVE_Z = 0x05
}
enum  CUlimit_enum { CU_LIMIT_STACK_SIZE = 0x00, CU_LIMIT_PRINTF_FIFO_SIZE = 0x01, CU_LIMIT_MALLOC_HEAP_SIZE = 0x02 }
enum  cudaError_enum {
  CUDA_SUCCESS = 0, CUDA_ERROR_INVALID_VALUE = 1, CUDA_ERROR_OUT_OF_MEMORY = 2, CUDA_ERROR_NOT_INITIALIZED = 3,
  CUDA_ERROR_DEINITIALIZED = 4, CUDA_ERROR_NO_DEVICE = 100, CUDA_ERROR_INVALID_DEVICE = 101, CUDA_ERROR_INVALID_IMAGE = 200,
  CUDA_ERROR_INVALID_CONTEXT = 201, CUDA_ERROR_CONTEXT_ALREADY_CURRENT = 202, CUDA_ERROR_MAP_FAILED = 205, CUDA_ERROR_UNMAP_FAILED = 206,
  CUDA_ERROR_ARRAY_IS_MAPPED = 207, CUDA_ERROR_ALREADY_MAPPED = 208, CUDA_ERROR_NO_BINARY_FOR_GPU = 209, CUDA_ERROR_ALREADY_ACQUIRED = 210,
  CUDA_ERROR_NOT_MAPPED = 211, CUDA_ERROR_NOT_MAPPED_AS_ARRAY = 212, CUDA_ERROR_NOT_MAPPED_AS_POINTER = 213, CUDA_ERROR_ECC_UNCORRECTABLE = 214,
  CUDA_ERROR_UNSUPPORTED_LIMIT = 215, CUDA_ERROR_INVALID_SOURCE = 300, CUDA_ERROR_FILE_NOT_FOUND = 301, CUDA_ERROR_SHARED_OBJECT_SYMBOL_NOT_FOUND = 302,
  CUDA_ERROR_SHARED_OBJECT_INIT_FAILED = 303, CUDA_ERROR_OPERATING_SYSTEM = 304, CUDA_ERROR_INVALID_HANDLE = 400, CUDA_ERROR_NOT_FOUND = 500,
  CUDA_ERROR_NOT_READY = 600, CUDA_ERROR_LAUNCH_FAILED = 700, CUDA_ERROR_LAUNCH_OUT_OF_RESOURCES = 701, CUDA_ERROR_LAUNCH_TIMEOUT = 702,
  CUDA_ERROR_LAUNCH_INCOMPATIBLE_TEXTURING = 703, CUDA_ERROR_UNKNOWN = 999
}

Functions

CCL_NAMESPACE_BEGIN bool cuLibraryInit ()
string cuCompilerPath ()

Variables

tcuInitcuInit
tcuDriverGetVersioncuDriverGetVersion
tcuDeviceGetcuDeviceGet
tcuDeviceGetCountcuDeviceGetCount
tcuDeviceGetNamecuDeviceGetName
tcuDeviceComputeCapabilitycuDeviceComputeCapability
tcuDeviceTotalMemcuDeviceTotalMem
tcuDeviceGetPropertiescuDeviceGetProperties
tcuDeviceGetAttributecuDeviceGetAttribute
tcuCtxCreatecuCtxCreate
tcuCtxDestroycuCtxDestroy
tcuCtxAttachcuCtxAttach
tcuCtxDetachcuCtxDetach
tcuCtxPushCurrentcuCtxPushCurrent
tcuCtxPopCurrentcuCtxPopCurrent
tcuCtxGetDevicecuCtxGetDevice
tcuCtxSynchronizecuCtxSynchronize
tcuModuleLoadcuModuleLoad
tcuModuleLoadDatacuModuleLoadData
tcuModuleLoadDataExcuModuleLoadDataEx
tcuModuleLoadFatBinarycuModuleLoadFatBinary
tcuModuleUnloadcuModuleUnload
tcuModuleGetFunctioncuModuleGetFunction
tcuModuleGetGlobalcuModuleGetGlobal
tcuModuleGetTexRefcuModuleGetTexRef
tcuModuleGetSurfRefcuModuleGetSurfRef
tcuMemGetInfocuMemGetInfo
tcuMemAlloccuMemAlloc
tcuMemAllocPitchcuMemAllocPitch
tcuMemFreecuMemFree
tcuMemGetAddressRangecuMemGetAddressRange
tcuMemAllocHostcuMemAllocHost
tcuMemFreeHostcuMemFreeHost
tcuMemHostAlloccuMemHostAlloc
tcuMemHostGetDevicePointercuMemHostGetDevicePointer
tcuMemHostGetFlagscuMemHostGetFlags
tcuMemcpyHtoDcuMemcpyHtoD
tcuMemcpyDtoHcuMemcpyDtoH
tcuMemcpyDtoDcuMemcpyDtoD
tcuMemcpyDtoAcuMemcpyDtoA
tcuMemcpyAtoDcuMemcpyAtoD
tcuMemcpyHtoAcuMemcpyHtoA
tcuMemcpyAtoHcuMemcpyAtoH
tcuMemcpyAtoAcuMemcpyAtoA
tcuMemcpy2DcuMemcpy2D
tcuMemcpy2DUnalignedcuMemcpy2DUnaligned
tcuMemcpy3DcuMemcpy3D
tcuMemcpyHtoDAsynccuMemcpyHtoDAsync
tcuMemcpyDtoHAsynccuMemcpyDtoHAsync
tcuMemcpyDtoDAsynccuMemcpyDtoDAsync
tcuMemcpyHtoAAsynccuMemcpyHtoAAsync
tcuMemcpyAtoHAsynccuMemcpyAtoHAsync
tcuMemcpy2DAsynccuMemcpy2DAsync
tcuMemcpy3DAsynccuMemcpy3DAsync
tcuMemsetD8cuMemsetD8
tcuMemsetD16cuMemsetD16
tcuMemsetD32cuMemsetD32
tcuMemsetD2D8cuMemsetD2D8
tcuMemsetD2D16cuMemsetD2D16
tcuMemsetD2D32cuMemsetD2D32
tcuFuncSetBlockShapecuFuncSetBlockShape
tcuFuncSetSharedSizecuFuncSetSharedSize
tcuFuncGetAttributecuFuncGetAttribute
tcuFuncSetCacheConfigcuFuncSetCacheConfig
tcuArrayCreatecuArrayCreate
tcuArrayGetDescriptorcuArrayGetDescriptor
tcuArrayDestroycuArrayDestroy
tcuArray3DCreatecuArray3DCreate
tcuArray3DGetDescriptorcuArray3DGetDescriptor
tcuTexRefCreatecuTexRefCreate
tcuTexRefDestroycuTexRefDestroy
tcuTexRefSetArraycuTexRefSetArray
tcuTexRefSetAddresscuTexRefSetAddress
tcuTexRefSetAddress2DcuTexRefSetAddress2D
tcuTexRefSetFormatcuTexRefSetFormat
tcuTexRefSetAddressModecuTexRefSetAddressMode
tcuTexRefSetFilterModecuTexRefSetFilterMode
tcuTexRefSetFlagscuTexRefSetFlags
tcuTexRefGetAddresscuTexRefGetAddress
tcuTexRefGetArraycuTexRefGetArray
tcuTexRefGetAddressModecuTexRefGetAddressMode
tcuTexRefGetFilterModecuTexRefGetFilterMode
tcuTexRefGetFormatcuTexRefGetFormat
tcuTexRefGetFlagscuTexRefGetFlags
tcuSurfRefSetArraycuSurfRefSetArray
tcuSurfRefGetArraycuSurfRefGetArray
tcuParamSetSizecuParamSetSize
tcuParamSeticuParamSeti
tcuParamSetfcuParamSetf
tcuParamSetvcuParamSetv
tcuParamSetTexRefcuParamSetTexRef
tcuLaunchcuLaunch
tcuLaunchGridcuLaunchGrid
tcuLaunchGridAsynccuLaunchGridAsync
tcuEventCreatecuEventCreate
tcuEventRecordcuEventRecord
tcuEventQuerycuEventQuery
tcuEventSynchronizecuEventSynchronize
tcuEventDestroycuEventDestroy
tcuEventElapsedTimecuEventElapsedTime
tcuStreamCreatecuStreamCreate
tcuStreamQuerycuStreamQuery
tcuStreamSynchronizecuStreamSynchronize
tcuStreamDestroycuStreamDestroy
tcuGraphicsUnregisterResourcecuGraphicsUnregisterResource
tcuGraphicsSubResourceGetMappedArraycuGraphicsSubResourceGetMappedArray
tcuGraphicsResourceGetMappedPointercuGraphicsResourceGetMappedPointer
tcuGraphicsResourceSetMapFlagscuGraphicsResourceSetMapFlags
tcuGraphicsMapResourcescuGraphicsMapResources
tcuGraphicsUnmapResourcescuGraphicsUnmapResources
tcuGetExportTablecuGetExportTable
tcuCtxSetLimitcuCtxSetLimit
tcuCtxGetLimitcuCtxGetLimit
tcuGLCtxCreatecuGLCtxCreate
tcuGraphicsGLRegisterBuffercuGraphicsGLRegisterBuffer
tcuGraphicsGLRegisterImagecuGraphicsGLRegisterImage
tcuCtxSetCurrentcuCtxSetCurrent

Define Documentation

#define CU_MEMHOSTALLOC_DEVICEMAP   0x02

Definition at line 280 of file util_cuda.h.

#define CU_MEMHOSTALLOC_PORTABLE   0x01

Definition at line 279 of file util_cuda.h.

#define CU_MEMHOSTALLOC_WRITECOMBINED   0x04

Definition at line 281 of file util_cuda.h.

#define CU_PARAM_TR_DEFAULT   -1

Definition at line 362 of file util_cuda.h.

#define CU_TRSA_OVERRIDE_FORMAT   0x01

Definition at line 358 of file util_cuda.h.

Referenced by CUDADevice::tex_alloc().

#define CU_TRSF_NORMALIZED_COORDINATES   0x02

Definition at line 360 of file util_cuda.h.

Referenced by CUDADevice::tex_alloc().

#define CU_TRSF_READ_AS_INTEGER   0x01

Definition at line 359 of file util_cuda.h.

Referenced by CUDADevice::tex_alloc().

#define CU_TRSF_SRGB   0x10

Definition at line 361 of file util_cuda.h.

#define CUDA_ARRAY3D_2DARRAY   0x01

Definition at line 356 of file util_cuda.h.

#define CUDA_ARRAY3D_SURFACE_LDST   0x02

Definition at line 357 of file util_cuda.h.

#define CUDA_VERSION   3020

Definition at line 39 of file util_cuda.h.

#define CUDAAPI

Definition at line 367 of file util_cuda.h.


Typedef Documentation

typedef struct CUarray_st* CUarray

Definition at line 51 of file util_cuda.h.

typedef struct CUctx_st* CUcontext

Definition at line 48 of file util_cuda.h.

typedef int CUdevice

Definition at line 47 of file util_cuda.h.

typedef unsigned int CUdeviceptr

Definition at line 44 of file util_cuda.h.

typedef struct CUdevprop_st CUdevprop
typedef struct CUevent_st* CUevent

Definition at line 54 of file util_cuda.h.

typedef struct CUfunc_st* CUfunction

Definition at line 50 of file util_cuda.h.

typedef struct CUgraphicsResource_st* CUgraphicsResource

Definition at line 56 of file util_cuda.h.

typedef enum CUlimit_enum CUlimit
typedef struct CUmod_st* CUmodule

Definition at line 49 of file util_cuda.h.

typedef enum cudaError_enum CUresult
typedef struct CUstream_st* CUstream

Definition at line 55 of file util_cuda.h.

typedef struct CUsurfref_st* CUsurfref

Definition at line 53 of file util_cuda.h.

typedef struct CUtexref_st* CUtexref

Definition at line 52 of file util_cuda.h.

typedef struct CUuuid_st CUuuid
typedef CUresult CUDAAPI tcuArray3DCreate(CUarray *pHandle, const CUDA_ARRAY3D_DESCRIPTOR *pAllocateArray)

Definition at line 446 of file util_cuda.h.

typedef CUresult CUDAAPI tcuArray3DGetDescriptor(CUDA_ARRAY3D_DESCRIPTOR *pArrayDescriptor, CUarray hArray)

Definition at line 447 of file util_cuda.h.

typedef CUresult CUDAAPI tcuArrayCreate(CUarray *pHandle, const CUDA_ARRAY_DESCRIPTOR *pAllocateArray)

Definition at line 443 of file util_cuda.h.

typedef CUresult CUDAAPI tcuArrayDestroy(CUarray hArray)

Definition at line 445 of file util_cuda.h.

typedef CUresult CUDAAPI tcuArrayGetDescriptor(CUDA_ARRAY_DESCRIPTOR *pArrayDescriptor, CUarray hArray)

Definition at line 444 of file util_cuda.h.

typedef CUresult CUDAAPI tcuCtxAttach(CUcontext *pctx, unsigned int flags)

Definition at line 383 of file util_cuda.h.

typedef CUresult CUDAAPI tcuCtxCreate(CUcontext *pctx, unsigned int flags, CUdevice dev)

Definition at line 381 of file util_cuda.h.

typedef CUresult CUDAAPI tcuCtxDestroy(CUcontext ctx)

Definition at line 382 of file util_cuda.h.

typedef CUresult CUDAAPI tcuCtxDetach(CUcontext ctx)

Definition at line 384 of file util_cuda.h.

typedef CUresult CUDAAPI tcuCtxGetApiVersion(CUcontext ctx, unsigned int *version)

Definition at line 393 of file util_cuda.h.

typedef CUresult CUDAAPI tcuCtxGetCacheConfig(CUfunc_cache *pconfig)

Definition at line 391 of file util_cuda.h.

typedef CUresult CUDAAPI tcuCtxGetDevice(CUdevice *device)

Definition at line 387 of file util_cuda.h.

typedef CUresult CUDAAPI tcuCtxGetLimit(size_t *pvalue, CUlimit limit)

Definition at line 390 of file util_cuda.h.

typedef CUresult CUDAAPI tcuCtxPopCurrent(CUcontext *pctx)

Definition at line 386 of file util_cuda.h.

typedef CUresult CUDAAPI tcuCtxPushCurrent(CUcontext ctx)

Definition at line 385 of file util_cuda.h.

typedef CUresult CUDAAPI tcuCtxSetCacheConfig(CUfunc_cache config)

Definition at line 392 of file util_cuda.h.

typedef CUresult CUDAAPI tcuCtxSetCurrent(CUcontext ctx)

Definition at line 498 of file util_cuda.h.

typedef CUresult CUDAAPI tcuCtxSetLimit(CUlimit limit, size_t value)

Definition at line 389 of file util_cuda.h.

typedef CUresult CUDAAPI tcuCtxSynchronize(void)

Definition at line 388 of file util_cuda.h.

typedef CUresult CUDAAPI tcuDeviceComputeCapability(int *major, int *minor, CUdevice dev)

Definition at line 377 of file util_cuda.h.

typedef CUresult CUDAAPI tcuDeviceGet(CUdevice *device, int ordinal)

Definition at line 374 of file util_cuda.h.

typedef CUresult CUDAAPI tcuDeviceGetAttribute(int *pi, CUdevice_attribute attrib, CUdevice dev)

Definition at line 380 of file util_cuda.h.

typedef CUresult CUDAAPI tcuDeviceGetCount(int *count)

Definition at line 375 of file util_cuda.h.

typedef CUresult CUDAAPI tcuDeviceGetName(char *name, int len, CUdevice dev)

Definition at line 376 of file util_cuda.h.

typedef CUresult CUDAAPI tcuDeviceGetProperties(CUdevprop *prop, CUdevice dev)

Definition at line 379 of file util_cuda.h.

typedef CUresult CUDAAPI tcuDeviceTotalMem(size_t *bytes, CUdevice dev)

Definition at line 378 of file util_cuda.h.

typedef CUresult CUDAAPI tcuDriverGetVersion(int *driverVersion)

Definition at line 373 of file util_cuda.h.

typedef CUresult CUDAAPI tcuEventCreate(CUevent *phEvent, unsigned int Flags)

Definition at line 453 of file util_cuda.h.

typedef CUresult CUDAAPI tcuEventDestroy(CUevent hEvent)

Definition at line 457 of file util_cuda.h.

typedef CUresult CUDAAPI tcuEventElapsedTime(float *pMilliseconds, CUevent hStart, CUevent hEnd)

Definition at line 458 of file util_cuda.h.

typedef CUresult CUDAAPI tcuEventQuery(CUevent hEvent)

Definition at line 455 of file util_cuda.h.

typedef CUresult CUDAAPI tcuEventRecord(CUevent hEvent, CUstream hStream)

Definition at line 454 of file util_cuda.h.

typedef CUresult CUDAAPI tcuEventSynchronize(CUevent hEvent)

Definition at line 456 of file util_cuda.h.

typedef CUresult CUDAAPI tcuFuncGetAttribute(int *pi, CUfunction_attribute attrib, CUfunction hfunc)

Definition at line 461 of file util_cuda.h.

typedef CUresult CUDAAPI tcuFuncSetBlockShape(CUfunction hfunc, int x, int y, int z)

Definition at line 459 of file util_cuda.h.

typedef CUresult CUDAAPI tcuFuncSetCacheConfig(CUfunction hfunc, CUfunc_cache config)

Definition at line 462 of file util_cuda.h.

typedef CUresult CUDAAPI tcuFuncSetSharedSize(CUfunction hfunc, unsigned int bytes)

Definition at line 460 of file util_cuda.h.

typedef CUresult CUDAAPI tcuGetExportTable(const void **ppExportTable, const CUuuid *pExportTableId)

Definition at line 494 of file util_cuda.h.

typedef CUresult CUDAAPI tcuGLCtxCreate(CUcontext *pCtx, unsigned int Flags, CUdevice device)

Definition at line 495 of file util_cuda.h.

typedef CUresult CUDAAPI tcuGraphicsGLRegisterBuffer(CUgraphicsResource *pCudaResource, GLuint buffer, unsigned int Flags)

Definition at line 496 of file util_cuda.h.

typedef CUresult CUDAAPI tcuGraphicsGLRegisterImage(CUgraphicsResource *pCudaResource, GLuint image, GLenum target, unsigned int Flags)

Definition at line 497 of file util_cuda.h.

typedef CUresult CUDAAPI tcuGraphicsMapResources(unsigned int count, CUgraphicsResource *resources, CUstream hStream)

Definition at line 492 of file util_cuda.h.

typedef CUresult CUDAAPI tcuGraphicsResourceGetMappedPointer(CUdeviceptr *pDevPtr, size_t *pSize, CUgraphicsResource resource)

Definition at line 490 of file util_cuda.h.

typedef CUresult CUDAAPI tcuGraphicsResourceSetMapFlags(CUgraphicsResource resource, unsigned int flags)

Definition at line 491 of file util_cuda.h.

typedef CUresult CUDAAPI tcuGraphicsSubResourceGetMappedArray(CUarray *pArray, CUgraphicsResource resource, unsigned int arrayIndex, unsigned int mipLevel)

Definition at line 489 of file util_cuda.h.

typedef CUresult CUDAAPI tcuGraphicsUnmapResources(unsigned int count, CUgraphicsResource *resources, CUstream hStream)

Definition at line 493 of file util_cuda.h.

Definition at line 488 of file util_cuda.h.

typedef CUresult CUDAAPI tcuInit(unsigned int Flags)

Definition at line 372 of file util_cuda.h.

typedef CUresult CUDAAPI tcuLaunch(CUfunction f)

Definition at line 467 of file util_cuda.h.

typedef CUresult CUDAAPI tcuLaunchGrid(CUfunction f, int grid_width, int grid_height)

Definition at line 468 of file util_cuda.h.

typedef CUresult CUDAAPI tcuLaunchGridAsync(CUfunction f, int grid_width, int grid_height, CUstream hStream)

Definition at line 469 of file util_cuda.h.

typedef CUresult CUDAAPI tcuMemAlloc(CUdeviceptr *dptr, size_t bytesize)

Definition at line 404 of file util_cuda.h.

typedef CUresult CUDAAPI tcuMemAllocHost(void **pp, size_t bytesize)

Definition at line 408 of file util_cuda.h.

typedef CUresult CUDAAPI tcuMemAllocPitch(CUdeviceptr *dptr, size_t *pPitch, size_t WidthInBytes, size_t Height, unsigned int ElementSizeBytes)

Definition at line 405 of file util_cuda.h.

typedef CUresult CUDAAPI tcuMemcpy2D(const CUDA_MEMCPY2D *pCopy)

Definition at line 421 of file util_cuda.h.

typedef CUresult CUDAAPI tcuMemcpy2DAsync(const CUDA_MEMCPY2D *pCopy, CUstream hStream)

Definition at line 429 of file util_cuda.h.

typedef CUresult CUDAAPI tcuMemcpy2DUnaligned(const CUDA_MEMCPY2D *pCopy)

Definition at line 422 of file util_cuda.h.

typedef CUresult CUDAAPI tcuMemcpy3D(const CUDA_MEMCPY3D *pCopy)

Definition at line 423 of file util_cuda.h.

typedef CUresult CUDAAPI tcuMemcpy3DAsync(const CUDA_MEMCPY3D *pCopy, CUstream hStream)

Definition at line 430 of file util_cuda.h.

typedef CUresult CUDAAPI tcuMemcpyAtoA(CUarray dstArray, size_t dstOffset, CUarray srcArray, size_t srcOffset, size_t ByteCount)

Definition at line 420 of file util_cuda.h.

typedef CUresult CUDAAPI tcuMemcpyAtoD(CUdeviceptr dstDevice, CUarray srcArray, size_t srcOffset, size_t ByteCount)

Definition at line 417 of file util_cuda.h.

typedef CUresult CUDAAPI tcuMemcpyAtoH(void *dstHost, CUarray srcArray, size_t srcOffset, size_t ByteCount)

Definition at line 419 of file util_cuda.h.

typedef CUresult CUDAAPI tcuMemcpyAtoHAsync(void *dstHost, CUarray srcArray, size_t srcOffset, size_t ByteCount, CUstream hStream)

Definition at line 428 of file util_cuda.h.

typedef CUresult CUDAAPI tcuMemcpyDtoA(CUarray dstArray, size_t dstOffset, CUdeviceptr srcDevice, size_t ByteCount)

Definition at line 416 of file util_cuda.h.

typedef CUresult CUDAAPI tcuMemcpyDtoD(CUdeviceptr dstDevice, CUdeviceptr srcDevice, size_t ByteCount)

Definition at line 415 of file util_cuda.h.

typedef CUresult CUDAAPI tcuMemcpyDtoDAsync(CUdeviceptr dstDevice, CUdeviceptr srcDevice, size_t ByteCount, CUstream hStream)

Definition at line 426 of file util_cuda.h.

typedef CUresult CUDAAPI tcuMemcpyDtoH(void *dstHost, CUdeviceptr srcDevice, size_t ByteCount)

Definition at line 414 of file util_cuda.h.

typedef CUresult CUDAAPI tcuMemcpyDtoHAsync(void *dstHost, CUdeviceptr srcDevice, size_t ByteCount, CUstream hStream)

Definition at line 425 of file util_cuda.h.

typedef CUresult CUDAAPI tcuMemcpyHtoA(CUarray dstArray, size_t dstOffset, const void *srcHost, size_t ByteCount)

Definition at line 418 of file util_cuda.h.

typedef CUresult CUDAAPI tcuMemcpyHtoAAsync(CUarray dstArray, size_t dstOffset, const void *srcHost, size_t ByteCount, CUstream hStream)

Definition at line 427 of file util_cuda.h.

typedef CUresult CUDAAPI tcuMemcpyHtoD(CUdeviceptr dstDevice, const void *srcHost, size_t ByteCount)

Definition at line 413 of file util_cuda.h.

typedef CUresult CUDAAPI tcuMemcpyHtoDAsync(CUdeviceptr dstDevice, const void *srcHost, size_t ByteCount, CUstream hStream)

Definition at line 424 of file util_cuda.h.

typedef CUresult CUDAAPI tcuMemFree(CUdeviceptr dptr)

Definition at line 406 of file util_cuda.h.

typedef CUresult CUDAAPI tcuMemFreeHost(void *p)

Definition at line 409 of file util_cuda.h.

typedef CUresult CUDAAPI tcuMemGetAddressRange(CUdeviceptr *pbase, size_t *psize, CUdeviceptr dptr)

Definition at line 407 of file util_cuda.h.

typedef CUresult CUDAAPI tcuMemGetInfo(size_t *free, size_t *total)

Definition at line 403 of file util_cuda.h.

typedef CUresult CUDAAPI tcuMemHostAlloc(void **pp, size_t bytesize, unsigned int Flags)

Definition at line 410 of file util_cuda.h.

typedef CUresult CUDAAPI tcuMemHostGetDevicePointer(CUdeviceptr *pdptr, void *p, unsigned int Flags)

Definition at line 411 of file util_cuda.h.

typedef CUresult CUDAAPI tcuMemHostGetFlags(unsigned int *pFlags, void *p)

Definition at line 412 of file util_cuda.h.

typedef CUresult CUDAAPI tcuMemsetD16(CUdeviceptr dstDevice, unsigned short us, size_t N)

Definition at line 432 of file util_cuda.h.

typedef CUresult CUDAAPI tcuMemsetD16Async(CUdeviceptr dstDevice, unsigned short us, size_t N, CUstream hStream)

Definition at line 438 of file util_cuda.h.

typedef CUresult CUDAAPI tcuMemsetD2D16(CUdeviceptr dstDevice, size_t dstPitch, unsigned short us, size_t Width, size_t Height)

Definition at line 435 of file util_cuda.h.

typedef CUresult CUDAAPI tcuMemsetD2D16Async(CUdeviceptr dstDevice, size_t dstPitch, unsigned short us, size_t Width, size_t Height, CUstream hStream)

Definition at line 441 of file util_cuda.h.

typedef CUresult CUDAAPI tcuMemsetD2D32(CUdeviceptr dstDevice, size_t dstPitch, unsigned int ui, size_t Width, size_t Height)

Definition at line 436 of file util_cuda.h.

typedef CUresult CUDAAPI tcuMemsetD2D32Async(CUdeviceptr dstDevice, size_t dstPitch, unsigned int ui, size_t Width, size_t Height, CUstream hStream)

Definition at line 442 of file util_cuda.h.

typedef CUresult CUDAAPI tcuMemsetD2D8(CUdeviceptr dstDevice, size_t dstPitch, unsigned char uc, size_t Width, size_t Height)

Definition at line 434 of file util_cuda.h.

typedef CUresult CUDAAPI tcuMemsetD2D8Async(CUdeviceptr dstDevice, size_t dstPitch, unsigned char uc, size_t Width, size_t Height, CUstream hStream)

Definition at line 440 of file util_cuda.h.

typedef CUresult CUDAAPI tcuMemsetD32(CUdeviceptr dstDevice, unsigned int ui, size_t N)

Definition at line 433 of file util_cuda.h.

typedef CUresult CUDAAPI tcuMemsetD32Async(CUdeviceptr dstDevice, unsigned int ui, size_t N, CUstream hStream)

Definition at line 439 of file util_cuda.h.

typedef CUresult CUDAAPI tcuMemsetD8(CUdeviceptr dstDevice, unsigned char uc, size_t N)

Definition at line 431 of file util_cuda.h.

typedef CUresult CUDAAPI tcuMemsetD8Async(CUdeviceptr dstDevice, unsigned char uc, size_t N, CUstream hStream)

Definition at line 437 of file util_cuda.h.

typedef CUresult CUDAAPI tcuModuleGetFunction(CUfunction *hfunc, CUmodule hmod, const char *name)

Definition at line 399 of file util_cuda.h.

typedef CUresult CUDAAPI tcuModuleGetGlobal(CUdeviceptr *dptr, size_t *bytes, CUmodule hmod, const char *name)

Definition at line 400 of file util_cuda.h.

typedef CUresult CUDAAPI tcuModuleGetSurfRef(CUsurfref *pSurfRef, CUmodule hmod, const char *name)

Definition at line 402 of file util_cuda.h.

typedef CUresult CUDAAPI tcuModuleGetTexRef(CUtexref *pTexRef, CUmodule hmod, const char *name)

Definition at line 401 of file util_cuda.h.

typedef CUresult CUDAAPI tcuModuleLoad(CUmodule *module, const char *fname)

Definition at line 394 of file util_cuda.h.

typedef CUresult CUDAAPI tcuModuleLoadData(CUmodule *module, const void *image)

Definition at line 395 of file util_cuda.h.

typedef CUresult CUDAAPI tcuModuleLoadDataEx(CUmodule *module, const void *image, unsigned int numOptions, CUjit_option *options, void **optionValues)

Definition at line 396 of file util_cuda.h.

typedef CUresult CUDAAPI tcuModuleLoadFatBinary(CUmodule *module, const void *fatCubin)

Definition at line 397 of file util_cuda.h.

typedef CUresult CUDAAPI tcuModuleUnload(CUmodule hmod)

Definition at line 398 of file util_cuda.h.

typedef CUresult CUDAAPI tcuParamSetf(CUfunction hfunc, int offset, float value)

Definition at line 465 of file util_cuda.h.

typedef CUresult CUDAAPI tcuParamSeti(CUfunction hfunc, int offset, unsigned int value)

Definition at line 464 of file util_cuda.h.

typedef CUresult CUDAAPI tcuParamSetSize(CUfunction hfunc, unsigned int numbytes)

Definition at line 463 of file util_cuda.h.

typedef CUresult CUDAAPI tcuParamSetTexRef(CUfunction hfunc, int texunit, CUtexref hTexRef)

Definition at line 470 of file util_cuda.h.

typedef CUresult CUDAAPI tcuParamSetv(CUfunction hfunc, int offset, void *ptr, unsigned int numbytes)

Definition at line 466 of file util_cuda.h.

typedef CUresult CUDAAPI tcuStreamCreate(CUstream *phStream, unsigned int Flags)

Definition at line 448 of file util_cuda.h.

typedef CUresult CUDAAPI tcuStreamDestroy(CUstream hStream)

Definition at line 452 of file util_cuda.h.

typedef CUresult CUDAAPI tcuStreamQuery(CUstream hStream)

Definition at line 450 of file util_cuda.h.

typedef CUresult CUDAAPI tcuStreamSynchronize(CUstream hStream)

Definition at line 451 of file util_cuda.h.

typedef CUresult CUDAAPI tcuStreamWaitEvent(CUstream hStream, CUevent hEvent, unsigned int Flags)

Definition at line 449 of file util_cuda.h.

typedef CUresult CUDAAPI tcuSurfRefGetArray(CUarray *phArray, CUsurfref hSurfRef)

Definition at line 487 of file util_cuda.h.

typedef CUresult CUDAAPI tcuSurfRefSetArray(CUsurfref hSurfRef, CUarray hArray, unsigned int Flags)

Definition at line 486 of file util_cuda.h.

typedef CUresult CUDAAPI tcuTexRefCreate(CUtexref *pTexRef)

Definition at line 484 of file util_cuda.h.

typedef CUresult CUDAAPI tcuTexRefDestroy(CUtexref hTexRef)

Definition at line 485 of file util_cuda.h.

typedef CUresult CUDAAPI tcuTexRefGetAddress(CUdeviceptr *pdptr, CUtexref hTexRef)

Definition at line 478 of file util_cuda.h.

typedef CUresult CUDAAPI tcuTexRefGetAddressMode(CUaddress_mode *pam, CUtexref hTexRef, int dim)

Definition at line 480 of file util_cuda.h.

typedef CUresult CUDAAPI tcuTexRefGetArray(CUarray *phArray, CUtexref hTexRef)

Definition at line 479 of file util_cuda.h.

typedef CUresult CUDAAPI tcuTexRefGetFilterMode(CUfilter_mode *pfm, CUtexref hTexRef)

Definition at line 481 of file util_cuda.h.

typedef CUresult CUDAAPI tcuTexRefGetFlags(unsigned int *pFlags, CUtexref hTexRef)

Definition at line 483 of file util_cuda.h.

typedef CUresult CUDAAPI tcuTexRefGetFormat(CUarray_format *pFormat, int *pNumChannels, CUtexref hTexRef)

Definition at line 482 of file util_cuda.h.

typedef CUresult CUDAAPI tcuTexRefSetAddress(size_t *ByteOffset, CUtexref hTexRef, CUdeviceptr dptr, size_t bytes)

Definition at line 472 of file util_cuda.h.

typedef CUresult CUDAAPI tcuTexRefSetAddress2D(CUtexref hTexRef, const CUDA_ARRAY_DESCRIPTOR *desc, CUdeviceptr dptr, size_t Pitch)

Definition at line 473 of file util_cuda.h.

typedef CUresult CUDAAPI tcuTexRefSetAddressMode(CUtexref hTexRef, int dim, CUaddress_mode am)

Definition at line 475 of file util_cuda.h.

typedef CUresult CUDAAPI tcuTexRefSetArray(CUtexref hTexRef, CUarray hArray, unsigned int Flags)

Definition at line 471 of file util_cuda.h.

typedef CUresult CUDAAPI tcuTexRefSetFilterMode(CUtexref hTexRef, CUfilter_mode fm)

Definition at line 476 of file util_cuda.h.

typedef CUresult CUDAAPI tcuTexRefSetFlags(CUtexref hTexRef, unsigned int Flags)

Definition at line 477 of file util_cuda.h.

typedef CUresult CUDAAPI tcuTexRefSetFormat(CUtexref hTexRef, CUarray_format fmt, int NumPackedComponents)

Definition at line 474 of file util_cuda.h.


Enumeration Type Documentation

Enumerator:
CU_TR_ADDRESS_MODE_WRAP 
CU_TR_ADDRESS_MODE_CLAMP 
CU_TR_ADDRESS_MODE_MIRROR 
CU_TR_ADDRESS_MODE_BORDER 

Definition at line 90 of file util_cuda.h.

Enumerator:
CU_CUBEMAP_FACE_POSITIVE_X 
CU_CUBEMAP_FACE_NEGATIVE_X 
CU_CUBEMAP_FACE_POSITIVE_Y 
CU_CUBEMAP_FACE_NEGATIVE_Y 
CU_CUBEMAP_FACE_POSITIVE_Z 
CU_CUBEMAP_FACE_NEGATIVE_Z 

Definition at line 227 of file util_cuda.h.

Enumerator:
CU_AD_FORMAT_UNSIGNED_INT8 
CU_AD_FORMAT_UNSIGNED_INT16 
CU_AD_FORMAT_UNSIGNED_INT32 
CU_AD_FORMAT_SIGNED_INT8 
CU_AD_FORMAT_SIGNED_INT16 
CU_AD_FORMAT_SIGNED_INT32 
CU_AD_FORMAT_HALF 
CU_AD_FORMAT_FLOAT 

Definition at line 79 of file util_cuda.h.

Enumerator:
CU_COMPUTEMODE_DEFAULT 
CU_COMPUTEMODE_EXCLUSIVE 
CU_COMPUTEMODE_PROHIBITED 

Definition at line 178 of file util_cuda.h.

Enumerator:
CU_CTX_SCHED_AUTO 
CU_CTX_SCHED_SPIN 
CU_CTX_SCHED_YIELD 
CU_CTX_SCHED_MASK 
CU_CTX_BLOCKING_SYNC 
CU_CTX_MAP_HOST 
CU_CTX_LMEM_RESIZE_TO_MAX 
CU_CTX_FLAGS_MASK 

Definition at line 62 of file util_cuda.h.

Enumerator:
CUDA_SUCCESS 
CUDA_ERROR_INVALID_VALUE 
CUDA_ERROR_OUT_OF_MEMORY 
CUDA_ERROR_NOT_INITIALIZED 
CUDA_ERROR_DEINITIALIZED 
CUDA_ERROR_NO_DEVICE 
CUDA_ERROR_INVALID_DEVICE 
CUDA_ERROR_INVALID_IMAGE 
CUDA_ERROR_INVALID_CONTEXT 
CUDA_ERROR_CONTEXT_ALREADY_CURRENT 
CUDA_ERROR_MAP_FAILED 
CUDA_ERROR_UNMAP_FAILED 
CUDA_ERROR_ARRAY_IS_MAPPED 
CUDA_ERROR_ALREADY_MAPPED 
CUDA_ERROR_NO_BINARY_FOR_GPU 
CUDA_ERROR_ALREADY_ACQUIRED 
CUDA_ERROR_NOT_MAPPED 
CUDA_ERROR_NOT_MAPPED_AS_ARRAY 
CUDA_ERROR_NOT_MAPPED_AS_POINTER 
CUDA_ERROR_ECC_UNCORRECTABLE 
CUDA_ERROR_UNSUPPORTED_LIMIT 
CUDA_ERROR_INVALID_SOURCE 
CUDA_ERROR_FILE_NOT_FOUND 
CUDA_ERROR_SHARED_OBJECT_SYMBOL_NOT_FOUND 
CUDA_ERROR_SHARED_OBJECT_INIT_FAILED 
CUDA_ERROR_OPERATING_SYSTEM 
CUDA_ERROR_INVALID_HANDLE 
CUDA_ERROR_NOT_FOUND 
CUDA_ERROR_NOT_READY 
CUDA_ERROR_LAUNCH_FAILED 
CUDA_ERROR_LAUNCH_OUT_OF_RESOURCES 
CUDA_ERROR_LAUNCH_TIMEOUT 
CUDA_ERROR_LAUNCH_INCOMPATIBLE_TEXTURING 
CUDA_ERROR_UNKNOWN 

Definition at line 242 of file util_cuda.h.

Enumerator:
CU_DEVICE_ATTRIBUTE_MAX_THREADS_PER_BLOCK 
CU_DEVICE_ATTRIBUTE_MAX_BLOCK_DIM_X 
CU_DEVICE_ATTRIBUTE_MAX_BLOCK_DIM_Y 
CU_DEVICE_ATTRIBUTE_MAX_BLOCK_DIM_Z 
CU_DEVICE_ATTRIBUTE_MAX_GRID_DIM_X 
CU_DEVICE_ATTRIBUTE_MAX_GRID_DIM_Y 
CU_DEVICE_ATTRIBUTE_MAX_GRID_DIM_Z 
CU_DEVICE_ATTRIBUTE_MAX_SHARED_MEMORY_PER_BLOCK 
CU_DEVICE_ATTRIBUTE_SHARED_MEMORY_PER_BLOCK 
CU_DEVICE_ATTRIBUTE_TOTAL_CONSTANT_MEMORY 
CU_DEVICE_ATTRIBUTE_WARP_SIZE 
CU_DEVICE_ATTRIBUTE_MAX_PITCH 
CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_BLOCK 
CU_DEVICE_ATTRIBUTE_REGISTERS_PER_BLOCK 
CU_DEVICE_ATTRIBUTE_CLOCK_RATE 
CU_DEVICE_ATTRIBUTE_TEXTURE_ALIGNMENT 
CU_DEVICE_ATTRIBUTE_GPU_OVERLAP 
CU_DEVICE_ATTRIBUTE_MULTIPROCESSOR_COUNT 
CU_DEVICE_ATTRIBUTE_KERNEL_EXEC_TIMEOUT 
CU_DEVICE_ATTRIBUTE_INTEGRATED 
CU_DEVICE_ATTRIBUTE_CAN_MAP_HOST_MEMORY 
CU_DEVICE_ATTRIBUTE_COMPUTE_MODE 
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE1D_WIDTH 
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_WIDTH 
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_HEIGHT 
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE3D_WIDTH 
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE3D_HEIGHT 
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE3D_DEPTH 
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_ARRAY_WIDTH 
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_ARRAY_HEIGHT 
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_ARRAY_NUMSLICES 
CU_DEVICE_ATTRIBUTE_SURFACE_ALIGNMENT 
CU_DEVICE_ATTRIBUTE_CONCURRENT_KERNELS 
CU_DEVICE_ATTRIBUTE_ECC_ENABLED 
CU_DEVICE_ATTRIBUTE_PCI_BUS_ID 
CU_DEVICE_ATTRIBUTE_PCI_DEVICE_ID 
CU_DEVICE_ATTRIBUTE_TCC_DRIVER 

Definition at line 102 of file util_cuda.h.

Enumerator:
CU_EVENT_DEFAULT 
CU_EVENT_BLOCKING_SYNC 
CU_EVENT_DISABLE_TIMING 

Definition at line 73 of file util_cuda.h.

Enumerator:
CU_TR_FILTER_MODE_POINT 
CU_TR_FILTER_MODE_LINEAR 

Definition at line 97 of file util_cuda.h.

Enumerator:
CU_FUNC_CACHE_PREFER_NONE 
CU_FUNC_CACHE_PREFER_SHARED 
CU_FUNC_CACHE_PREFER_L1 

Definition at line 166 of file util_cuda.h.

Enumerator:
CU_FUNC_ATTRIBUTE_MAX_THREADS_PER_BLOCK 
CU_FUNC_ATTRIBUTE_SHARED_SIZE_BYTES 
CU_FUNC_ATTRIBUTE_CONST_SIZE_BYTES 
CU_FUNC_ATTRIBUTE_LOCAL_SIZE_BYTES 
CU_FUNC_ATTRIBUTE_NUM_REGS 
CU_FUNC_ATTRIBUTE_PTX_VERSION 
CU_FUNC_ATTRIBUTE_BINARY_VERSION 
CU_FUNC_ATTRIBUTE_MAX 

Definition at line 155 of file util_cuda.h.

Enumerator:
CU_GRAPHICS_MAP_RESOURCE_FLAGS_NONE 
CU_GRAPHICS_MAP_RESOURCE_FLAGS_READ_ONLY 
CU_GRAPHICS_MAP_RESOURCE_FLAGS_WRITE_DISCARD 

Definition at line 221 of file util_cuda.h.

Enumerator:
CU_GRAPHICS_REGISTER_FLAGS_NONE 

Definition at line 217 of file util_cuda.h.

Enumerator:
CU_PREFER_PTX 
CU_PREFER_BINARY 

Definition at line 210 of file util_cuda.h.

Enumerator:
CU_JIT_MAX_REGISTERS 
CU_JIT_THREADS_PER_BLOCK 
CU_JIT_WALL_TIME 
CU_JIT_INFO_LOG_BUFFER 
CU_JIT_INFO_LOG_BUFFER_SIZE_BYTES 
CU_JIT_ERROR_LOG_BUFFER 
CU_JIT_ERROR_LOG_BUFFER_SIZE_BYTES 
CU_JIT_OPTIMIZATION_LEVEL 
CU_JIT_TARGET_FROM_CUCONTEXT 
CU_JIT_TARGET 
CU_JIT_FALLBACK_STRATEGY 

Definition at line 184 of file util_cuda.h.

Enumerator:
CU_TARGET_COMPUTE_10 
CU_TARGET_COMPUTE_11 
CU_TARGET_COMPUTE_12 
CU_TARGET_COMPUTE_13 
CU_TARGET_COMPUTE_20 
CU_TARGET_COMPUTE_21 

Definition at line 200 of file util_cuda.h.

Enumerator:
CU_LIMIT_STACK_SIZE 
CU_LIMIT_PRINTF_FIFO_SIZE 
CU_LIMIT_MALLOC_HEAP_SIZE 

Definition at line 236 of file util_cuda.h.

Enumerator:
CU_MEMORYTYPE_HOST 
CU_MEMORYTYPE_DEVICE 
CU_MEMORYTYPE_ARRAY 

Definition at line 172 of file util_cuda.h.


Function Documentation

string cuCompilerPath ( )

Definition at line 393 of file util_cuda.cpp.

References path_exists(), and path_join().

Referenced by CUDADevice::compile_kernel(), and cuLibraryInit().

CCL_NAMESPACE_BEGIN bool cuLibraryInit ( )

Definition at line 163 of file util_cuda.cpp.

References cuArray3DCreate, cuArray3DGetDescriptor, cuArrayCreate, cuArrayDestroy, cuArrayGetDescriptor, cuCompilerPath(), cuCtxAttach, cuCtxCreate, cuCtxDestroy, cuCtxDetach, cuCtxGetDevice, cuCtxGetLimit, cuCtxPopCurrent, cuCtxPushCurrent, cuCtxSetCurrent, cuCtxSetLimit, cuCtxSynchronize, CUDA_LIBRARY_FIND, CUDA_LIBRARY_FIND_CHECKED, CUDA_LIBRARY_FIND_V2, cuDeviceComputeCapability, cuDeviceGet, cuDeviceGetAttribute, cuDeviceGetCount, cuDeviceGetName, cuDeviceGetProperties, cuDeviceTotalMem, cuDriverGetVersion, cuEventCreate, cuEventDestroy, cuEventElapsedTime, cuEventQuery, cuEventRecord, cuEventSynchronize, cuFuncGetAttribute, cuFuncSetBlockShape, cuFuncSetCacheConfig, cuFuncSetSharedSize, cuGetExportTable, cuGLCtxCreate, cuGraphicsGLRegisterBuffer, cuGraphicsGLRegisterImage, cuGraphicsMapResources, cuGraphicsResourceGetMappedPointer, cuGraphicsResourceSetMapFlags, cuGraphicsSubResourceGetMappedArray, cuGraphicsUnmapResources, cuGraphicsUnregisterResource, cuInit, cuLaunch, cuLaunchGrid, cuLaunchGridAsync, cuMemAlloc, cuMemAllocHost, cuMemAllocPitch, cuMemcpy2D, cuMemcpy2DAsync, cuMemcpy2DUnaligned, cuMemcpy3D, cuMemcpy3DAsync, cuMemcpyAtoA, cuMemcpyAtoD, cuMemcpyAtoH, cuMemcpyAtoHAsync, cuMemcpyDtoA, cuMemcpyDtoD, cuMemcpyDtoDAsync, cuMemcpyDtoH, cuMemcpyDtoHAsync, cuMemcpyHtoA, cuMemcpyHtoAAsync, cuMemcpyHtoD, cuMemcpyHtoDAsync, cuMemFree, cuMemFreeHost, cuMemGetAddressRange, cuMemGetInfo, cuMemHostAlloc, cuMemHostGetDevicePointer, cuMemHostGetFlags, cuMemsetD16, cuMemsetD2D16, cuMemsetD2D32, cuMemsetD2D8, cuMemsetD32, cuMemsetD8, cuModuleGetFunction, cuModuleGetGlobal, cuModuleGetSurfRef, cuModuleGetTexRef, cuModuleLoad, cuModuleLoadData, cuModuleLoadDataEx, cuModuleLoadFatBinary, cuModuleUnload, cuParamSetf, cuParamSeti, cuParamSetSize, cuParamSetTexRef, cuParamSetv, cuStreamCreate, cuStreamDestroy, cuStreamQuery, cuStreamSynchronize, cuSurfRefGetArray, cuSurfRefSetArray, cuTexRefCreate, cuTexRefDestroy, cuTexRefGetAddress, cuTexRefGetAddressMode, cuTexRefGetArray, cuTexRefGetFilterMode, cuTexRefGetFlags, cuTexRefGetFormat, cuTexRefSetAddress, cuTexRefSetAddress2D, cuTexRefSetAddressMode, cuTexRefSetArray, cuTexRefSetFilterMode, cuTexRefSetFlags, cuTexRefSetFormat, dynamic_library_open(), and NULL.

Referenced by Device::available_devices(), Device::available_types(), and Device::create().


Variable Documentation

Definition at line 96 of file util_cuda.cpp.

Referenced by cuLibraryInit().

Definition at line 97 of file util_cuda.cpp.

Referenced by cuLibraryInit().

Definition at line 93 of file util_cuda.cpp.

Referenced by cuLibraryInit(), and CUDADevice::tex_alloc().

Definition at line 95 of file util_cuda.cpp.

Referenced by cuLibraryInit(), and CUDADevice::tex_free().

Definition at line 94 of file util_cuda.cpp.

Referenced by cuLibraryInit().

Definition at line 40 of file util_cuda.cpp.

Referenced by cuLibraryInit().

Definition at line 38 of file util_cuda.cpp.

Referenced by CUDADevice::CUDADevice(), and cuLibraryInit().

Definition at line 39 of file util_cuda.cpp.

Referenced by cuLibraryInit().

Definition at line 41 of file util_cuda.cpp.

Referenced by cuLibraryInit(), and CUDADevice::~CUDADevice().

Definition at line 44 of file util_cuda.cpp.

Referenced by cuLibraryInit().

Definition at line 141 of file util_cuda.cpp.

Referenced by cuLibraryInit().

Definition at line 43 of file util_cuda.cpp.

Referenced by cuLibraryInit().

Definition at line 42 of file util_cuda.cpp.

Referenced by cuLibraryInit().

Definition at line 140 of file util_cuda.cpp.

Referenced by cuLibraryInit().

Definition at line 45 of file util_cuda.cpp.

Referenced by cuLibraryInit(), and CUDADevice::task_wait().

Definition at line 31 of file util_cuda.cpp.

Referenced by CUDADevice::CUDADevice(), and cuLibraryInit().

Definition at line 37 of file util_cuda.cpp.

Referenced by cuLibraryInit(), and device_cuda_info().

Definition at line 32 of file util_cuda.cpp.

Referenced by cuLibraryInit(), and device_cuda_info().

Definition at line 33 of file util_cuda.cpp.

Referenced by cuLibraryInit(), CUDADevice::description(), and device_cuda_info().

Definition at line 36 of file util_cuda.cpp.

Referenced by cuLibraryInit().

Definition at line 35 of file util_cuda.cpp.

Referenced by cuLibraryInit().

Definition at line 30 of file util_cuda.cpp.

Referenced by cuLibraryInit().

Definition at line 123 of file util_cuda.cpp.

Referenced by cuLibraryInit().

Definition at line 127 of file util_cuda.cpp.

Referenced by cuLibraryInit().

Definition at line 128 of file util_cuda.cpp.

Referenced by cuLibraryInit().

Definition at line 125 of file util_cuda.cpp.

Referenced by cuLibraryInit().

Definition at line 124 of file util_cuda.cpp.

Referenced by cuLibraryInit().

Definition at line 126 of file util_cuda.cpp.

Referenced by cuLibraryInit().

Definition at line 91 of file util_cuda.cpp.

Referenced by cuLibraryInit().

Definition at line 90 of file util_cuda.cpp.

Referenced by cuLibraryInit().

Definition at line 139 of file util_cuda.cpp.

Referenced by cuLibraryInit().

Definition at line 142 of file util_cuda.cpp.

Referenced by CUDADevice::CUDADevice(), and cuLibraryInit().

Definition at line 143 of file util_cuda.cpp.

Referenced by cuLibraryInit(), and CUDADevice::pixels_alloc().

Definition at line 144 of file util_cuda.cpp.

Referenced by cuLibraryInit().

Definition at line 137 of file util_cuda.cpp.

Referenced by cuLibraryInit(), and CUDADevice::map_pixels().

Definition at line 135 of file util_cuda.cpp.

Referenced by cuLibraryInit(), and CUDADevice::map_pixels().

Definition at line 136 of file util_cuda.cpp.

Referenced by cuLibraryInit().

Definition at line 134 of file util_cuda.cpp.

Referenced by cuLibraryInit().

Definition at line 138 of file util_cuda.cpp.

Referenced by cuLibraryInit(), and CUDADevice::unmap_pixels().

Definition at line 133 of file util_cuda.cpp.

Referenced by cuLibraryInit(), and CUDADevice::pixels_free().

Definition at line 29 of file util_cuda.cpp.

Referenced by CUDADevice::CUDADevice(), cuLibraryInit(), and device_cuda_info().

Definition at line 120 of file util_cuda.cpp.

Referenced by cuLibraryInit().

Definition at line 122 of file util_cuda.cpp.

Referenced by cuLibraryInit().

Definition at line 56 of file util_cuda.cpp.

Referenced by cuLibraryInit(), and CUDADevice::mem_alloc().

Definition at line 60 of file util_cuda.cpp.

Referenced by cuLibraryInit().

Definition at line 57 of file util_cuda.cpp.

Referenced by cuLibraryInit().

Definition at line 73 of file util_cuda.cpp.

Referenced by cuLibraryInit(), and CUDADevice::tex_alloc().

Definition at line 81 of file util_cuda.cpp.

Referenced by cuLibraryInit().

Definition at line 74 of file util_cuda.cpp.

Referenced by cuLibraryInit().

Definition at line 75 of file util_cuda.cpp.

Referenced by cuLibraryInit().

Definition at line 82 of file util_cuda.cpp.

Referenced by cuLibraryInit().

Definition at line 72 of file util_cuda.cpp.

Referenced by cuLibraryInit().

Definition at line 69 of file util_cuda.cpp.

Referenced by cuLibraryInit().

Definition at line 71 of file util_cuda.cpp.

Referenced by cuLibraryInit().

Definition at line 80 of file util_cuda.cpp.

Referenced by cuLibraryInit().

Definition at line 68 of file util_cuda.cpp.

Referenced by cuLibraryInit().

Definition at line 67 of file util_cuda.cpp.

Referenced by cuLibraryInit().

Definition at line 78 of file util_cuda.cpp.

Referenced by cuLibraryInit().

Definition at line 66 of file util_cuda.cpp.

Referenced by cuLibraryInit(), and CUDADevice::mem_copy_from().

Definition at line 77 of file util_cuda.cpp.

Referenced by cuLibraryInit().

Definition at line 70 of file util_cuda.cpp.

Referenced by cuLibraryInit(), and CUDADevice::tex_alloc().

Definition at line 79 of file util_cuda.cpp.

Referenced by cuLibraryInit().

Definition at line 65 of file util_cuda.cpp.

Referenced by CUDADevice::const_copy_to(), cuLibraryInit(), and CUDADevice::mem_copy_to().

Definition at line 76 of file util_cuda.cpp.

Referenced by cuLibraryInit().

Definition at line 58 of file util_cuda.cpp.

Referenced by cuLibraryInit(), and CUDADevice::mem_free().

Definition at line 61 of file util_cuda.cpp.

Referenced by cuLibraryInit().

Definition at line 59 of file util_cuda.cpp.

Referenced by cuLibraryInit().

Definition at line 55 of file util_cuda.cpp.

Referenced by cuLibraryInit().

Definition at line 62 of file util_cuda.cpp.

Referenced by cuLibraryInit().

Definition at line 63 of file util_cuda.cpp.

Referenced by cuLibraryInit().

Definition at line 64 of file util_cuda.cpp.

Referenced by cuLibraryInit().

Definition at line 84 of file util_cuda.cpp.

Referenced by cuLibraryInit().

Definition at line 87 of file util_cuda.cpp.

Referenced by cuLibraryInit().

Definition at line 88 of file util_cuda.cpp.

Referenced by cuLibraryInit().

Definition at line 86 of file util_cuda.cpp.

Referenced by cuLibraryInit().

Definition at line 85 of file util_cuda.cpp.

Referenced by cuLibraryInit().

Definition at line 83 of file util_cuda.cpp.

Referenced by cuLibraryInit(), and CUDADevice::mem_zero().

Definition at line 52 of file util_cuda.cpp.

Referenced by CUDADevice::const_copy_to(), and cuLibraryInit().

Definition at line 54 of file util_cuda.cpp.

Referenced by cuLibraryInit().

Definition at line 53 of file util_cuda.cpp.

Referenced by cuLibraryInit(), and CUDADevice::tex_alloc().

Definition at line 46 of file util_cuda.cpp.

Referenced by cuLibraryInit(), and CUDADevice::load_kernels().

Definition at line 47 of file util_cuda.cpp.

Referenced by cuLibraryInit().

Definition at line 48 of file util_cuda.cpp.

Referenced by cuLibraryInit().

Definition at line 49 of file util_cuda.cpp.

Referenced by cuLibraryInit().

Definition at line 50 of file util_cuda.cpp.

Referenced by cuLibraryInit().

Definition at line 117 of file util_cuda.cpp.

Referenced by cuLibraryInit().

Definition at line 119 of file util_cuda.cpp.

Referenced by cuLibraryInit().

Definition at line 129 of file util_cuda.cpp.

Referenced by cuLibraryInit().

Definition at line 132 of file util_cuda.cpp.

Referenced by cuLibraryInit().

Definition at line 130 of file util_cuda.cpp.

Referenced by cuLibraryInit().

Definition at line 131 of file util_cuda.cpp.

Referenced by cuLibraryInit().

Definition at line 114 of file util_cuda.cpp.

Referenced by cuLibraryInit().

Definition at line 113 of file util_cuda.cpp.

Referenced by cuLibraryInit().

Definition at line 98 of file util_cuda.cpp.

Referenced by cuLibraryInit().

Definition at line 99 of file util_cuda.cpp.

Referenced by cuLibraryInit().

Definition at line 107 of file util_cuda.cpp.

Referenced by cuLibraryInit().

Definition at line 109 of file util_cuda.cpp.

Referenced by cuLibraryInit().

Definition at line 108 of file util_cuda.cpp.

Referenced by cuLibraryInit().

Definition at line 110 of file util_cuda.cpp.

Referenced by cuLibraryInit().

Definition at line 112 of file util_cuda.cpp.

Referenced by cuLibraryInit().

Definition at line 111 of file util_cuda.cpp.

Referenced by cuLibraryInit().

Definition at line 101 of file util_cuda.cpp.

Referenced by cuLibraryInit(), and CUDADevice::tex_alloc().

Definition at line 102 of file util_cuda.cpp.

Referenced by cuLibraryInit().

Definition at line 104 of file util_cuda.cpp.

Referenced by cuLibraryInit(), and CUDADevice::tex_alloc().

Definition at line 100 of file util_cuda.cpp.

Referenced by cuLibraryInit(), and CUDADevice::tex_alloc().

Definition at line 105 of file util_cuda.cpp.

Referenced by cuLibraryInit(), and CUDADevice::tex_alloc().

Definition at line 106 of file util_cuda.cpp.

Referenced by cuLibraryInit(), and CUDADevice::tex_alloc().

Definition at line 103 of file util_cuda.cpp.

Referenced by cuLibraryInit(), and CUDADevice::tex_alloc().