pub struct AdvancedKernelRegistry { /* private fields */ }Expand description
Advanced kernel registry for automatic kernel selection
Implementations§
Source§impl AdvancedKernelRegistry
impl AdvancedKernelRegistry
Sourcepub fn new(strategy: KernelOptimizationStrategy) -> Self
pub fn new(strategy: KernelOptimizationStrategy) -> Self
Create new advanced kernel registry
Sourcepub fn register_kernel(&self, kernel: SpecializedKernel) -> Result<()>
pub fn register_kernel(&self, kernel: SpecializedKernel) -> Result<()>
Register a new specialized kernel
Sourcepub fn select_optimal_kernel(
&self,
operation: &str,
data_size: usize,
data_profile: &DataProfile,
) -> Result<SpecializedKernel>
pub fn select_optimal_kernel( &self, operation: &str, data_size: usize, data_profile: &DataProfile, ) -> Result<SpecializedKernel>
Select optimal kernel for given operation and data characteristics
Sourcepub fn execute_kernel(
&self,
kernel: &SpecializedKernel,
input_a: &[f32],
input_b: &[f32],
output: &mut [f32],
params: &KernelParams,
) -> Result<KernelExecutionResult>
pub fn execute_kernel( &self, kernel: &SpecializedKernel, input_a: &[f32], input_b: &[f32], output: &mut [f32], params: &KernelParams, ) -> Result<KernelExecutionResult>
Execute kernel with performance monitoring
Sourcepub fn get_registry_statistics(&self) -> Result<KernelRegistryStatistics>
pub fn get_registry_statistics(&self) -> Result<KernelRegistryStatistics>
Get comprehensive kernel registry statistics
Auto Trait Implementations§
impl Freeze for AdvancedKernelRegistry
impl RefUnwindSafe for AdvancedKernelRegistry
impl Send for AdvancedKernelRegistry
impl Sync for AdvancedKernelRegistry
impl Unpin for AdvancedKernelRegistry
impl UnsafeUnpin for AdvancedKernelRegistry
impl UnwindSafe for AdvancedKernelRegistry
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