cubecl_hip_sys

Function hipMemcpyWithStream

Source
pub unsafe extern "C" fn hipMemcpyWithStream(
    dst: *mut c_void,
    src: *const c_void,
    sizeBytes: usize,
    kind: hipMemcpyKind,
    stream: hipStream_t,
) -> hipError_t
Expand description

@brief Memory copy on the stream. It allows single or multiple devices to do memory copy on single or multiple streams.

@param[out] dst Data being copy to @param[in] src Data being copy from @param[in] sizeBytes Data size in bytes @param[in] kind Kind of transfer @param[in] stream Valid stream @return #hipSuccess, #hipErrorInvalidValue, #hipErrorUnknown, #hipErrorContextIsDestroyed

@see hipMemcpy, hipStreamCreate, hipStreamSynchronize, hipStreamDestroy, hipSetDevice, hipLaunchKernelGGL