pub struct PrimalModuleParallelConfig {
pub thread_pool_size: usize,
pub debug_sequential: bool,
pub prioritize_base_partition: bool,
pub interleaving_base_fusion: usize,
pub pin_threads_to_cores: bool,
pub streaming_decode_mock_measure_interval: Option<f64>,
pub streaming_decode_use_spin_lock: bool,
pub max_tree_size: usize,
}Fields§
§thread_pool_size: usizeenable async execution of dual operations; only used when calling top-level operations, not used in individual units
debug_sequential: booldebug by sequentially run the fusion tasks, user must enable this for visualizer to work properly during the execution
prioritize_base_partition: boolschedule base partition tasks in the front
interleaving_base_fusion: usize§pin_threads_to_cores: boolpin threads to cores sequentially
streaming_decode_mock_measure_interval: Option<f64>streaming decode mocker
streaming_decode_use_spin_lock: boolstreaming decoder using spin lock instead of threads.sleep to avoid context switch
max_tree_size: usizemax tree size for the serial modules, for faster speed at the cost of less accuracy
Trait Implementations§
Source§impl Clone for PrimalModuleParallelConfig
impl Clone for PrimalModuleParallelConfig
Source§fn clone(&self) -> PrimalModuleParallelConfig
fn clone(&self) -> PrimalModuleParallelConfig
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PrimalModuleParallelConfig
impl Debug for PrimalModuleParallelConfig
Source§impl Default for PrimalModuleParallelConfig
impl Default for PrimalModuleParallelConfig
Source§impl<'de> Deserialize<'de> for PrimalModuleParallelConfig
impl<'de> Deserialize<'de> for PrimalModuleParallelConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PrimalModuleParallelConfig
impl RefUnwindSafe for PrimalModuleParallelConfig
impl Send for PrimalModuleParallelConfig
impl Sync for PrimalModuleParallelConfig
impl Unpin for PrimalModuleParallelConfig
impl UnwindSafe for PrimalModuleParallelConfig
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)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