P. 1
CudaReferenceManual_2.0

CudaReferenceManual_2.0

|Views: 2,053|Likes:
Published by Craig Surbrook

More info:

Published by: Craig Surbrook on May 08, 2011
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

12/09/2012

pdf

text

original

NAME

cudaMemset - initializes or sets GPU memory to a value

SYNOPSIS

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

DESCRIPTION

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

RETURN VALUE

Relevant return values:

cudaSuccess

cudaErrorInvalidValue

cudaErrorInvalidDevicePointer

Note that this function may also return error codes from previous, asynchronous launches.

SEE ALSO

cudaMemset2D, cudaMemset3D

32

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->