pub struct OptimizationParams {
pub thread_count: usize,
pub chunk_size: usize,
pub enable_simd: bool,
pub enable_gpu: bool,
pub enable_prefetch: bool,
pub numa_aware: bool,
pub cache_params: CacheParams,
pub io_params: IoParams,
pub gpu_params: Option<GpuParams>,
}
Expand description
Optimization parameters for system operations
Fields§
§thread_count: usize
Recommended thread count for parallel operations
chunk_size: usize
Recommended chunk size for memory operations (bytes)
enable_simd: bool
Enable SIMD operations
enable_gpu: bool
Enable GPU acceleration
enable_prefetch: bool
Enable memory prefetching
numa_aware: bool
NUMA-aware memory allocation
cache_params: CacheParams
Cache-friendly parameters
io_params: IoParams
I/O optimization parameters
gpu_params: Option<GpuParams>
GPU-specific parameters
Implementations§
Source§impl OptimizationParams
impl OptimizationParams
Sourcepub fn generate(
cpu: &CpuInfo,
memory: &MemoryInfo,
gpu: Option<&GpuInfo>,
network: &NetworkInfo,
storage: &StorageInfo,
) -> CoreResult<Self>
pub fn generate( cpu: &CpuInfo, memory: &MemoryInfo, gpu: Option<&GpuInfo>, network: &NetworkInfo, storage: &StorageInfo, ) -> CoreResult<Self>
Generate optimization parameters from system resources
Sourcepub fn get_scaling_factor(problemsize: usize) -> f64
pub fn get_scaling_factor(problemsize: usize) -> f64
Get scaling factor for different problem sizes
Sourcepub fn scaling_factor(&self, problemsize: usize) -> f64
pub fn scaling_factor(&self, problemsize: usize) -> f64
Instance method to get scaling factor
Sourcepub fn adjust_for_workload(&mut self, workload: WorkloadType)
pub fn adjust_for_workload(&mut self, workload: WorkloadType)
Adjust parameters for specific workload type
Trait Implementations§
Source§impl Clone for OptimizationParams
impl Clone for OptimizationParams
Source§fn clone(&self) -> OptimizationParams
fn clone(&self) -> OptimizationParams
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 OptimizationParams
impl Debug for OptimizationParams
Auto Trait Implementations§
impl Freeze for OptimizationParams
impl RefUnwindSafe for OptimizationParams
impl Send for OptimizationParams
impl Sync for OptimizationParams
impl Unpin for OptimizationParams
impl UnwindSafe for OptimizationParams
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