|
FireSync API
|
| kStatus kCudaUtils_Allocate | ( | kCudaStream | stream, |
| kAlloc | alloc, | ||
| kSize | size, | ||
| void * | mem, | ||
| kCudaSync | sync = kCUDA_SYNC_DEFAULT |
||
| ) |
Allocates a block of memory and attaches it to the specified stream.
For serial managed memory, the buffer will be attached to the stream; for all other memory types, this method is equivalent to kAlloc_Get.
| stream | Stream to which memory should be initially attached. |
| alloc | Allocator object. |
| size | Size of memory to allocate, in bytes. |
| mem | Receives pointer to allocated memory (pointer to a pointer). |
| sync | Synchronization mode; if unspecified, mode is determined from default stream sync mode. |