Function hip_sys::hiprt::hipHostMalloc

source ·
pub unsafe extern "C" fn hipHostMalloc(
    ptr: *mut *mut c_void,
    size: usize,
    flags: u32
) -> hipError_t
Expand description

@brief Allocate device accessible page locked host memory

@param[out] ptr Pointer to the allocated host pinned memory @param[in] size Requested memory size @param[in] flags Type of host memory allocation

If size is 0, no memory is allocated, *ptr returns nullptr, and hipSuccess is returned.

@return #hipSuccess, #hipErrorOutOfMemory

@see hipSetDeviceFlags, hipHostFree