GPUOcelot
Classes | Defines | Typedefs | Enumerations | Functions

cuda_runtime.h File Reference

implements an up-to-date CUDA Runtime API More...

#include <cstring>
#include <limits.h>
#include <cstdint>
#include <ocelot/cuda/interface/cudaFatBinary.h>
#include <ocelot/cuda/interface/cudaFatBinary.h>
Include dependency graph for cuda_runtime.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  uint3
struct  dim3
struct  cudaExtent
struct  cudaDeviceProp
struct  cudaChannelFormatDesc
struct  cudaFuncAttributes
struct  cudaPitchedPtr
struct  cudaPos
struct  cudaMemcpy3DParms
struct  textureReference

Defines

#define cudaHostAllocDefault   0
 Default page-locked allocation flag.
#define cudaHostAllocPortable   1
 Pinned memory accessible by all CUDA contexts.
#define cudaHostAllocMapped   2
 Map allocation into device space.
#define cudaHostAllocWriteCombined   4
 Write-combined memory.
#define cudaEventDefault   0
 Default event flag.
#define cudaEventBlockingSync   1
 Event uses blocking synchronization.
#define cudaDeviceScheduleAuto   0
 Device flag - Automatic scheduling.
#define cudaDeviceScheduleSpin   1
 Device flag - Spin default scheduling.
#define cudaDeviceScheduleYield   2
 Device flag - Yield default scheduling.
#define cudaDeviceBlockingSync   4
 Device flag - Use blocking synchronization.
#define cudaDeviceMapHost   8
 Device flag - Support mapped pinned allocations.
#define cudaDeviceLmemResizeToMax   16
 Device flag - Keep local memory allocation after launch.
#define cudaDeviceMask   0x1f
 Device flags mask.
#define fatGetCubinForGpu(binary, gpuName, cubin, dbgInfoFile)   fatGetCubinForGpuWithPolicy(binary,__cudaFatAvoidPTX,gpuName,cubin,dbgInfoFile)
#define fatCheckJitForGpu(binary, gpuName, ptx)   fatCheckJitForGpuWithPolicy(binary,__cudaFatAvoidPTX,gpuName,ptx)

Typedefs

typedef int cudaEvent_t
typedef int cudaStream_t
typedef unsigned int GLuint
typedef cudaError cudaError_t
typedef struct dim3 dim3
typedef struct CUuuid_st cudaUUID_t

Enumerations

enum  cudaMemcpyKind {
  cudaMemcpyHostToHost = 0, cudaMemcpyHostToDevice = 1, cudaMemcpyDeviceToHost = 2, cudaMemcpyDeviceToDevice = 3,
  cudaMemcpyDefault = 4, cudaMemcpyHostToHost = 0, cudaMemcpyHostToDevice = 1, cudaMemcpyDeviceToHost = 2,
  cudaMemcpyDeviceToDevice = 3
}
enum  cudaChannelFormatKind {
  cudaChannelFormatKindSigned = 0, cudaChannelFormatKindUnsigned = 1, cudaChannelFormatKindFloat = 2, cudaChannelFormatKindNone = 3,
  cudaChannelFormatKindSigned = 0, cudaChannelFormatKindUnsigned = 1, cudaChannelFormatKindFloat = 2, cudaChannelFormatKindNone = 3
}
enum  cudaComputeMode {
  cudaComputeModeDefault = 0, cudaComputeModeExclusive = 1, cudaComputeModeProhibited = 2, cudaComputeModeExclusiveProcess = 3,
  cudaComputeModeDefault, cudaComputeModeExclusive, cudaComputeModeProhibited
}
enum  cudaError {
  cudaSuccess = 0, cudaErrorMissingConfiguration = 1, cudaErrorMemoryAllocation = 2, cudaErrorInitializationError = 3,
  cudaErrorLaunchFailure = 4, cudaErrorPriorLaunchFailure = 5, cudaErrorLaunchTimeout = 6, cudaErrorLaunchOutOfResources = 7,
  cudaErrorInvalidDeviceFunction = 8, cudaErrorInvalidConfiguration = 9, cudaErrorInvalidDevice = 10, cudaErrorInvalidValue = 11,
  cudaErrorInvalidPitchValue = 12, cudaErrorInvalidSymbol = 13, cudaErrorMapBufferObjectFailed = 14, cudaErrorUnmapBufferObjectFailed = 15,
  cudaErrorInvalidHostPointer = 16, cudaErrorInvalidDevicePointer = 17, cudaErrorInvalidTexture = 18, cudaErrorInvalidTextureBinding = 19,
  cudaErrorInvalidChannelDescriptor = 20, cudaErrorInvalidMemcpyDirection = 21, cudaErrorAddressOfConstant = 22, cudaErrorTextureFetchFailed = 23,
  cudaErrorTextureNotBound = 24, cudaErrorSynchronizationError = 25, cudaErrorInvalidFilterSetting = 26, cudaErrorInvalidNormSetting = 27,
  cudaErrorMixedDeviceExecution = 28, cudaErrorCudartUnloading = 29, cudaErrorUnknown = 30, cudaErrorNotYetImplemented = 31,
  cudaErrorMemoryValueTooLarge = 32, cudaErrorInvalidResourceHandle = 33, cudaErrorNotReady = 34, cudaErrorInsufficientDriver = 35,
  cudaErrorSetOnActiveProcess = 36, cudaErrorInvalidSurface = 37, cudaErrorNoDevice = 38, cudaErrorECCUncorrectable = 39,
  cudaErrorSharedObjectSymbolNotFound = 40, cudaErrorSharedObjectInitFailed = 41, cudaErrorUnsupportedLimit = 42, cudaErrorDuplicateVariableName = 43,
  cudaErrorDuplicateTextureName = 44, cudaErrorDuplicateSurfaceName = 45, cudaErrorDevicesUnavailable = 46, cudaErrorInvalidKernelImage = 47,
  cudaErrorNoKernelImageForDevice = 48, cudaErrorIncompatibleDriverContext = 49, cudaErrorPeerAccessAlreadyEnabled = 50, cudaErrorPeerAccessNotEnabled = 51,
  cudaErrorDeviceAlreadyInUse = 54, cudaErrorProfilerDisabled = 55, cudaErrorProfilerNotInitialized = 56, cudaErrorProfilerAlreadyStarted = 57,
  cudaErrorProfilerAlreadyStopped = 58, cudaErrorAssert = 59, cudaErrorTooManyPeers = 60, cudaErrorHostMemoryAlreadyRegistered = 61,
  cudaErrorHostMemoryNotRegistered = 62, cudaErrorStartupFailure = 0x7f, cudaErrorApiFailureBase = 10000, cudaSuccess = 0,
  cudaErrorMissingConfiguration = 1, cudaErrorMemoryAllocation = 2, cudaErrorInitializationError = 3, cudaErrorLaunchFailure = 4,
  cudaErrorPriorLaunchFailure = 5, cudaErrorLaunchTimeout = 6, cudaErrorLaunchOutOfResources = 7, cudaErrorInvalidDeviceFunction = 8,
  cudaErrorInvalidConfiguration = 9, cudaErrorInvalidDevice = 10, cudaErrorInvalidValue = 11, cudaErrorInvalidPitchValue = 12,
  cudaErrorInvalidSymbol = 13, cudaErrorMapBufferObjectFailed = 14, cudaErrorUnmapBufferObjectFailed = 15, cudaErrorInvalidHostPointer = 16,
  cudaErrorInvalidDevicePointer = 17, cudaErrorInvalidTexture = 18, cudaErrorInvalidTextureBinding = 19, cudaErrorInvalidChannelDescriptor = 20,
  cudaErrorInvalidMemcpyDirection = 21, cudaErrorAddressOfConstant = 22, cudaErrorTextureFetchFailed = 23, cudaErrorTextureNotBound = 24,
  cudaErrorSynchronizationError = 25, cudaErrorInvalidFilterSetting = 26, cudaErrorInvalidNormSetting = 27, cudaErrorMixedDeviceExecution = 28,
  cudaErrorCudartUnloading = 29, cudaErrorUnknown = 30, cudaErrorNotYetImplemented = 31, cudaErrorMemoryValueTooLarge = 32,
  cudaErrorInvalidResourceHandle = 33, cudaErrorNotReady = 34, cudaErrorInsufficientDriver = 35, cudaErrorSetOnActiveProcess = 36,
  cudaErrorNoDevice = 38, cudaErrorECCUncorrectable = 39, cudaErrorStartupFailure = 0x7f, cudaErrorApiFailureBase = 10000
}
enum  cudaFuncCache {
  cudaFuncCachePreferNone = 0, cudaFuncCachePreferShared = 1, cudaFuncCachePreferL1 = 2, cudaFuncCachePreferEqual = 3,
  cudaFuncCachePreferNone = 0, cudaFuncCachePreferShared = 1, cudaFuncCachePreferL1 = 2
}
enum  cudaLimit {
  cudaLimitStackSize = 0x00, cudaLimitPrintfFifoSize = 0x01, cudaLimitMallocHeapSize = 0x02, cudaLimitStackSize = 0x00,
  cudaLimitPrintfFifoSize = 0x01, cudaLimitMallocHeapSize = 0x02
}
enum  cudaTextureAddressMode {
  cudaAddressModeWrap = 0, cudaAddressModeClamp = 1, cudaAddressModeMirror = 2, cudaAddressModeBorder = 3,
  cudaAddressModeWrap, cudaAddressModeClamp
}
enum  cudaTextureFilterMode { cudaFilterModePoint = 0, cudaFilterModeLinear = 1, cudaFilterModePoint, cudaFilterModeLinear }
enum  cudaTextureReadMode { cudaReadModeElementType = 0, cudaReadModeNormalizedFloat = 1, cudaReadModeElementType, cudaReadModeNormalizedFloat }

Functions

void fatGetCubinForGpuWithPolicy (__cudaFatCudaBinary *binary, __cudaFatCompilationPolicy policy, char *gpuName, char **cubin, char **dbgInfoFile)
unsigned char fatCheckJitForGpuWithPolicy (__cudaFatCudaBinary *binary, __cudaFatCompilationPolicy policy, char *gpuName, char **ptx)
void fatFreeCubin (char *cubin, char *dbgInfoFile)
void ** __cudaRegisterFatBinary (void *fatCubin)
void __cudaUnregisterFatBinary (void **fatCubinHandle)
void __cudaRegisterVar (void **fatCubinHandle, char *hostVar, char *deviceAddress, const char *deviceName, int ext, int size, int constant, int global)
void __cudaRegisterTexture (void **fatCubinHandle, const struct textureReference *hostVar, const void **deviceAddress, const char *deviceName, int dim, int norm, int ext)
void __cudaRegisterShared (void **fatCubinHandle, void **devicePtr)
void __cudaRegisterSharedVar (void **fatCubinHandle, void **devicePtr, size_t size, size_t alignment, int storage)
void __cudaRegisterFunction (void **fatCubinHandle, const char *hostFun, char *deviceFun, const char *deviceName, int thread_limit, uint3 *tid, uint3 *bid, dim3 *bDim, dim3 *gDim, int *wSize)
cudaError_t cudaMalloc3D (struct cudaPitchedPtr *pitchedDevPtr, struct cudaExtent extent)
cudaError_t cudaMalloc3DArray (struct cudaArray **arrayPtr, const struct cudaChannelFormatDesc *desc, struct cudaExtent extent)
cudaError_t cudaMemset3D (struct cudaPitchedPtr pitchedDevPtr, int value, struct cudaExtent extent)
cudaError_t cudaMemsetAsync (void *devPtr, int value, size_t count, cudaStream_t stream=0)
cudaError_t cudaMemcpy3D (const struct cudaMemcpy3DParms *p)
cudaError_t cudaMemcpy3DAsync (const struct cudaMemcpy3DParms *p, cudaStream_t stream)
cudaError_t cudaMalloc (void **devPtr, size_t size)
cudaError_t cudaMallocHost (void **ptr, size_t size)
cudaError_t cudaMallocPitch (void **devPtr, size_t *pitch, size_t width, size_t height)
cudaError_t cudaMallocArray (struct cudaArray **array, const struct cudaChannelFormatDesc *desc, size_t width, size_t height=1)
cudaError_t cudaFree (void *devPtr)
cudaError_t cudaFreeHost (void *ptr)
cudaError_t cudaFreeArray (struct cudaArray *array)
cudaError_t cudaHostAlloc (void **pHost, size_t bytes, unsigned int flags)
cudaError_t cudaHostGetDevicePointer (void **pDevice, void *pHost, unsigned int flags)
cudaError_t cudaHostGetFlags (unsigned int *pFlags, void *pHost)
cudaError_t cudaHostRegister (void *pHost, size_t bytes, unsigned int flags)
cudaError_t cudaHostUnregister (void *pHost)
cudaError_t cudaMemcpy (void *dst, const void *src, size_t count, enum cudaMemcpyKind kind)
cudaError_t cudaMemcpyToArray (struct cudaArray *dst, size_t wOffset, size_t hOffset, const void *src, size_t count, enum cudaMemcpyKind kind)
cudaError_t cudaMemcpyFromArray (void *dst, const struct cudaArray *src, size_t wOffset, size_t hOffset, size_t count, enum cudaMemcpyKind kind)
cudaError_t cudaMemcpyArrayToArray (struct cudaArray *dst, size_t wOffsetDst, size_t hOffsetDst, const struct cudaArray *src, size_t wOffsetSrc, size_t hOffsetSrc, size_t count, enum cudaMemcpyKind kind=cudaMemcpyDeviceToDevice)
cudaError_t cudaMemcpy2D (void *dst, size_t dpitch, const void *src, size_t spitch, size_t width, size_t height, enum cudaMemcpyKind kind)
cudaError_t cudaMemcpy2DToArray (struct cudaArray *dst, size_t wOffset, size_t hOffset, const void *src, size_t spitch, size_t width, size_t height, enum cudaMemcpyKind kind)
cudaError_t cudaMemcpy2DFromArray (void *dst, size_t dpitch, const struct cudaArray *src, size_t wOffset, size_t hOffset, size_t width, size_t height, enum cudaMemcpyKind kind)
cudaError_t cudaMemcpy2DArrayToArray (struct cudaArray *dst, size_t wOffsetDst, size_t hOffsetDst, const struct cudaArray *src, size_t wOffsetSrc, size_t hOffsetSrc, size_t width, size_t height, enum cudaMemcpyKind kind=cudaMemcpyDeviceToDevice)
cudaError_t cudaMemcpyToSymbol (const char *symbol, const void *src, size_t count, size_t offset=0, enum cudaMemcpyKind kind=cudaMemcpyHostToDevice)
cudaError_t cudaMemcpyFromSymbol (void *dst, const char *symbol, size_t count, size_t offset=0, enum cudaMemcpyKind kind=cudaMemcpyDeviceToHost)
cudaError_t cudaMemcpyAsync (void *dst, const void *src, size_t count, enum cudaMemcpyKind kind, cudaStream_t stream)
cudaError_t cudaMemcpyToArrayAsync (struct cudaArray *dst, size_t wOffset, size_t hOffset, const void *src, size_t count, enum cudaMemcpyKind kind, cudaStream_t stream)
cudaError_t cudaMemcpyFromArrayAsync (void *dst, const struct cudaArray *src, size_t wOffset, size_t hOffset, size_t count, enum cudaMemcpyKind kind, cudaStream_t stream)
cudaError_t cudaMemcpy2DAsync (void *dst, size_t dpitch, const void *src, size_t spitch, size_t width, size_t height, enum cudaMemcpyKind kind, cudaStream_t stream)
cudaError_t cudaMemcpy2DToArrayAsync (struct cudaArray *dst, size_t wOffset, size_t hOffset, const void *src, size_t spitch, size_t width, size_t height, enum cudaMemcpyKind kind, cudaStream_t stream)
cudaError_t cudaMemcpy2DFromArrayAsync (void *dst, size_t dpitch, const struct cudaArray *src, size_t wOffset, size_t hOffset, size_t width, size_t height, enum cudaMemcpyKind kind, cudaStream_t stream)
cudaError_t cudaMemcpyToSymbolAsync (const char *symbol, const void *src, size_t count, size_t offset, enum cudaMemcpyKind kind, cudaStream_t stream)
cudaError_t cudaMemcpyFromSymbolAsync (void *dst, const char *symbol, size_t count, size_t offset, enum cudaMemcpyKind kind, cudaStream_t stream)
cudaError_t cudaMemset (void *devPtr, int value, size_t count)
cudaError_t cudaMemset2D (void *devPtr, size_t pitch, int value, size_t width, size_t height)
cudaError_t cudaGetSymbolAddress (void **devPtr, const char *symbol)
cudaError_t cudaGetSymbolSize (size_t *size, const char *symbol)
cudaError_t cudaGetDeviceCount (int *count)
cudaError_t cudaGetDeviceProperties (struct cudaDeviceProp *prop, int device)
cudaError_t cudaChooseDevice (int *device, const struct cudaDeviceProp *prop)
cudaError_t cudaSetDevice (int device)
cudaError_t cudaGetDevice (int *device)
cudaError_t cudaSetValidDevices (int *device_arr, int len)
cudaError_t cudaSetDeviceFlags (int flags)
cudaError_t cudaBindTexture (size_t *offset, const struct textureReference *texref, const void *devPtr, const struct cudaChannelFormatDesc *desc, size_t size=UINT_MAX)
cudaError_t cudaBindTexture2D (size_t *offset, const struct textureReference *texref, const void *devPtr, const struct cudaChannelFormatDesc *desc, size_t width, size_t height, size_t pitch)
cudaError_t cudaBindTextureToArray (const struct textureReference *texref, const struct cudaArray *array, const struct cudaChannelFormatDesc *desc)
cudaError_t cudaUnbindTexture (const struct textureReference *texref)
cudaError_t cudaGetTextureAlignmentOffset (size_t *offset, const struct textureReference *texref)
cudaError_t cudaGetTextureReference (const struct textureReference **texref, const char *symbol)
cudaError_t cudaGetChannelDesc (struct cudaChannelFormatDesc *desc, const struct cudaArray *array)
struct cudaChannelFormatDesc cudaCreateChannelDesc (int x, int y, int z, int w, enum cudaChannelFormatKind f)
cudaError_t cudaGetLastError (void)
cudaError_t cudaPeekAtLastError ()
const char * cudaGetErrorString (cudaError_t error)
cudaError_t cudaConfigureCall (dim3 gridDim, dim3 blockDim, size_t sharedMem=0, cudaStream_t stream=0)
cudaError_t cudaSetupArgument (const void *arg, size_t size, size_t offset)
cudaError_t cudaLaunch (const char *entry)
cudaError_t cudaFuncGetAttributes (struct cudaFuncAttributes *attr, const char *func)
cudaError_t cudaFuncSetCacheConfig (const char *func, enum cudaFuncCache cacheConfig)
cudaError_t cudaStreamWaitEvent (cudaStream_t stream, cudaEvent_t event, unsigned int flags)
cudaError_t cudaStreamCreate (cudaStream_t *pStream)
cudaError_t cudaStreamDestroy (cudaStream_t stream)
cudaError_t cudaStreamSynchronize (cudaStream_t stream)
cudaError_t cudaStreamQuery (cudaStream_t stream)
cudaError_t cudaEventCreate (cudaEvent_t *event)
cudaError_t cudaEventCreateWithFlags (cudaEvent_t *event, int flags)
cudaError_t cudaEventRecord (cudaEvent_t event, cudaStream_t stream)
cudaError_t cudaEventQuery (cudaEvent_t event)
cudaError_t cudaEventSynchronize (cudaEvent_t event)
cudaError_t cudaEventDestroy (cudaEvent_t event)
cudaError_t cudaEventElapsedTime (float *ms, cudaEvent_t start, cudaEvent_t end)
cudaError_t cudaGraphicsGLRegisterBuffer (struct cudaGraphicsResource **resource, GLuint buffer, unsigned int flags)
cudaError_t cudaGraphicsGLRegisterImage (struct cudaGraphicsResource **resource, GLuint image, int target, unsigned int flags)
cudaError_t cudaGraphicsUnregisterResource (struct cudaGraphicsResource *resource)
cudaError_t cudaGraphicsResourceSetMapFlags (struct cudaGraphicsResource *resource, unsigned int flags)
cudaError_t cudaGraphicsMapResources (int count, struct cudaGraphicsResource **resources, cudaStream_t stream=0)
cudaError_t cudaGraphicsUnmapResources (int count, struct cudaGraphicsResource **resources, cudaStream_t stream=0)
cudaError_t cudaGraphicsResourceGetMappedPointer (void **devPtr, size_t *size, struct cudaGraphicsResource *resource)
cudaError_t cudaGraphicsSubResourceGetMappedArray (struct cudaArray **arrayPtr, struct cudaGraphicsResource *resource, unsigned int arrayIndex, unsigned int mipLevel)
cudaError_t cudaGLMapBufferObject (void **devPtr, GLuint bufObj)
cudaError_t cudaGLMapBufferObjectAsync (void **devPtr, GLuint bufObj, cudaStream_t stream)
cudaError_t cudaGLRegisterBufferObject (GLuint bufObj)
cudaError_t cudaGLSetBufferObjectMapFlags (GLuint bufObj, unsigned int flags)
cudaError_t cudaGLSetGLDevice (int device)
cudaError_t cudaGLUnmapBufferObject (GLuint bufObj)
cudaError_t cudaGLUnmapBufferObjectAsync (GLuint bufObj, cudaStream_t stream)
cudaError_t cudaGLUnregisterBufferObject (GLuint bufObj)
cudaError_t cudaSetDoubleForDevice (double *d)
cudaError_t cudaSetDoubleForHost (double *d)
cudaError_t cudaDeviceReset (void)
cudaError_t cudaDeviceSynchronize (void)
cudaError_t cudaDeviceSetLimit (enum cudaLimit limit, size_t value)
cudaError_t cudaDeviceGetLimit (size_t *pValue, enum cudaLimit limit)
cudaError_t cudaDeviceGetCacheConfig (enum cudaFuncCache *pCacheConfig)
cudaError_t cudaDeviceSetCacheConfig (enum cudaFuncCache cacheConfig)
cudaError_t cudaThreadExit (void)
cudaError_t cudaThreadSynchronize (void)
cudaError_t cudaDriverGetVersion (int *driverVersion)
cudaError_t cudaRuntimeGetVersion (int *runtimeVersion)
cudaError_t cudaGetExportTable (const void **ppExportTable, const cudaUUID_t *pExportTableId)

Detailed Description

implements an up-to-date CUDA Runtime API

Author:
Andrew Kerr <arkerr@gatech.edu>
Date:
11 Dec 2009

Define Documentation

#define cudaDeviceBlockingSync   4

Device flag - Use blocking synchronization.

#define cudaDeviceLmemResizeToMax   16

Device flag - Keep local memory allocation after launch.

#define cudaDeviceMapHost   8

Device flag - Support mapped pinned allocations.

#define cudaDeviceMask   0x1f

Device flags mask.

#define cudaDeviceScheduleAuto   0

Device flag - Automatic scheduling.

#define cudaDeviceScheduleSpin   1

Device flag - Spin default scheduling.

#define cudaDeviceScheduleYield   2

Device flag - Yield default scheduling.

#define cudaEventBlockingSync   1

Event uses blocking synchronization.

#define cudaEventDefault   0

Default event flag.

#define cudaHostAllocDefault   0

Default page-locked allocation flag.

#define cudaHostAllocMapped   2

Map allocation into device space.

#define cudaHostAllocPortable   1

Pinned memory accessible by all CUDA contexts.

#define cudaHostAllocWriteCombined   4

Write-combined memory.

#define fatCheckJitForGpu (   binary,
  gpuName,
  ptx 
)    fatCheckJitForGpuWithPolicy(binary,__cudaFatAvoidPTX,gpuName,ptx)
#define fatGetCubinForGpu (   binary,
  gpuName,
  cubin,
  dbgInfoFile 
)    fatGetCubinForGpuWithPolicy(binary,__cudaFatAvoidPTX,gpuName,cubin,dbgInfoFile)

Typedef Documentation

typedef int cudaEvent_t
typedef int cudaStream_t
typedef struct CUuuid_st cudaUUID_t
typedef struct dim3 dim3
typedef unsigned int GLuint

Enumeration Type Documentation

Enumerator:
cudaChannelFormatKindSigned 
cudaChannelFormatKindUnsigned 
cudaChannelFormatKindFloat 
cudaChannelFormatKindNone 
cudaChannelFormatKindSigned 
cudaChannelFormatKindUnsigned 
cudaChannelFormatKindFloat 
cudaChannelFormatKindNone 
Enumerator:
cudaComputeModeDefault 
cudaComputeModeExclusive 
cudaComputeModeProhibited 
cudaComputeModeExclusiveProcess 
cudaComputeModeDefault 
cudaComputeModeExclusive 
cudaComputeModeProhibited 
enum cudaError
Enumerator:
cudaSuccess 
cudaErrorMissingConfiguration 
cudaErrorMemoryAllocation 
cudaErrorInitializationError 
cudaErrorLaunchFailure 
cudaErrorPriorLaunchFailure 
cudaErrorLaunchTimeout 
cudaErrorLaunchOutOfResources 
cudaErrorInvalidDeviceFunction 
cudaErrorInvalidConfiguration 
cudaErrorInvalidDevice 
cudaErrorInvalidValue 
cudaErrorInvalidPitchValue 
cudaErrorInvalidSymbol 
cudaErrorMapBufferObjectFailed 
cudaErrorUnmapBufferObjectFailed 
cudaErrorInvalidHostPointer 
cudaErrorInvalidDevicePointer 
cudaErrorInvalidTexture 
cudaErrorInvalidTextureBinding 
cudaErrorInvalidChannelDescriptor 
cudaErrorInvalidMemcpyDirection 
cudaErrorAddressOfConstant 
cudaErrorTextureFetchFailed 
cudaErrorTextureNotBound 
cudaErrorSynchronizationError 
cudaErrorInvalidFilterSetting 
cudaErrorInvalidNormSetting 
cudaErrorMixedDeviceExecution 
cudaErrorCudartUnloading 
cudaErrorUnknown 
cudaErrorNotYetImplemented 
cudaErrorMemoryValueTooLarge 
cudaErrorInvalidResourceHandle 
cudaErrorNotReady 
cudaErrorInsufficientDriver 
cudaErrorSetOnActiveProcess 
cudaErrorInvalidSurface 
cudaErrorNoDevice 
cudaErrorECCUncorrectable 
cudaErrorSharedObjectSymbolNotFound 
cudaErrorSharedObjectInitFailed 
cudaErrorUnsupportedLimit 
cudaErrorDuplicateVariableName 
cudaErrorDuplicateTextureName 
cudaErrorDuplicateSurfaceName 
cudaErrorDevicesUnavailable 
cudaErrorInvalidKernelImage 
cudaErrorNoKernelImageForDevice 
cudaErrorIncompatibleDriverContext 
cudaErrorPeerAccessAlreadyEnabled 
cudaErrorPeerAccessNotEnabled 
cudaErrorDeviceAlreadyInUse 
cudaErrorProfilerDisabled 
cudaErrorProfilerNotInitialized 
cudaErrorProfilerAlreadyStarted 
cudaErrorProfilerAlreadyStopped 
cudaErrorAssert 
cudaErrorTooManyPeers 
cudaErrorHostMemoryAlreadyRegistered 
cudaErrorHostMemoryNotRegistered 
cudaErrorStartupFailure 
cudaErrorApiFailureBase 
cudaSuccess 

No errors.

cudaErrorMissingConfiguration 

Missing configuration error.

cudaErrorMemoryAllocation 

Memory allocation error.

cudaErrorInitializationError 

Initialization error.

cudaErrorLaunchFailure 

Launch failure.

cudaErrorPriorLaunchFailure 

Prior launch failure.

cudaErrorLaunchTimeout 

Launch timeout error.

cudaErrorLaunchOutOfResources 

Launch out of resources error.

cudaErrorInvalidDeviceFunction 

Invalid device function.

cudaErrorInvalidConfiguration 

Invalid configuration.

cudaErrorInvalidDevice 

Invalid device.

cudaErrorInvalidValue 

Invalid value.

cudaErrorInvalidPitchValue 

Invalid pitch value.

cudaErrorInvalidSymbol 

Invalid symbol.

cudaErrorMapBufferObjectFailed 

Map buffer object failed.

cudaErrorUnmapBufferObjectFailed 

Unmap buffer object failed.

cudaErrorInvalidHostPointer 

Invalid host pointer.

cudaErrorInvalidDevicePointer 

Invalid device pointer.

cudaErrorInvalidTexture 

Invalid texture.

cudaErrorInvalidTextureBinding 

Invalid texture binding.

cudaErrorInvalidChannelDescriptor 

Invalid channel descriptor.

cudaErrorInvalidMemcpyDirection 

Invalid memcpy direction.

cudaErrorAddressOfConstant 

Address of constant error.

cudaErrorTextureFetchFailed 

Texture fetch failed.

cudaErrorTextureNotBound 

Texture not bound error.

cudaErrorSynchronizationError 

Synchronization error.

cudaErrorInvalidFilterSetting 

Invalid filter setting.

cudaErrorInvalidNormSetting 

Invalid norm setting.

cudaErrorMixedDeviceExecution 

Mixed device execution.

cudaErrorCudartUnloading 

CUDA runtime unloading.

cudaErrorUnknown 

Unknown error condition.

cudaErrorNotYetImplemented 

Function not yet implemented.

cudaErrorMemoryValueTooLarge 

Memory value too large.

cudaErrorInvalidResourceHandle 

Invalid resource handle.

cudaErrorNotReady 

Not ready error.

cudaErrorInsufficientDriver 

CUDA runtime is newer than driver.

cudaErrorSetOnActiveProcess 

Set on active process error.

cudaErrorNoDevice 

No available CUDA device.

cudaErrorECCUncorrectable 

Uncorrectable ECC error detected.

cudaErrorStartupFailure 

Startup failure.

cudaErrorApiFailureBase 

API failure base.

Enumerator:
cudaFuncCachePreferNone 
cudaFuncCachePreferShared 
cudaFuncCachePreferL1 
cudaFuncCachePreferEqual 
cudaFuncCachePreferNone 

Default function cache configuration, no preference.

cudaFuncCachePreferShared 

Prefer larger shared memory and smaller L1 cache.

cudaFuncCachePreferL1 

Prefer larger L1 cache and smaller shared memory.

enum cudaLimit
Enumerator:
cudaLimitStackSize 
cudaLimitPrintfFifoSize 
cudaLimitMallocHeapSize 
cudaLimitStackSize 
cudaLimitPrintfFifoSize 
cudaLimitMallocHeapSize 
Enumerator:
cudaMemcpyHostToHost 
cudaMemcpyHostToDevice 
cudaMemcpyDeviceToHost 
cudaMemcpyDeviceToDevice 
cudaMemcpyDefault 
cudaMemcpyHostToHost 
cudaMemcpyHostToDevice 
cudaMemcpyDeviceToHost 
cudaMemcpyDeviceToDevice 
Enumerator:
cudaAddressModeWrap 
cudaAddressModeClamp 
cudaAddressModeMirror 
cudaAddressModeBorder 
cudaAddressModeWrap 
cudaAddressModeClamp 
Enumerator:
cudaFilterModePoint 
cudaFilterModeLinear 
cudaFilterModePoint 
cudaFilterModeLinear 
Enumerator:
cudaReadModeElementType 
cudaReadModeNormalizedFloat 
cudaReadModeElementType 
cudaReadModeNormalizedFloat 

Function Documentation

void** __cudaRegisterFatBinary ( void *  fatCubin)
void __cudaRegisterFunction ( void **  fatCubinHandle,
const char *  hostFun,
char *  deviceFun,
const char *  deviceName,
int  thread_limit,
uint3 tid,
uint3 bid,
dim3 bDim,
dim3 gDim,
int *  wSize 
)
void __cudaRegisterShared ( void **  fatCubinHandle,
void **  devicePtr 
)
void __cudaRegisterSharedVar ( void **  fatCubinHandle,
void **  devicePtr,
size_t  size,
size_t  alignment,
int  storage 
)
void __cudaRegisterTexture ( void **  fatCubinHandle,
const struct textureReference hostVar,
const void **  deviceAddress,
const char *  deviceName,
int  dim,
int  norm,
int  ext 
)
void __cudaRegisterVar ( void **  fatCubinHandle,
char *  hostVar,
char *  deviceAddress,
const char *  deviceName,
int  ext,
int  size,
int  constant,
int  global 
)
void __cudaUnregisterFatBinary ( void **  fatCubinHandle)
cudaError_t cudaBindTexture ( size_t offset,
const struct textureReference texref,
const void *  devPtr,
const struct cudaChannelFormatDesc desc,
size_t  size = UINT_MAX 
)
cudaError_t cudaBindTexture2D ( size_t offset,
const struct textureReference texref,
const void *  devPtr,
const struct cudaChannelFormatDesc desc,
size_t  width,
size_t  height,
size_t  pitch 
)
cudaError_t cudaBindTextureToArray ( const struct textureReference texref,
const struct cudaArray *  array,
const struct cudaChannelFormatDesc desc 
)
cudaError_t cudaChooseDevice ( int *  device,
const struct cudaDeviceProp prop 
)
cudaError_t cudaConfigureCall ( dim3  gridDim,
dim3  blockDim,
size_t  sharedMem = 0,
cudaStream_t  stream = 0 
)
struct cudaChannelFormatDesc cudaCreateChannelDesc ( int  x,
int  y,
int  z,
int  w,
enum cudaChannelFormatKind  f 
) [read]
cudaError_t cudaDeviceGetCacheConfig ( enum cudaFuncCache pCacheConfig)
cudaError_t cudaDeviceGetLimit ( size_t pValue,
enum cudaLimit  limit 
)
cudaError_t cudaDeviceReset ( void  )
cudaError_t cudaDeviceSetCacheConfig ( enum cudaFuncCache  cacheConfig)
cudaError_t cudaDeviceSetLimit ( enum cudaLimit  limit,
size_t  value 
)
cudaError_t cudaDeviceSynchronize ( void  )
cudaError_t cudaDriverGetVersion ( int *  driverVersion)
cudaError_t cudaEventCreate ( cudaEvent_t event)
cudaError_t cudaEventCreateWithFlags ( cudaEvent_t event,
int  flags 
)
cudaError_t cudaEventDestroy ( cudaEvent_t  event)
cudaError_t cudaEventElapsedTime ( float *  ms,
cudaEvent_t  start,
cudaEvent_t  end 
)
cudaError_t cudaEventQuery ( cudaEvent_t  event)
cudaError_t cudaEventRecord ( cudaEvent_t  event,
cudaStream_t  stream 
)
cudaError_t cudaEventSynchronize ( cudaEvent_t  event)
cudaError_t cudaFree ( void *  devPtr)
cudaError_t cudaFreeArray ( struct cudaArray *  array)
cudaError_t cudaFreeHost ( void *  ptr)
cudaError_t cudaFuncGetAttributes ( struct cudaFuncAttributes attr,
const char *  func 
)
cudaError_t cudaFuncSetCacheConfig ( const char *  func,
enum cudaFuncCache  cacheConfig 
)
cudaError_t cudaGetChannelDesc ( struct cudaChannelFormatDesc desc,
const struct cudaArray *  array 
)
cudaError_t cudaGetDevice ( int *  device)
cudaError_t cudaGetDeviceCount ( int *  count)
cudaError_t cudaGetDeviceProperties ( struct cudaDeviceProp prop,
int  device 
)
const char* cudaGetErrorString ( cudaError_t  error)
cudaError_t cudaGetExportTable ( const void **  ppExportTable,
const cudaUUID_t pExportTableId 
)
cudaError_t cudaGetLastError ( void  )
cudaError_t cudaGetSymbolAddress ( void **  devPtr,
const char *  symbol 
)
cudaError_t cudaGetSymbolSize ( size_t size,
const char *  symbol 
)
cudaError_t cudaGetTextureAlignmentOffset ( size_t offset,
const struct textureReference texref 
)
cudaError_t cudaGetTextureReference ( const struct textureReference **  texref,
const char *  symbol 
)
cudaError_t cudaGLMapBufferObject ( void **  devPtr,
GLuint  bufObj 
)
cudaError_t cudaGLMapBufferObjectAsync ( void **  devPtr,
GLuint  bufObj,
cudaStream_t  stream 
)
cudaError_t cudaGLRegisterBufferObject ( GLuint  bufObj)
cudaError_t cudaGLSetBufferObjectMapFlags ( GLuint  bufObj,
unsigned int  flags 
)
cudaError_t cudaGLSetGLDevice ( int  device)
cudaError_t cudaGLUnmapBufferObject ( GLuint  bufObj)
cudaError_t cudaGLUnmapBufferObjectAsync ( GLuint  bufObj,
cudaStream_t  stream 
)
cudaError_t cudaGLUnregisterBufferObject ( GLuint  bufObj)
cudaError_t cudaGraphicsGLRegisterBuffer ( struct cudaGraphicsResource **  resource,
GLuint  buffer,
unsigned int  flags 
)
cudaError_t cudaGraphicsGLRegisterImage ( struct cudaGraphicsResource **  resource,
GLuint  image,
int  target,
unsigned int  flags 
)
cudaError_t cudaGraphicsMapResources ( int  count,
struct cudaGraphicsResource **  resources,
cudaStream_t  stream = 0 
)
cudaError_t cudaGraphicsResourceGetMappedPointer ( void **  devPtr,
size_t size,
struct cudaGraphicsResource *  resource 
)
cudaError_t cudaGraphicsResourceSetMapFlags ( struct cudaGraphicsResource *  resource,
unsigned int  flags 
)
cudaError_t cudaGraphicsSubResourceGetMappedArray ( struct cudaArray **  arrayPtr,
struct cudaGraphicsResource *  resource,
unsigned int  arrayIndex,
unsigned int  mipLevel 
)
cudaError_t cudaGraphicsUnmapResources ( int  count,
struct cudaGraphicsResource **  resources,
cudaStream_t  stream = 0 
)
cudaError_t cudaGraphicsUnregisterResource ( struct cudaGraphicsResource *  resource)
cudaError_t cudaHostAlloc ( void **  pHost,
size_t  bytes,
unsigned int  flags 
)
cudaError_t cudaHostGetDevicePointer ( void **  pDevice,
void *  pHost,
unsigned int  flags 
)
cudaError_t cudaHostGetFlags ( unsigned int *  pFlags,
void *  pHost 
)
cudaError_t cudaHostRegister ( void *  pHost,
size_t  bytes,
unsigned int  flags 
)
cudaError_t cudaHostUnregister ( void *  pHost)
cudaError_t cudaLaunch ( const char *  entry)
cudaError_t cudaMalloc ( void **  devPtr,
size_t  size 
)
cudaError_t cudaMalloc3D ( struct cudaPitchedPtr pitchedDevPtr,
struct cudaExtent  extent 
)
cudaError_t cudaMalloc3DArray ( struct cudaArray **  arrayPtr,
const struct cudaChannelFormatDesc desc,
struct cudaExtent  extent 
)
cudaError_t cudaMallocArray ( struct cudaArray **  array,
const struct cudaChannelFormatDesc desc,
size_t  width,
size_t  height = 1 
)
cudaError_t cudaMallocHost ( void **  ptr,
size_t  size 
)
cudaError_t cudaMallocPitch ( void **  devPtr,
size_t pitch,
size_t  width,
size_t  height 
)
cudaError_t cudaMemcpy ( void *  dst,
const void *  src,
size_t  count,
enum cudaMemcpyKind  kind 
)
cudaError_t cudaMemcpy2D ( void *  dst,
size_t  dpitch,
const void *  src,
size_t  spitch,
size_t  width,
size_t  height,
enum cudaMemcpyKind  kind 
)
cudaError_t cudaMemcpy2DArrayToArray ( struct cudaArray *  dst,
size_t  wOffsetDst,
size_t  hOffsetDst,
const struct cudaArray *  src,
size_t  wOffsetSrc,
size_t  hOffsetSrc,
size_t  width,
size_t  height,
enum cudaMemcpyKind  kind = cudaMemcpyDeviceToDevice 
)
cudaError_t cudaMemcpy2DAsync ( void *  dst,
size_t  dpitch,
const void *  src,
size_t  spitch,
size_t  width,
size_t  height,
enum cudaMemcpyKind  kind,
cudaStream_t  stream 
)
cudaError_t cudaMemcpy2DFromArray ( void *  dst,
size_t  dpitch,
const struct cudaArray *  src,
size_t  wOffset,
size_t  hOffset,
size_t  width,
size_t  height,
enum cudaMemcpyKind  kind 
)
cudaError_t cudaMemcpy2DFromArrayAsync ( void *  dst,
size_t  dpitch,
const struct cudaArray *  src,
size_t  wOffset,
size_t  hOffset,
size_t  width,
size_t  height,
enum cudaMemcpyKind  kind,
cudaStream_t  stream 
)
cudaError_t cudaMemcpy2DToArray ( struct cudaArray *  dst,
size_t  wOffset,
size_t  hOffset,
const void *  src,
size_t  spitch,
size_t  width,
size_t  height,
enum cudaMemcpyKind  kind 
)
cudaError_t cudaMemcpy2DToArrayAsync ( struct cudaArray *  dst,
size_t  wOffset,
size_t  hOffset,
const void *  src,
size_t  spitch,
size_t  width,
size_t  height,
enum cudaMemcpyKind  kind,
cudaStream_t  stream 
)
cudaError_t cudaMemcpy3D ( const struct cudaMemcpy3DParms p)
cudaError_t cudaMemcpy3DAsync ( const struct cudaMemcpy3DParms p,
cudaStream_t  stream 
)
cudaError_t cudaMemcpyArrayToArray ( struct cudaArray *  dst,
size_t  wOffsetDst,
size_t  hOffsetDst,
const struct cudaArray *  src,
size_t  wOffsetSrc,
size_t  hOffsetSrc,
size_t  count,
enum cudaMemcpyKind  kind = cudaMemcpyDeviceToDevice 
)
cudaError_t cudaMemcpyAsync ( void *  dst,
const void *  src,
size_t  count,
enum cudaMemcpyKind  kind,
cudaStream_t  stream 
)
cudaError_t cudaMemcpyFromArray ( void *  dst,
const struct cudaArray *  src,
size_t  wOffset,
size_t  hOffset,
size_t  count,
enum cudaMemcpyKind  kind 
)
cudaError_t cudaMemcpyFromArrayAsync ( void *  dst,
const struct cudaArray *  src,
size_t  wOffset,
size_t  hOffset,
size_t  count,
enum cudaMemcpyKind  kind,
cudaStream_t  stream 
)
cudaError_t cudaMemcpyFromSymbol ( void *  dst,
const char *  symbol,
size_t  count,
size_t  offset = 0,
enum cudaMemcpyKind  kind = cudaMemcpyDeviceToHost 
)
cudaError_t cudaMemcpyFromSymbolAsync ( void *  dst,
const char *  symbol,
size_t  count,
size_t  offset,
enum cudaMemcpyKind  kind,
cudaStream_t  stream 
)
cudaError_t cudaMemcpyToArray ( struct cudaArray *  dst,
size_t  wOffset,
size_t  hOffset,
const void *  src,
size_t  count,
enum cudaMemcpyKind  kind 
)
cudaError_t cudaMemcpyToArrayAsync ( struct cudaArray *  dst,
size_t  wOffset,
size_t  hOffset,
const void *  src,
size_t  count,
enum cudaMemcpyKind  kind,
cudaStream_t  stream 
)
cudaError_t cudaMemcpyToSymbol ( const char *  symbol,
const void *  src,
size_t  count,
size_t  offset = 0,
enum cudaMemcpyKind  kind = cudaMemcpyHostToDevice 
)
cudaError_t cudaMemcpyToSymbolAsync ( const char *  symbol,
const void *  src,
size_t  count,
size_t  offset,
enum cudaMemcpyKind  kind,
cudaStream_t  stream 
)
cudaError_t cudaMemset ( void *  devPtr,
int  value,
size_t  count 
)
cudaError_t cudaMemset2D ( void *  devPtr,
size_t  pitch,
int  value,
size_t  width,
size_t  height 
)
cudaError_t cudaMemset3D ( struct cudaPitchedPtr  pitchedDevPtr,
int  value,
struct cudaExtent  extent 
)
cudaError_t cudaMemsetAsync ( void *  devPtr,
int  value,
size_t  count,
cudaStream_t  stream = 0 
)
cudaError_t cudaPeekAtLastError ( )
cudaError_t cudaRuntimeGetVersion ( int *  runtimeVersion)
cudaError_t cudaSetDevice ( int  device)
cudaError_t cudaSetDeviceFlags ( int  flags)
cudaError_t cudaSetDoubleForDevice ( double *  d)
cudaError_t cudaSetDoubleForHost ( double *  d)
cudaError_t cudaSetupArgument ( const void *  arg,
size_t  size,
size_t  offset 
)
cudaError_t cudaSetValidDevices ( int *  device_arr,
int  len 
)
cudaError_t cudaStreamCreate ( cudaStream_t pStream)
cudaError_t cudaStreamDestroy ( cudaStream_t  stream)
cudaError_t cudaStreamQuery ( cudaStream_t  stream)
cudaError_t cudaStreamSynchronize ( cudaStream_t  stream)
cudaError_t cudaStreamWaitEvent ( cudaStream_t  stream,
cudaEvent_t  event,
unsigned int  flags 
)
cudaError_t cudaThreadExit ( void  )
cudaError_t cudaThreadSynchronize ( void  )
cudaError_t cudaUnbindTexture ( const struct textureReference texref)
unsigned char fatCheckJitForGpuWithPolicy ( __cudaFatCudaBinary binary,
__cudaFatCompilationPolicy  policy,
char *  gpuName,
char **  ptx 
)
void fatFreeCubin ( char *  cubin,
char *  dbgInfoFile 
)
void fatGetCubinForGpuWithPolicy ( __cudaFatCudaBinary binary,
__cudaFatCompilationPolicy  policy,
char *  gpuName,
char **  cubin,
char **  dbgInfoFile 
)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines