12.07.2015 Views

NVIDIA CUDA

NVIDIA CUDA

NVIDIA CUDA

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

34 Module DocumentationReturns:Note:cudaSuccess, cudaErrorInvalidValue, cudaErrorInvalidPitchValue, cudaErrorInvalidDevicePointer, cudaErrorInvalidMemcpyDirectionSee also:Note that this function may also return error codes from previous, asynchronous launches.cudaMemcpy, cudaMemcpyToArray, cudaMemcpy2DToArray, cudaMemcpyFromArray, cudaMemcpy2DFromArray,cudaMemcpyArrayToArray, cudaMemcpy2DArrayToArray, cudaMemcpyToSymbol,cudaMemcpyFromSymbol, cudaMemcpyAsync, cudaMemcpy2DAsync, cudaMemcpyToArrayAsync, cudaMemcpy2DToArrayAsync,cudaMemcpyFromArrayAsync, cudaMemcpy2DFromArrayAsync, cudaMemcpy-ToSymbolAsync, cudaMemcpyFromSymbolAsync3.8.2.16 cudaError_t cudaMemcpy2DArrayToArray (struct cudaArray ∗ dst, size_t wOffsetDst, size_thOffsetDst, const struct cudaArray ∗ src, size_t wOffsetSrc, size_t hOffsetSrc, size_t width, size_theight, enum cudaMemcpyKind kind)Copies a matrix (height rows of width bytes each) from the <strong>CUDA</strong> array srcArray starting at the upper leftcorner (wOffsetSrc, hOffsetSrc) to the <strong>CUDA</strong> array dst starting at the upper left corner (wOffsetDst,hOffsetDst), where kind is one of cudaMemcpyHostToHost, cudaMemcpyHostToDevice, cudaMemcpyDevice-ToHost, or cudaMemcpyDeviceToDevice, and specifies the direction of the copy.Parameters:dst - Destination memory addresswOffsetDst - Destination starting X offsethOffsetDst - Destination starting Y offsetsrc - Source memory addresswOffsetSrc - Source starting X offsethOffsetSrc - Source starting Y offsetwidth - Width of matrix transfer (columns in bytes)height - Height of matrix transfer (rows)kind - Type of transferReturns:Note:See also:cudaSuccess, cudaErrorInvalidValue, cudaErrorInvalidMemcpyDirectionNote that this function may also return error codes from previous, asynchronous launches.cudaMemcpy, cudaMemcpy2D, cudaMemcpyToArray, cudaMemcpy2DToArray, cudaMemcpyFromArray, cudaMemcpy2DFromArray,cudaMemcpyArrayToArray, cudaMemcpyToSymbol, cudaMemcpyFromSymbol, cudaMemcpyAsync,cudaMemcpy2DAsync, cudaMemcpyToArrayAsync, cudaMemcpy2DToArrayAsync, cudaMemcpyFromArrayAsync,cudaMemcpy2DFromArrayAsync, cudaMemcpyToSymbolAsync, cudaMemcpyFromSymbolAsyncGenerated on Wed Apr 1 16:11:42 2009 for <strong>NVIDIA</strong> <strong>CUDA</strong> Library by Doxygen

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!