Function cuLibraryGetGlobal

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

\brief Returns a global device pointer

Returns in \p *dptr and \p *bytes the base pointer and size of the global with name \p name for the requested library \p library and the current context. If no global for the requested name \p name exists, the call 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 for the requested context \param bytes - Returned global size in bytes \param library - Library to retrieve global from \param name - Name of global to retrieve

\return ::CUDA_SUCCESS, ::CUDA_ERROR_DEINITIALIZED, ::CUDA_ERROR_NOT_INITIALIZED, ::CUDA_ERROR_INVALID_VALUE, ::CUDA_ERROR_INVALID_HANDLE, ::CUDA_ERROR_NOT_FOUND, ::CUDA_ERROR_INVALID_CONTEXT, ::CUDA_ERROR_CONTEXT_IS_DESTROYED

\sa ::cuLibraryLoadData, ::cuLibraryLoadFromFile, ::cuLibraryUnload, ::cuLibraryGetModule, cuModuleGetGlobal