pub struct PrefillPlan {
pub layer: u32,
pub buffer_id: u32,
pub already_loaded: bool,
pub gather: GatherPlan,
pub miss_runs: Vec<MissRun>,
pub entries: Vec<BankEntry>,
pub gather_banks: Vec<usize>,
}Expand description
What staging one layer into a prefill double buffer costs.
The two row sets are disjoint by construction – an expert is either gathered device-side or shipped from the host, never both – which is what lets the gather and the host transfer run without ordering against each other.
Fields§
§layer: u32§buffer_id: u32layer % 2.
already_loaded: boolThe buffer already held this layer, so nothing moves. Every other field is empty.
gather: GatherPlanResident rows, cache -> buffer, device-side.
miss_runs: Vec<MissRun>Non-resident rows, coalesced.
entries: Vec<BankEntry>The host transfer batch, grouped by bank in the caller’s order.
gather_banks: Vec<usize>Banks the gather serves – those at or above
SMALL_BANK_FEAT_BYTES. A small bank’s rows are covered by its
whole-layer entry instead, so gathering them too would move the
same bytes twice.
Trait Implementations§
Source§impl Clone for PrefillPlan
impl Clone for PrefillPlan
Source§fn clone(&self) -> PrefillPlan
fn clone(&self) -> PrefillPlan
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PrefillPlan
impl Debug for PrefillPlan
Source§impl PartialEq for PrefillPlan
impl PartialEq for PrefillPlan
impl StructuralPartialEq for PrefillPlan
Auto Trait Implementations§
impl Freeze for PrefillPlan
impl RefUnwindSafe for PrefillPlan
impl Send for PrefillPlan
impl Sync for PrefillPlan
impl Unpin for PrefillPlan
impl UnsafeUnpin for PrefillPlan
impl UnwindSafe for PrefillPlan
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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