Function cuModuleGetGlobal_v2

Source
pub unsafe extern "C" fn cuModuleGetGlobal_v2(
    dptr: *mut CUdeviceptr,
    bytes: *mut usize,
    hmod: CUmodule,
    name: *const c_char,
) -> CUresult
Expand description

\brief Returns a global pointer from a module

Returns in \p *dptr and \p *bytes the base pointer and size of the global of name \p name located in module \p hmod. If no variable of that name exists, ::cuModuleGetGlobal() returns ::CUDA_ERROR_NOT_FOUND. One of the parameters \p dptr or \p bytes (not both) can be NULL in which case it is ignored.

\param dptr - Returned global device pointer \param bytes - Returned global size in bytes \param hmod - Module to retrieve global from \param name - Name of global to retrieve

\return ::CUDA_SUCCESS, ::CUDA_ERROR_DEINITIALIZED, ::CUDA_ERROR_NOT_INITIALIZED, ::CUDA_ERROR_INVALID_CONTEXT, ::CUDA_ERROR_INVALID_VALUE, ::CUDA_ERROR_NOT_FOUND \notefnerr

\sa ::cuModuleGetFunction, ::cuModuleGetTexRef, ::cuModuleLoad, ::cuModuleLoadData, ::cuModuleLoadDataEx, ::cuModuleLoadFatBinary, ::cuModuleUnload, ::cudaGetSymbolAddress, ::cudaGetSymbolSize