Function cust::memory::cuda_free_async
source · [−]pub unsafe fn cuda_free_async<T: DeviceCopy>(
stream: &Stream,
p: DevicePointer<T>
) -> CudaResult<()>
Expand description
Unsafe wrapper around cuMemFreeAsync
which queues a memory allocation free operation on a stream.
Retains all of the unsafe semantics of cuda_free
with the extra requirement that the memory
must not be used after it is dropped. Therefore, proper stream ordering semantics must be
respected.
Safety
The pointer must be valid.