pub fn stream_free(alloc: &mut StreamAllocation) -> CudaResult<()>Expand description
Free a stream-ordered allocation.
If the allocation came from the shared default pool (see stream_alloc),
it is returned to that pool via StreamMemoryPool::free_on so the freed
block re-enters the reuse list and accounting stays consistent. Otherwise
the allocation is simply marked freed. For allocations from an explicit
pool, prefer StreamMemoryPool::free_on directly.
ยงErrors
CudaError::InvalidValueif the allocation is already freed.