Function hip_sys::hiprt::hipMallocHost

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

@brief Allocate pinned host memory [Deprecated]

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

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

@return #hipSuccess, #hipErrorOutOfMemory

@deprecated use hipHostMalloc() instead