|
FireSync API
|
| kStatus kCudaUtils_AllocValue | ( | kCudaStream | stream, |
| kAlloc | allocator, | ||
| T ** | pointer, | ||
| kCudaSync | sync = kCUDA_SYNC_DEFAULT |
||
| ) |
Allocates storage for a value-type with the specified allocator.
If serial managed memory is allocated by this method, it will be automatically attached to the stream.
| stream | Cuda stream. |
| allocator | Allocator for new buffer. |
| pointer | Allocated memory. |
| sync | Synchronization mode; if unspecified, mode is determined from default stream sync mode. |