|
FireSync API
|
| 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.
| stream | Cuda stream. |
| destAlloc | Allocator for new buffer. |
| dest | Prepared memory. |
| source | Source memory. |
| sync | Synchronization mode; if unspecified, mode is determined from default stream sync mode. |