cudaError_t cudaGetSymbolAddress ( void **  devPtr,
const char *  symbol 
)

Returns in *devPtr the address of symbol symbol on the device. symbol can either be a variable that resides in global memory space, or it can be a character string, naming a variable that resides in global memory space. If symbol cannot be found, or if symbol is not declared in the global memory space, *devPtr is unchanged and the error cudaErrorInvalidSymbol is returned.

Parameters:
devPtr - Return device pointer associated with symbol
symbol - Global variable or string symbol to search for
Returns:
cudaSuccess, cudaErrorInvalidSymbol, cudaErrorAddressOfConstant
Note:
Note that this function may also return error codes from previous, asynchronous launches.
See also:
cudaGetSymbolAddress (C++ API) cudaGetSymbolSize (C API)


Generated by Doxygen for NVIDIA CUDA Library  NVIDIA