pub fn stream_free(alloc: &mut StreamAllocation) -> CudaResult<()>Expand description
Free a stream-ordered allocation.
Marks the allocation freed. This convenience function operates on the
allocation handle only (it does not require the owning pool); use
StreamMemoryPool::free_on when you need the freed block to re-enter a
specific pool’s reuse list.
§Errors
CudaError::InvalidValueif the allocation is already freed.