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.

Parameters:
devPtr - Pointer to device memory
value - Value to set for each byte of specified memory
count - Size in bytes to set
Returns:
cudaSuccess, cudaErrorInvalidValue, cudaErrorInvalidDevicePointer
Note:
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