Function hip_sys::hiprt::hipMallocManaged
source · pub unsafe extern "C" fn hipMallocManaged(
dev_ptr: *mut *mut c_void,
size: usize,
flags: u32
) -> hipError_tExpand description
@addtogroup MemoryM Managed Memory @{ @ingroup Memory This section describes the managed memory management functions of HIP runtime API.
/ /** @brief Allocates memory that will be automatically managed by HIP.
@param [out] dev_ptr - pointer to allocated device memory @param [in] size - requested allocation size in bytes @param [in] flags - must be either hipMemAttachGlobal or hipMemAttachHost (defaults to hipMemAttachGlobal)
@returns #hipSuccess, #hipErrorMemoryAllocation, #hipErrorNotSupported, #hipErrorInvalidValue