Function hip_sys::hiprt::hipMemcpyPeerAsync
source · pub unsafe extern "C" fn hipMemcpyPeerAsync(
dst: *mut c_void,
dstDeviceId: i32,
src: *const c_void,
srcDevice: i32,
sizeBytes: usize,
stream: *mut ihipStream_t
) -> hipError_tExpand description
@brief Copies memory from one device to memory on another device.
@param [out] dst - Destination device pointer. @param [in] dstDevice - Destination device @param [in] src - Source device pointer @param [in] srcDevice - Source device @param [in] sizeBytes - Size of memory copy in bytes @param [in] stream - Stream identifier
@returns #hipSuccess, #hipErrorInvalidValue, #hipErrorInvalidDevice