pub struct BankEntry {
pub bank: usize,
pub dst_slot: u32,
pub src_row: u32,
pub rows: u32,
pub bytes: u64,
pub whole_layer: bool,
}Expand description
One host-to-device transfer entry: rows consecutive expert rows of
one bank.
dst_slot is the absolute cache slot the run lands on (inside the
buffer’s borrowed range) and src_row is the layer-local expert
row it comes from, the same convention as CopyPlan::src_rows, so
each layer’s bank can live in its own allocation.
Fields§
§bank: usizeIndex into the bank_feat_bytes the caller passed, in that
order.
dst_slot: u32§src_row: u32§rows: u32§bytes: u64§whole_layer: boolSet when this entry is the whole layer because the bank is
small (SMALL_BANK_FEAT_BYTES) rather than because the whole
layer missed.
Trait Implementations§
impl Copy for BankEntry
impl Eq for BankEntry
impl StructuralPartialEq for BankEntry
Auto Trait Implementations§
impl Freeze for BankEntry
impl RefUnwindSafe for BankEntry
impl Send for BankEntry
impl Sync for BankEntry
impl Unpin for BankEntry
impl UnsafeUnpin for BankEntry
impl UnwindSafe for BankEntry
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