FireSync API
 All Classes Files Functions Variables Typedefs Friends Macros Modules Pages
template<class T >
kStatus kCudaUtils_CloneValue ( kCudaStream  stream,
kAlloc  destAlloc,
T **  dest,
const T *  source,
kCudaSync  sync = kCUDA_SYNC_DEFAULT 
)

Moves an item from its existing location to a new buffer created with the specified allocator.

This method does not automatically attach serial managed source memory; use kCudaUtils_AttachToStream if necessary.

If serial managed memory is allocated by this method, it will be automatically attached to the stream.

Parameters
streamCuda stream.
destAllocAllocator for new buffer.
destPrepared memory.
sourceSource memory.
syncSynchronization mode; if unspecified, mode is determined from default stream sync mode.
Returns
Operation status.