Skip to main content

KernelFactoryExt

Trait KernelFactoryExt 

Source
pub trait KernelFactoryExt {
    // Required methods
    fn can_use_tensor_cores(&self) -> bool;
    fn get_optimal_config(
        &self,
        signal_size: usize,
        algorithm: SparseFFTAlgorithm,
        window_function: WindowFunction,
    ) -> KernelConfig;
}
Expand description

Extension trait for KernelFactory

Required Methods§

Source

fn can_use_tensor_cores(&self) -> bool

Check if the GPU can use tensor cores

Source

fn get_optimal_config( &self, signal_size: usize, algorithm: SparseFFTAlgorithm, window_function: WindowFunction, ) -> KernelConfig

Get optimal configuration for a specific algorithm and signal size

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§