pub struct AutoOptimizer { /* private fields */ }
Expand description
Auto-optimizer for selecting best implementation based on problem size
Implementations§
Source§impl AutoOptimizer
impl AutoOptimizer
Sourcepub fn should_use_gpu(&self, problem_size: usize) -> bool
pub fn should_use_gpu(&self, problem_size: usize) -> bool
Determine if GPU should be used based on problem size
Sourcepub fn should_use_simd(&self, problem_size: usize) -> bool
pub fn should_use_simd(&self, problem_size: usize) -> bool
Determine if SIMD should be used based on problem size
Sourcepub fn should_use_parallel(&self, problem_size: usize) -> bool
pub fn should_use_parallel(&self, problem_size: usize) -> bool
Determine if parallel processing should be used
Sourcepub fn recommended_chunk_size(&self, total_size: usize) -> usize
pub fn recommended_chunk_size(&self, total_size: usize) -> usize
Get recommended chunk size for parallel processing
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AutoOptimizer
impl RefUnwindSafe for AutoOptimizer
impl Send for AutoOptimizer
impl Sync for AutoOptimizer
impl Unpin for AutoOptimizer
impl UnwindSafe for AutoOptimizer
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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