pub struct FPGAAccelerator { /* private fields */ }
Expand description
FPGA-specific implementation
Implementations§
Trait Implementations§
Source§impl HardwareAbstractionLayer for FPGAAccelerator
impl HardwareAbstractionLayer for FPGAAccelerator
Source§fn initialize(&mut self) -> FFTResult<()>
fn initialize(&mut self) -> FFTResult<()>
Initialize the accelerator
Source§fn is_available(&self) -> bool
fn is_available(&self) -> bool
Check if the accelerator is available
Source§fn get_info(&self) -> &AcceleratorInfo
fn get_info(&self) -> &AcceleratorInfo
Get accelerator information
Source§fn allocate_memory(&mut self, size: usize) -> FFTResult<u64>
fn allocate_memory(&mut self, size: usize) -> FFTResult<u64>
Allocate memory on the accelerator
Source§fn transfer_to_device(&mut self, handle: u64, data: &[u8]) -> FFTResult<()>
fn transfer_to_device(&mut self, handle: u64, data: &[u8]) -> FFTResult<()>
Transfer data to accelerator
Source§fn transfer_from_device(
&mut self,
handle: u64,
data: &mut [u8],
) -> FFTResult<()>
fn transfer_from_device( &mut self, handle: u64, data: &mut [u8], ) -> FFTResult<()>
Transfer data from accelerator
Source§fn execute_sparse_fft(
&mut self,
_input_handle: u64,
_output_handle: u64,
config: &SparseFFTConfig,
) -> FFTResult<Duration>
fn execute_sparse_fft( &mut self, _input_handle: u64, _output_handle: u64, config: &SparseFFTConfig, ) -> FFTResult<Duration>
Execute sparse FFT on accelerator
Auto Trait Implementations§
impl Freeze for FPGAAccelerator
impl RefUnwindSafe for FPGAAccelerator
impl Send for FPGAAccelerator
impl Sync for FPGAAccelerator
impl Unpin for FPGAAccelerator
impl UnwindSafe for FPGAAccelerator
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