pub enum ParThreshold {
Derived,
Fixed(usize),
Never,
}Expand description
Floor of the parallel regions of a factorization family: the one type of every
par_threshold field (LU, full-pivoting LU, Bunch-Kaufman, QR with column pivoting,
bidiagonalization, Hessenberg and tridiagonal reductions).
The default is Derived: each region is decided by ParShape::pays, its
serial time (units of work times the family’s serial throughput, rate) against the
dispatch cost of the parallelism it would use and the number of sections it opens.
Variants§
Derived
Derive the floor of every region from its serial time and the dispatch cost.
Fixed(usize)
A fixed floor in the work unit of the family (documented where the family declares its
gate: elements of the updated trailing block for the reductions, f64 elements for LU), a
region runs in parallel from that many units. Fixed(0) and Fixed(1) make every region
parallel that has any work.
Never
Never run a region in parallel.
Trait Implementations§
Source§impl Clone for ParThreshold
impl Clone for ParThreshold
impl Copy for ParThreshold
Source§impl Debug for ParThreshold
impl Debug for ParThreshold
Source§impl Default for ParThreshold
impl Default for ParThreshold
impl Eq for ParThreshold
Source§impl From<ParThreshold> for usize
See From<usize>; Fixed(0) is
written as 1, the same behaviour, because 0 means derived.
impl From<ParThreshold> for usize
See From<usize>; Fixed(0) is
written as 1, the same behaviour, because 0 means derived.
Source§fn from(value: ParThreshold) -> Self
fn from(value: ParThreshold) -> Self
Source§impl From<usize> for ParThreshold
impl From<usize> for ParThreshold
Source§impl PartialEq for ParThreshold
impl PartialEq for ParThreshold
impl StructuralPartialEq for ParThreshold
Auto Trait Implementations§
impl Freeze for ParThreshold
impl RefUnwindSafe for ParThreshold
impl Send for ParThreshold
impl Sync for ParThreshold
impl Unpin for ParThreshold
impl UnsafeUnpin for ParThreshold
impl UnwindSafe for ParThreshold
Blanket Implementations§
impl<T> Boilerplate for T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T, U> Imply<T> for U
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> ⓘ
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> ⓘ
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