pub struct CudaHost {
pub ctx: Arc<CudaContext>,
pub stream: Arc<CudaStream>,
/* private fields */
}Expand description
The CUDA context and stream — process-scoped, on purpose.
Creating and destroying a CUDA context is precisely what in-process model swapping exists to avoid: it is slow, it invalidates every handle in the process, and on GB10 UVM it is the operation with the worst failure modes. The context is derived from the device, not from the checkpoint, so one model’s context serves the next one unchanged.
Fields§
§ctx: Arc<CudaContext>§stream: Arc<CudaStream>Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CudaHost
impl RefUnwindSafe for CudaHost
impl Unpin for CudaHost
impl UnwindSafe for CudaHost
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