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.

86 Module Documentation3.14.2.8 template cudaError_t cudaGetSymbolSize (size_t ∗ size, const T & symbol)Returns in ∗size the size of symbol symbol. symbol can either be a variable that resides in global or constantmemory space, or it can be a character string, naming a variable that resides in global or constant memory space. Ifsymbol cannot be found, or if symbol is not declared in global or constant memory space, ∗size is unchangedand the error cudaErrorInvalidSymbol is returned.Parameters:size - Size of object associated with symbolsymbol - Global variable or string symbol to find size ofReturns:Note:See also:cudaSuccess, cudaErrorInvalidSymbolNote that this function may also return error codes from previous, asynchronous launches.cudaGetSymbolAddress (C++ API) cudaGetSymbolSize (C API)3.14.2.9 template cudaError_tcudaGetTextureAlignmentOffset (size_t ∗ offset, const struct texture< T, dim, readMode > & tex)Returns in ∗offset the offset that was returned when texture reference tex was bound.Parameters:offset - Offset of texture reference in bytestex - Texture to get offset ofReturns:Note:See also:cudaSuccess, cudaErrorInvalidTexture, cudaErrorInvalidTextureBindingNote that this function may also return error codes from previous, asynchronous launches.cudaCreateChannelDesc (C++ API), cudaGetChannelDesc, cudaGetTextureReference, cudaBindTexture (C++API), cudaBindTexture (C++ API, inherited channel descriptor), cudaBindTexture2D (C++ API), cudaBindTextureToArray(C++ API), cudaBindTextureToArray (C++ API, inherited channel descriptor), cudaUnbindTexture(C++ API), cudaGetTextureAlignmentOffset (C API)3.14.2.10 template cudaError_t cudaLaunch (T ∗ entry)Launches the function entry on the device. entry can either be a function that executes on the device, or it canbe a character string, naming a function that executes on the device. entry must be declared as a __global__function. cudaLaunch() must be preceded by a call to cudaConfigureCall() since it pops the data that was pushed bycudaConfigureCall() from the execution stack.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!