pub struct SpecializedHardwareManager { /* private fields */ }
Expand description
Specialized hardware accelerator manager
Implementations§
Source§impl SpecializedHardwareManager
impl SpecializedHardwareManager
Sourcepub fn new(config: SparseFFTConfig) -> Self
pub fn new(config: SparseFFTConfig) -> Self
Create a new specialized hardware manager
Sourcepub fn discover_accelerators(&mut self) -> FFTResult<Vec<String>>
pub fn discover_accelerators(&mut self) -> FFTResult<Vec<String>>
Discover and register available accelerators
Sourcepub fn initialize_all(&mut self) -> FFTResult<()>
pub fn initialize_all(&mut self) -> FFTResult<()>
Initialize all discovered accelerators
Sourcepub fn get_available_accelerators(&self) -> Vec<String>
pub fn get_available_accelerators(&self) -> Vec<String>
Get list of available accelerators
Sourcepub fn get_accelerator_info(&self, id: &str) -> Option<&AcceleratorInfo>
pub fn get_accelerator_info(&self, id: &str) -> Option<&AcceleratorInfo>
Get accelerator information
Sourcepub fn execute_sparse_fft<T>(
&mut self,
signal: &[T],
) -> FFTResult<SparseFFTResult>
pub fn execute_sparse_fft<T>( &mut self, signal: &[T], ) -> FFTResult<SparseFFTResult>
Execute sparse FFT on best available accelerator
Sourcepub fn get_performance_summary(&self) -> HashMap<String, HashMap<String, f64>>
pub fn get_performance_summary(&self) -> HashMap<String, HashMap<String, f64>>
Get performance summary for all accelerators
Sourcepub fn shutdown_all(&mut self) -> FFTResult<()>
pub fn shutdown_all(&mut self) -> FFTResult<()>
Shutdown all accelerators
Auto Trait Implementations§
impl Freeze for SpecializedHardwareManager
impl !RefUnwindSafe for SpecializedHardwareManager
impl Send for SpecializedHardwareManager
impl Sync for SpecializedHardwareManager
impl Unpin for SpecializedHardwareManager
impl !UnwindSafe for SpecializedHardwareManager
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