pub unsafe extern "C" fn cudaLibraryGetGlobal(
dptr: *mut *mut c_void,
bytes: *mut size_t,
library: cudaLibrary_t,
name: *const c_char,
) -> cudaError_tExpand description
Returns a global device pointer.
Returns in *dptr and *bytes the base pointer and size of the global with name name for the requested library library and the current device. If no global for the requested name name exists, the call returns cudaError_t::CUDA_ERROR_NOT_FOUND. One of the parameters dptr or bytes (not both) can be NULL in which case it is ignored. The returned dptr cannot be passed to the Symbol APIs such as cudaMemcpyToSymbol, cudaMemcpyFromSymbol, cudaGetSymbolAddress, or cudaGetSymbolSize.
§Parameters
dptr: Returned global device pointer for the requested library.bytes: Returned global size in bytes.library: Library to retrieve global from.name: Name of global to retrieve.
§Return value
cudaError_t::CUDA_SUCCESScudaError_t::CUDA_ERROR_DEINITIALIZEDcudaError_t::CUDA_ERROR_NOT_INITIALIZEDcudaError_t::CUDA_ERROR_INVALID_VALUEcudaError_t::CUDA_ERROR_INVALID_HANDLEcudaError_t::CUDA_ERROR_NOT_FOUNDcudaError_t::CUDA_ERROR_INVALID_CONTEXTcudaError_t::CUDA_ERROR_CONTEXT_IS_DESTROYED
See also: cudaLibraryLoadData, cudaLibraryLoadFromFile, cudaLibraryUnload, cudaLibraryGetManaged, cuLibraryGetGlobal.