Function rcudnn_sys::cudaMemcpyToArray [] [src]

pub unsafe extern "C" fn cudaMemcpyToArray(
    dst: cudaArray_t,
    wOffset: usize,
    hOffset: usize,
    src: *const c_void,
    count: usize,
    kind: cudaMemcpyKind
) -> cudaError_t

\brief Copies data between host and device

Copies \p count bytes from the memory area pointed to by \p src to the CUDA array \p dst starting at the upper left corner (\p wOffset, \p hOffset), where \p kind specifies the direction of the copy, and must be one of ::cudaMemcpyHostToHost, ::cudaMemcpyHostToDevice, ::cudaMemcpyDeviceToHost, ::cudaMemcpyDeviceToDevice, or ::cudaMemcpyDefault. Passing ::cudaMemcpyDefault is recommended, in which case the type of transfer is inferred from the pointer values. However, ::cudaMemcpyDefault is only allowed on systems that support unified virtual addressing.

\param dst - Destination memory address \param wOffset - Destination starting X offset \param hOffset - Destination starting Y offset \param src - Source memory address \param count - Size in bytes to copy \param kind - Type of transfer

\return ::cudaSuccess, ::cudaErrorInvalidValue, ::cudaErrorInvalidDevicePointer, ::cudaErrorInvalidMemcpyDirection \notefnerr \note_sync

\sa ::cudaMemcpy, ::cudaMemcpy2D, ::cudaMemcpy2DToArray, ::cudaMemcpyFromArray, ::cudaMemcpy2DFromArray, ::cudaMemcpyArrayToArray, ::cudaMemcpy2DArrayToArray, ::cudaMemcpyToSymbol, ::cudaMemcpyFromSymbol, ::cudaMemcpyAsync, ::cudaMemcpy2DAsync, ::cudaMemcpyToArrayAsync, ::cudaMemcpy2DToArrayAsync, ::cudaMemcpyFromArrayAsync, ::cudaMemcpy2DFromArrayAsync, ::cudaMemcpyToSymbolAsync, ::cudaMemcpyFromSymbolAsync