pub struct CpuOptimizationConfig {
pub enable_simd: bool,
pub enable_cache_optimization: bool,
pub enable_loop_unrolling: bool,
pub enable_prefetching: bool,
pub cache_line_size: usize,
pub l1_cache_size_kb: usize,
pub l2_cache_size_kb: usize,
pub l3_cache_size_kb: usize,
pub num_cores: usize,
pub enable_branch_prediction: bool,
pub tile_size: usize,
}Expand description
CPU optimization configuration
Fields§
§enable_simd: boolEnable SIMD vectorization
enable_cache_optimization: boolEnable cache optimization
enable_loop_unrolling: boolEnable loop unrolling
enable_prefetching: boolEnable prefetching
cache_line_size: usizeCache line size (typically 64 bytes)
l1_cache_size_kb: usizeL1 cache size in KB
l2_cache_size_kb: usizeL2 cache size in KB
l3_cache_size_kb: usizeL3 cache size in KB
num_cores: usizeNumber of CPU cores
enable_branch_prediction: boolEnable branch prediction optimization
tile_size: usizeTile size for matrix operations
Trait Implementations§
Source§impl Clone for CpuOptimizationConfig
impl Clone for CpuOptimizationConfig
Source§fn clone(&self) -> CpuOptimizationConfig
fn clone(&self) -> CpuOptimizationConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CpuOptimizationConfig
impl Debug for CpuOptimizationConfig
Auto Trait Implementations§
impl Freeze for CpuOptimizationConfig
impl RefUnwindSafe for CpuOptimizationConfig
impl Send for CpuOptimizationConfig
impl Sync for CpuOptimizationConfig
impl Unpin for CpuOptimizationConfig
impl UnwindSafe for CpuOptimizationConfig
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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