FireSync API
 All Classes Files Functions Variables Typedefs Friends Macros Modules Pages
kStatus kCudaUtils_MemSet ( kCudaStream  stream,
void *  dest,
kByte  fill,
kSize  size,
kCudaSync  sync = kCUDA_SYNC_DEFAULT 
)

Sets a block of memory to the given byte value.

For non-device memory, this operation will always be synchronous (equivalent to kMemCopy).

Parameters
streamCuda stream.
destDestination for the memory set operation.
fillValue to be set.
sizeSize of memory block to be set, in bytes.
syncSynchronization mode; if unspecified, mode is determined from default stream sync mode.
Returns
Operation status.