pub struct ParallelOptimizer {
pub num_threads: usize,
pub numa_info: NumaTopology,
pub load_balancer: LoadBalancingStrategy,
pub work_stealing_config: WorkStealingConfig,
/* private fields */
}Expand description
Advanced parallel execution engine
Fields§
§num_threads: usizeNumber of worker threads
numa_info: NumaTopologyNUMA topology information
load_balancer: LoadBalancingStrategyLoad balancing strategy
work_stealing_config: WorkStealingConfigWork-stealing configuration
Implementations§
Source§impl ParallelOptimizer
impl ParallelOptimizer
Sourcepub fn initialize(&mut self) -> IntegrateResult<()>
pub fn initialize(&mut self) -> IntegrateResult<()>
Initialize thread pool
Sourcepub fn execute_parallel<T: ParallelTask + Send + 'static>(
&mut self,
tasks: Vec<Box<T>>,
) -> IntegrateResult<(Vec<ParallelResult>, ParallelExecutionStats)>
pub fn execute_parallel<T: ParallelTask + Send + 'static>( &mut self, tasks: Vec<Box<T>>, ) -> IntegrateResult<(Vec<ParallelResult>, ParallelExecutionStats)>
Execute tasks in parallel with optimization
Sourcepub fn execute_vectorized<F: IntegrateFloat>(
&self,
task: VectorizedComputeTask<F>,
) -> IntegrateResult<Array2<F>>
pub fn execute_vectorized<F: IntegrateFloat>( &self, task: VectorizedComputeTask<F>, ) -> IntegrateResult<Array2<F>>
Execute vectorized computation with SIMD optimization
Auto Trait Implementations§
impl Freeze for ParallelOptimizer
impl !RefUnwindSafe for ParallelOptimizer
impl Send for ParallelOptimizer
impl Sync for ParallelOptimizer
impl Unpin for ParallelOptimizer
impl !UnwindSafe for ParallelOptimizer
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