FireSync API
 All Classes Files Functions Variables Typedefs Friends Macros Modules Pages
template<class T >
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.

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