pub struct FusionConfig {
pub strategy: FusionStrategy,
pub max_fusion_size: usize,
pub enable_patterns: bool,
pub enable_vertical: bool,
pub enable_horizontal: bool,
pub enable_loop_fusion: bool,
pub memory_bandwidth_threshold: Option<f64>,
pub min_benefit_score: f64,
}Expand description
Fusion configuration.
Fields§
§strategy: FusionStrategyFusion strategy
max_fusion_size: usizeMaximum nodes per fused kernel
enable_patterns: boolEnable pattern-based fusion
enable_vertical: boolEnable vertical fusion
enable_horizontal: boolEnable horizontal fusion
enable_loop_fusion: boolEnable loop fusion
memory_bandwidth_threshold: Option<f64>Memory bandwidth threshold (bytes/s)
min_benefit_score: f64Minimum benefit score to apply fusion
Implementations§
Source§impl FusionConfig
impl FusionConfig
Sourcepub fn aggressive() -> Self
pub fn aggressive() -> Self
Create aggressive fusion configuration.
Sourcepub fn conservative() -> Self
pub fn conservative() -> Self
Create conservative fusion configuration.
Sourcepub fn memory_aware() -> Self
pub fn memory_aware() -> Self
Create memory-aware fusion configuration.
Trait Implementations§
Source§impl Clone for FusionConfig
impl Clone for FusionConfig
Source§fn clone(&self) -> FusionConfig
fn clone(&self) -> FusionConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 FusionConfig
impl Debug for FusionConfig
Source§impl Default for FusionConfig
impl Default for FusionConfig
Source§impl<'de> Deserialize<'de> for FusionConfig
impl<'de> Deserialize<'de> for FusionConfig
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
Auto Trait Implementations§
impl Freeze for FusionConfig
impl RefUnwindSafe for FusionConfig
impl Send for FusionConfig
impl Sync for FusionConfig
impl Unpin for FusionConfig
impl UnwindSafe for FusionConfig
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