cudaError_t cudaMemset ( void *  devPtr,
int  value,
size_t  count 

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

devPtr - Pointer to device memory
value - Value to set for each byte of specified memory
count - Size in bytes to set
cudaSuccess, cudaErrorInvalidValue, cudaErrorInvalidDevicePointer
Note that this function may also return error codes from previous, asynchronous launches.
See also:
cudaMemset2D, cudaMemset3D, cudaMemsetAsync, cudaMemset2DAsync, cudaMemset3DAsync

Generated by Doxygen for NVIDIA CUDA Library  NVIDIA