pub struct KernelBandwidths {
pub cpu_moe_gbs: Option<f64>,
pub pcie_gather_gbs: Option<f64>,
pub cpu_moe_overlap_gbs: Option<f64>,
pub pcie_gather_overlap_gbs: Option<f64>,
pub recommended: Option<MoeBackend>,
}Expand description
One measured (format, hardware) pair from a bandwidth benchmark.
Fields§
§cpu_moe_gbs: Option<f64>CPU-MoE bandwidth, measured alone.
pcie_gather_gbs: Option<f64>PCIe expert-gather bandwidth, measured alone.
cpu_moe_overlap_gbs: Option<f64>CPU-MoE bandwidth measured while the gather was running.
pcie_gather_overlap_gbs: Option<f64>Gather bandwidth measured while CPU-MoE was running.
recommended: Option<MoeBackend>Implementations§
Source§impl KernelBandwidths
impl KernelBandwidths
Sourcepub fn fetch_fraction(&self) -> Option<f64>
pub fn fetch_fraction(&self) -> Option<f64>
The fetch fraction this entry implies, contended pair first.
Trait Implementations§
Source§impl Clone for KernelBandwidths
impl Clone for KernelBandwidths
Source§fn clone(&self) -> KernelBandwidths
fn clone(&self) -> KernelBandwidths
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 KernelBandwidths
impl Debug for KernelBandwidths
Source§impl Default for KernelBandwidths
impl Default for KernelBandwidths
Source§fn default() -> KernelBandwidths
fn default() -> KernelBandwidths
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for KernelBandwidthswhere
KernelBandwidths: Default,
impl<'de> Deserialize<'de> for KernelBandwidthswhere
KernelBandwidths: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for KernelBandwidths
impl PartialEq for KernelBandwidths
Source§impl Serialize for KernelBandwidths
impl Serialize for KernelBandwidths
impl StructuralPartialEq for KernelBandwidths
Auto Trait Implementations§
impl Freeze for KernelBandwidths
impl RefUnwindSafe for KernelBandwidths
impl Send for KernelBandwidths
impl Sync for KernelBandwidths
impl Unpin for KernelBandwidths
impl UnsafeUnpin for KernelBandwidths
impl UnwindSafe for KernelBandwidths
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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