Skip to main content

MudaDetector

Struct MudaDetector 

Source
pub struct MudaDetector {
    pub thresholds: MudaThresholds,
}
Expand description

Analyze a kernel profile for all seven Muda categories.

Fields§

§thresholds: MudaThresholds

Thresholds for each waste category.

Implementations§

Source§

impl MudaDetector

Source

pub fn new() -> Self

Source

pub fn with_thresholds(thresholds: MudaThresholds) -> Self

Source

pub fn detect_transport( &self, register_spills: u64, unnecessary_global_loads: u64, redundant_shared_stores: u64, ) -> Option<MudaDetection>

Detect Transport muda from register spill and memory traffic data.

Source

pub fn detect_waiting( &self, barrier_stall_cycles: u64, memory_stall_cycles: u64, pipeline_bubbles: u64, warp_scheduler_idle_pct: f64, ) -> Option<MudaDetection>

Detect Waiting muda from stall cycle data.

Source

pub fn detect_motion( &self, divergent_branches: u64, branch_efficiency_pct: f64, loop_overhead_cycles: u64, ) -> Option<MudaDetection>

Detect Motion muda from branch divergence data.

Source

pub fn detect_inventory( &self, unused_shared_memory_bytes: u64, unused_registers_per_thread: u32, occupancy_loss_pct: f64, ) -> Option<MudaDetection>

Detect Inventory muda from resource allocation data.

Source

pub fn detect_defects( &self, nan_count: u64, inf_count: u64, precision_loss_bits: f64, ) -> Option<MudaDetection>

Detect Defects muda from numerical error data.

Source

pub fn detect_overproduction( &self, padding_waste_pct: f64, inactive_thread_pct: f64, unused_output_elements: u64, ) -> Option<MudaDetection>

Detect Overproduction muda from padding/inactive thread data.

Trait Implementations§

Source§

impl Default for MudaDetector

Source§

fn default() -> MudaDetector

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.