C++ API Routines
[CUDA Runtime API]

C++-style interface built on top of CUDA runtime API. More...


Functions

template<class T , int dim>
cudaError_t cudaBindSurfaceToArray (const struct surface< T, dim > &surf, const struct cudaArray *array)
 [C++ API] Binds an array to a surface
template<class T , int dim>
cudaError_t cudaBindSurfaceToArray (const struct surface< T, dim > &surf, const struct cudaArray *array, const struct cudaChannelFormatDesc &desc)
 [C++ API] Binds an array to a surface
template<class T , int dim, enum cudaTextureReadMode readMode>
cudaError_t cudaBindTexture (size_t *offset, const struct texture< T, dim, readMode > &tex, const void *devPtr, size_t size=UINT_MAX)
 [C++ API] Binds a memory area to a texture
template<class T , int dim, enum cudaTextureReadMode readMode>
cudaError_t cudaBindTexture (size_t *offset, const struct texture< T, dim, readMode > &tex, const void *devPtr, const struct cudaChannelFormatDesc &desc, size_t size=UINT_MAX)
 [C++ API] Binds a memory area to a texture
template<class T , int dim, enum cudaTextureReadMode readMode>
cudaError_t cudaBindTexture2D (size_t *offset, const struct texture< T, dim, readMode > &tex, const void *devPtr, size_t width, size_t height, size_t pitch)
 [C++ API] Binds a 2D memory area to a texture
template<class T , int dim, enum cudaTextureReadMode readMode>
cudaError_t cudaBindTexture2D (size_t *offset, const struct texture< T, dim, readMode > &tex, const void *devPtr, const struct cudaChannelFormatDesc &desc, size_t width, size_t height, size_t pitch)
 [C++ API] Binds a 2D memory area to a texture
template<class T , int dim, enum cudaTextureReadMode readMode>
cudaError_t cudaBindTextureToArray (const struct texture< T, dim, readMode > &tex, const struct cudaArray *array)
 [C++ API] Binds an array to a texture
template<class T , int dim, enum cudaTextureReadMode readMode>
cudaError_t cudaBindTextureToArray (const struct texture< T, dim, readMode > &tex, const struct cudaArray *array, const struct cudaChannelFormatDesc &desc)
 [C++ API] Binds an array to a texture
template<class T >
cudaChannelFormatDesc cudaCreateChannelDesc (void)
 [C++ API] Returns a channel descriptor using the specified format
cudaError_t cudaEventCreate (cudaEvent_t *event, unsigned int flags)
 [C++ API] Creates an event object with the specified flags
template<class T >
cudaError_t cudaFuncGetAttributes (struct cudaFuncAttributes *attr, T *entry)
 [C++ API] Find out attributes for a given function
template<class T >
cudaError_t cudaFuncSetCacheConfig (T *func, enum cudaFuncCache cacheConfig)
 Sets the preferred cache configuration for a device function.
template<class T >
cudaError_t cudaGetSymbolAddress (void **devPtr, const T &symbol)
 [C++ API] Finds the address associated with a CUDA symbol
template<class T >
cudaError_t cudaGetSymbolSize (size_t *size, const T &symbol)
 [C++ API] Finds the size of the object associated with a CUDA symbol
template<class T , int dim, enum cudaTextureReadMode readMode>
cudaError_t cudaGetTextureAlignmentOffset (size_t *offset, const struct texture< T, dim, readMode > &tex)
 [C++ API] Get the alignment offset of a texture
template<class T >
cudaError_t cudaLaunch (T *entry)
 [C++ API] Launches a device function
cudaError_t cudaMallocHost (void **ptr, size_t size, unsigned int flags)
 [C++ API] Allocates page-locked memory on the host
template<class T >
cudaError_t cudaSetupArgument (T arg, size_t offset)
 [C++ API] Configure a device launch
template<class T , int dim, enum cudaTextureReadMode readMode>
cudaError_t cudaUnbindTexture (const struct texture< T, dim, readMode > &tex)
 [C++ API] Unbinds a texture


Detailed Description

This section describes the C++ high level API functions of the CUDA runtime application programming interface. To use these functions, your application needs to be compiled with the nvcc compiler.

Generated by Doxygen for NVIDIA CUDA Library  NVIDIA