Function cudarc::driver::result::free_async

source ·
pub unsafe fn free_async(
    dptr: CUdeviceptr,
    stream: CUstream
) -> Result<(), DriverError>
Expand description

Frees memory with stream ordered semantics.

See cuda docs

Safety

  1. The stream should be an already created stream.
  2. The memory should have been allocated on this stream.
  3. The memory should not have been freed already (double free)