Function cudarc::driver::result::malloc_async

source ·
pub unsafe fn malloc_async(
    stream: CUstream,
    num_bytes: usize
) -> Result<CUdeviceptr, DriverError>
Expand description

Allocates memory with stream ordered semantics.

See cuda docs

Safety

  1. The stream should be an already created stream.
  2. The memory return by this is unset, which may be invalid for T.
  3. All uses of this memory must be on the same stream.