cubecl_hip_sys

Function hipMemcpyPeer

Source
pub unsafe extern "C" fn hipMemcpyPeer(
    dst: *mut c_void,
    dstDeviceId: c_int,
    src: *const c_void,
    srcDeviceId: c_int,
    sizeBytes: usize,
) -> hipError_t
Expand description

@brief Copies memory from one device to memory on another device.

@param [out] dst - Destination device pointer. @param [in] dstDeviceId - Destination device @param [in] src - Source device pointer @param [in] srcDeviceId - Source device @param [in] sizeBytes - Size of memory copy in bytes

@returns #hipSuccess, #hipErrorInvalidValue, #hipErrorInvalidDevice