FireSync API
 All Classes Files Functions Variables Typedefs Friends Macros Modules Pages
kStatus kCudaUtils_CloneObject ( kCudaStream  stream,
kObject object,
kObject  source,
kAlloc  objectAllocator,
kAlloc  valueAllocator,
kCudaSync  sync = kCUDA_SYNC_DEFAULT 
)

Constructs a new object by copying an existing object, including any aggregated child elements.

This method provides the same functionality as kObject_Clone, but allows the synchronization mode to be specified as a call argument, rather than automatically derived from the stream's default synchronization mode.

Parameters
streamCuda stream.
objectReceives constructed object.
sourceSource array.
objectAllocatorObject memory allocator (or kNULL for default).
valueAllocatorValue memory allocator (or kNULL for default).
syncSynchronization mode; if unspecified, mode is determined from default stream sync mode.
Returns
Operation status.