11.01.2014 Views

NVIDIA CUDA

NVIDIA CUDA

NVIDIA CUDA

SHOW MORE
SHOW LESS

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

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

54 Module Documentation<br />

IMPORTANT NOTE: Copies with kind == cudaMemcpyDeviceToDevice are asynchronous with respect to the<br />

host, but never overlap with kernel execution.<br />

Parameters:<br />

symbol - Symbol destination on device<br />

src - Source memory address<br />

count - Size in bytes to copy<br />

offset - Offset from start of symbol in bytes<br />

kind - Type of transfer<br />

stream - Stream identifier<br />

Returns:<br />

Note:<br />

cudaSuccess, cudaErrorInvalidValue, cudaErrorInvalidSymbol, cudaErrorInvalidDevicePointer, cudaErrorInvalidMemcpyDirection<br />

See also:<br />

Note that this function may also return error codes from previous, asynchronous launches.<br />

cudaMemcpy, cudaMemcpy2D, cudaMemcpyToArray, cudaMemcpy2DToArray, cudaMemcpyFromArray, cudaMemcpy2DFromArray,<br />

cudaMemcpyArrayToArray, cudaMemcpy2DArrayToArray, cudaMemcpyToSymbol,<br />

cudaMemcpyFromSymbol, cudaMemcpyAsync, cudaMemcpy2DAsync, cudaMemcpyToArrayAsync, cudaMemcpy2DToArrayAsync,<br />

cudaMemcpyFromArrayAsync, cudaMemcpy2DFromArrayAsync, cudaMemcpyFromSymbolAsync<br />

4.8.2.35 cudaError_t cudaMemGetInfo (size_t ∗ free, size_t ∗ total)<br />

Returns in ∗free and ∗total respectively, the free and total amount of memory available for allocation by the<br />

device in bytes.<br />

Parameters:<br />

free - Returned free memory in bytes<br />

total - Returned total memory in bytes<br />

Returns:<br />

Note:<br />

cudaSuccess, cudaErrorInitializationError, cudaErrorPriorLaunchFailure, cudaErrorInvalidValue<br />

Note that this function may also return error codes from previous, asynchronous launches.<br />

4.8.2.36 cudaError_t cudaMemset (void ∗ devPtr, int value, size_t count)<br />

Fills the first count bytes of the memory area pointed to by devPtr with the constant byte value value.<br />

Parameters:<br />

devPtr - Pointer to device memory<br />

Generated 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!