pub unsafe extern "C" fn hipHostAlloc(
ptr: *mut *mut c_void,
size: usize,
flags: c_uint,
) -> hipError_t
Expand description
@brief Allocate device accessible page locked host memory [Deprecated]
@param[out] ptr Pointer to the allocated host pinned memory @param[in] size Requested memory size in bytes @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
@warning This API is deprecated, use hipHostMalloc() instead