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