12.07.2015 Views

NVIDIA CUDA

NVIDIA CUDA

NVIDIA CUDA

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

3.14 C++ API Routines 813.14 C++ API RoutinesC++-style interface built on top of <strong>CUDA</strong> runtime API.Functions• templatecudaError_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• templatecudaError_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• templatecudaError_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• templatecudaError_t cudaBindTextureToArray (const struct texture< T, dim, readMode > &tex, const struct cudaArray∗array)[C++ API] Binds an array to a texture• templatecudaError_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• templatecudaChannelFormatDesc cudaCreateChannelDesc (void)[C++ API] Returns a channel descriptor using the specified format• templatecudaError_t cudaGetSymbolAddress (void ∗∗devPtr, const T &symbol)[C++ API] Finds the address associated with a <strong>CUDA</strong> symbol• templatecudaError_t cudaGetSymbolSize (size_t ∗size, const T &symbol)[C++ API] Finds the size of the object associated with a <strong>CUDA</strong> symbol• templatecudaError_t cudaGetTextureAlignmentOffset (size_t ∗offset, const struct texture< T, dim, readMode > &tex)[C++ API] Get the alignment offset of a texture• templatecudaError_t cudaLaunch (T ∗entry)[C++ API] Launches a device functionGenerated on Wed Apr 1 16:11:42 2009 for <strong>NVIDIA</strong> <strong>CUDA</strong> Library by Doxygen

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!