|
|
| cudaError_t cudaMemcpyToArray |
( |
struct cudaArray * |
dst, |
|
|
size_t |
wOffset, |
|
|
size_t |
hOffset, |
|
|
const void * |
src, |
|
|
size_t |
count, |
|
|
enum cudaMemcpyKind |
kind | |
|
) |
| | |
Copies count bytes from the memory area pointed to by src to the CUDA array dst starting at the upper left corner (wOffset, hOffset), where kind is one of cudaMemcpyHostToHost, cudaMemcpyHostToDevice, cudaMemcpyDeviceToHost, or cudaMemcpyDeviceToDevice, and specifies the direction of the copy.
- Parameters:
-
| dst | - Destination memory address |
| wOffset | - Destination starting X offset |
| hOffset | - Destination starting Y offset |
| src | - Source memory address |
| 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, cudaMemcpy2DToArray, cudaMemcpyFromArray, cudaMemcpy2DFromArray, cudaMemcpyArrayToArray, cudaMemcpy2DArrayToArray, cudaMemcpyToSymbol, cudaMemcpyFromSymbol, cudaMemcpyAsync, cudaMemcpy2DAsync, cudaMemcpyToArrayAsync, cudaMemcpy2DToArrayAsync, cudaMemcpyFromArrayAsync, cudaMemcpy2DFromArrayAsync, cudaMemcpyToSymbolAsync, cudaMemcpyFromSymbolAsync
|