pub struct CapturePool { /* private fields */ }Expand description
A dedicated memory pool for CUDA graph capture.
During graph capture, allocations must come from a pool that is not sealed. Once sealed, the pool rejects new allocations — this is used to ensure that all buffers are pre-allocated before capture begins.
§Usage
ⓘ
let pool = CapturePool::new();
// ... allocate buffers from pool ...
pool.seal(); // no more allocations allowed
// begin_capture_with_pool(&pool, stream) would fail here because
// the pool is sealed — you can't allocate during capture from a
// sealed pool. Un-seal it first or use a fresh pool.Implementations§
Source§impl CapturePool
impl CapturePool
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for CapturePool
impl RefUnwindSafe for CapturePool
impl Send for CapturePool
impl Sync for CapturePool
impl Unpin for CapturePool
impl UnsafeUnpin for CapturePool
impl UnwindSafe for CapturePool
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more