12.07.2015 Views

NVIDIA CUDA

NVIDIA CUDA

NVIDIA CUDA

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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

3.14 C++ API Routines 85See also:cudaCreateChannelDesc (C++ API), cudaGetChannelDesc, cudaGetTextureReference, cudaBindTexture (C++API), cudaBindTexture (C++ API, inherited channel descriptor), cudaBindTexture2D (C++ API), cudaBind-TextureToArray (C API), cudaBindTextureToArray (C++ API, inherited channel descriptor), cudaUnbindTexture(C++ API), cudaGetTextureAlignmentOffset (C++ API)3.14.2.6 template cudaChannelFormatDesc cudaCreateChannelDesc (void)Returns a channel descriptor with format f and number of bits of each component x, y, z, and w. The cudaChannelFormatDescis defined as:struct cudaChannelFormatDesc {int x, y, z, w;enum cudaChannelFormatKind f;};where cudaChannelFormatKind is one of cudaChannelFormatKindSigned, cudaChannelFormatKindUnsigned, or cudaChannelFormatKindFloat.Returns:See also:Channel descriptor with format fcudaCreateChannelDesc (Low level), cudaGetChannelDesc, cudaGetTextureReference, cudaBindTexture (Highlevel), cudaBindTexture (High level, inherited channel descriptor), cudaBindTexture2D (High level), cudaBind-TextureToArray (High level), cudaBindTextureToArray (High level, inherited channel descriptor), cudaUnbind-Texture (High level), cudaGetTextureAlignmentOffset (High level)3.14.2.7 template cudaError_t cudaGetSymbolAddress (void ∗∗ devPtr, const T & symbol)Returns in ∗devPtr the address of symbol symbol on the device. symbol can either be a variable that residesin global memory space, or it can be a character string, naming a variable that resides in global memory space. Ifsymbol cannot be found, or if symbol is not declared in the global memory space, ∗devPtr is unchanged and theerror cudaErrorInvalidSymbol is returned.Parameters:devPtr - Return device pointer associated with symbolsymbol - Global variable or string symbol to search forReturns:Note:See also:cudaSuccess, cudaErrorInvalidSymbol, cudaErrorAddressOfConstantNote that this function may also return error codes from previous, asynchronous launches.cudaGetSymbolAddress (C API) cudaGetSymbolSize (C++ API)Generated 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!