pub struct DeviceHybridCache {
pub layers: Vec<DeviceLayerCache>,
}Fields§
§layers: Vec<DeviceLayerCache>Implementations§
Source§impl DeviceHybridCache
impl DeviceHybridCache
Sourcepub fn from_host(
gpu: &dyn GpuBackend,
host: &HybridCache,
kda_cfg: &KdaConfig,
mla_cap: usize,
mla_k_row: usize,
mla_v_row: usize,
) -> Result<Self>
pub fn from_host( gpu: &dyn GpuBackend, host: &HybridCache, kda_cfg: &KdaConfig, mla_cap: usize, mla_k_row: usize, mla_v_row: usize, ) -> Result<Self>
Allocate device buffers from a host snapshot (prefix restore / cold start).
pub fn kda(&self, layer: usize) -> Option<&KdaDeviceState>
Auto Trait Implementations§
impl Freeze for DeviceHybridCache
impl RefUnwindSafe for DeviceHybridCache
impl Send for DeviceHybridCache
impl Sync for DeviceHybridCache
impl Unpin for DeviceHybridCache
impl UnwindSafe for DeviceHybridCache
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