pub unsafe extern "C" fn hipModuleGetGlobal(
dptr: *mut hipDeviceptr_t,
bytes: *mut usize,
hmod: hipModule_t,
name: *const c_char,
) -> hipError_t
Expand description
@brief Returns a global pointer from a module. Returns in *dptr and *bytes the pointer and size of the global of name name located in module hmod. If no variable of that name exists, it returns hipErrorNotFound. Both parameters dptr and bytes are optional. If one of them is NULL, it is ignored and hipSuccess is returned.
@param[out] dptr Returns global device pointer @param[out] bytes Returns global size in bytes @param[in] hmod Module to retrieve global from @param[in] name Name of global to retrieve
@return #hipSuccess, #hipErrorInvalidValue, #hipErrorNotFound, #hipErrorInvalidContext