pub struct AutoTuner { /* private fields */ }Expand description
Micro-benchmark based auto-tuner (simplified version).
In a production implementation, this would run actual benchmarks. For now, it uses heuristics based on architecture and cache sizes.
Implementations§
Source§impl AutoTuner
impl AutoTuner
Sourcepub fn tune_gemm(&mut self, m: usize, n: usize, k: usize) -> &TuningConfig
pub fn tune_gemm(&mut self, m: usize, n: usize, k: usize) -> &TuningConfig
Tunes for GEMM operations with the given dimensions.
This is a simplified version that uses heuristics. A full implementation would run micro-benchmarks to find optimal parameters.
Sourcepub const fn config(&self) -> &TuningConfig
pub const fn config(&self) -> &TuningConfig
Returns the current tuning configuration.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AutoTuner
impl RefUnwindSafe for AutoTuner
impl Send for AutoTuner
impl Sync for AutoTuner
impl Unpin for AutoTuner
impl UnwindSafe for AutoTuner
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