cubecl_hip_sys

Function hipMemcpy2DToArrayAsync

Source
pub unsafe extern "C" fn hipMemcpy2DToArrayAsync(
    dst: hipArray_t,
    wOffset: usize,
    hOffset: usize,
    src: *const c_void,
    spitch: usize,
    width: usize,
    height: usize,
    kind: hipMemcpyKind,
    stream: hipStream_t,
) -> hipError_t
Expand description

@brief Copies data between host and device.

@param[in] dst Destination memory address @param[in] wOffset Destination starting X offset @param[in] hOffset Destination starting Y offset @param[in] src Source memory address @param[in] spitch Pitch of source memory @param[in] width Width of matrix transfer (columns in bytes) @param[in] height Height of matrix transfer (rows) @param[in] kind Type of transfer @param[in] stream Accelerator view which the copy is being enqueued @return #hipSuccess, #hipErrorInvalidValue, #hipErrorInvalidPitchValue, #hipErrorInvalidDevicePointer, #hipErrorInvalidMemcpyDirection

@see hipMemcpy, hipMemcpyToArray, hipMemcpy2D, hipMemcpyFromArray, hipMemcpyToSymbol, hipMemcpyAsync