|
cudaError_t cudaMemcpyArrayToArray |
( |
struct cudaArray * |
dst, |
|
|
size_t |
wOffsetDst, |
|
|
size_t |
hOffsetDst, |
|
|
const struct cudaArray * |
src, |
|
|
size_t |
wOffsetSrc, |
|
|
size_t |
hOffsetSrc, |
|
|
size_t |
count, |
|
|
enum cudaMemcpyKind |
kind = cudaMemcpyDeviceToDevice | |
|
) |
| | |
Copies count bytes from the CUDA array src starting at the upper left corner (wOffsetSrc , hOffsetSrc ) to the CUDA array dst starting at the upper left corner (wOffsetDst , hOffsetDst ) where kind is one of cudaMemcpyHostToHost, cudaMemcpyHostToDevice, cudaMemcpyDeviceToHost, or cudaMemcpyDeviceToDevice, and specifies the direction of the copy.
- Parameters:
-
| dst | - Destination memory address |
| wOffsetDst | - Destination starting X offset |
| hOffsetDst | - Destination starting Y offset |
| src | - Source memory address |
| wOffsetSrc | - Source starting X offset |
| hOffsetSrc | - Source starting Y offset |
| count | - Size in bytes to copy |
| kind | - Type of transfer |
- Returns:
- cudaSuccess, cudaErrorInvalidValue, cudaErrorInvalidMemcpyDirection
- Note:
- Note that this function may also return error codes from previous, asynchronous launches.
- See also:
- cudaMemcpy, cudaMemcpy2D, cudaMemcpyToArray, cudaMemcpy2DToArray, cudaMemcpyFromArray, cudaMemcpy2DFromArray, cudaMemcpy2DArrayToArray, cudaMemcpyToSymbol, cudaMemcpyFromSymbol, cudaMemcpyAsync, cudaMemcpy2DAsync, cudaMemcpyToArrayAsync, cudaMemcpy2DToArrayAsync, cudaMemcpyFromArrayAsync, cudaMemcpy2DFromArrayAsync, cudaMemcpyToSymbolAsync, cudaMemcpyFromSymbolAsync
|