pub unsafe extern "C" fn cuLibraryGetManaged(
dptr: *mut CUdeviceptr,
bytes: *mut usize,
library: CUlibrary,
name: *const c_char,
) -> CUresult
Expand description
\brief Returns a pointer to managed memory
Returns in \p *dptr and \p *bytes the base pointer and size of the managed memory with name \p name for the requested library \p library. If no managed memory with 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. Note that managed memory for library \p library is shared across devices and is registered when the library is loaded into atleast one context.
\param dptr - Returned pointer to the managed memory \param bytes - Returned memory size in bytes \param library - Library to retrieve managed memory from \param name - Name of managed memory to retrieve
\return ::CUDA_SUCCESS, ::CUDA_ERROR_DEINITIALIZED, ::CUDA_ERROR_NOT_INITIALIZED, ::CUDA_ERROR_INVALID_VALUE, ::CUDA_ERROR_INVALID_HANDLE, ::CUDA_ERROR_NOT_FOUND
\sa ::cuLibraryLoadData, ::cuLibraryLoadFromFile, ::cuLibraryUnload