pub fn stream_alloc(size: usize, stream: u64) -> CudaResult<StreamAllocation>Expand description
Allocate memory on a stream using the default pool for device 0.
This is a convenience wrapper around StreamMemoryPool::default_pool
and StreamMemoryPool::alloc_async.
ยงErrors
Propagates errors from pool creation and allocation.