|
FireSync API
|
| 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.
| stream | Cuda stream. |
| object | Receives constructed object. |
| source | Source array. |
| objectAllocator | Object memory allocator (or kNULL for default). |
| valueAllocator | Value memory allocator (or kNULL for default). |
| sync | Synchronization mode; if unspecified, mode is determined from default stream sync mode. |