pub struct PlanSerializationManager { /* private fields */ }
Expand description
Manager for serialized FFT plans
Implementations§
Source§impl PlanSerializationManager
impl PlanSerializationManager
Sourcepub fn detect_arch_id() -> String
pub fn detect_arch_id() -> String
Detect the current architecture ID
Sourcepub fn create_plan_info(&self, size: usize, forward: bool) -> PlanInfo
pub fn create_plan_info(&self, size: usize, forward: bool) -> PlanInfo
Create a plan info object for the given parameters
Sourcepub fn plan_exists(&self, size: usize, forward: bool) -> bool
pub fn plan_exists(&self, size: usize, forward: bool) -> bool
Check if a plan exists in the database with compatible architecture
Sourcepub fn record_plan_usage(
&self,
plan_info: &PlanInfo,
execution_timens: u64,
) -> FFTResult<()>
pub fn record_plan_usage( &self, plan_info: &PlanInfo, execution_timens: u64, ) -> FFTResult<()>
Record plan usage in the database
Sourcepub fn save_database(&self) -> FFTResult<()>
pub fn save_database(&self) -> FFTResult<()>
Save the database to disk
Sourcepub fn set_enabled(&mut self, enabled: bool)
pub fn set_enabled(&mut self, enabled: bool)
Enable or disable plan serialization
Sourcepub fn get_best_plan_metrics(
&self,
size: usize,
forward: bool,
) -> Option<(PlanInfo, PlanMetrics)>
pub fn get_best_plan_metrics( &self, size: usize, forward: bool, ) -> Option<(PlanInfo, PlanMetrics)>
Get the best plan metrics for a given size and direction
Sourcepub fn get_stats(&self) -> PlanDatabaseStats
pub fn get_stats(&self) -> PlanDatabaseStats
Get statistics about plan serialization
Auto Trait Implementations§
impl Freeze for PlanSerializationManager
impl RefUnwindSafe for PlanSerializationManager
impl Send for PlanSerializationManager
impl Sync for PlanSerializationManager
impl Unpin for PlanSerializationManager
impl UnwindSafe for PlanSerializationManager
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> 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