CUresult cuModuleGetGlobal ( CUdeviceptr ret_dptr,
unsigned int *  ret_bytes,
CUmodule  mod,
const char *  name 
)

Returns in *ret_dptr and *ret_bytes the base pointer and size of the global of name name located in module mod. If no variable of that name exists, cuModuleGetGlobal() returns CUDA_ERROR_NOT_FOUND. Both parameters ret_dptr and ret_bytes are optional. If one of them is NULL, it is ignored.

Parameters:
ret_dptr - Returned global device pointer
ret_bytes - Returned global size in bytes
mod - Module to retrieve function from
name - Name of global to retrieve
Returns:
CUDA_SUCCESS, CUDA_ERROR_DEINITIALIZED, CUDA_ERROR_NOT_INITIALIZED, CUDA_ERROR_INVALID_CONTEXT, CUDA_ERROR_INVALID_VALUE, CUDA_ERROR_NOT_FOUND
Note:
Note that this function may also return error codes from previous, asynchronous launches.
See also:
cuModuleGetFunction, cuModuleGetTexRef, cuModuleLoad, cuModuleLoadData, cuModuleLoadDataEx, cuModuleLoadFatBinary, cuModuleUnload


Generated by Doxygen on Mon Mar 30 23:16:12 2009 for NVIDIA CUDA Library  NVIDIA