Enum sprs::smmp::ThreadingStrategy[][src]

pub enum ThreadingStrategy {
    Automatic,
    AutomaticPhysical,
    Fixed(usize),
}

Control the strategy used to parallelize the matrix product workload.

The Automatic strategy will try to pick a good number of threads based on the number of cores and an estimation of the nnz of the product matrix. This strategy is used by default.

The AutomaticPhysical strategy will try to pick a good number of threads based on the number of physical cores and an estimation of the nnz of the product matrix. This strategy is a fallback for machines where virtual cores do not provide a performance advantage.

The Fixed strategy leaves the control to the user. It is a programming error to request 0 threads.

Variants

Automatic
AutomaticPhysical
Fixed(usize)

Trait Implementations

impl Clone for ThreadingStrategy[src]

impl Copy for ThreadingStrategy[src]

impl Debug for ThreadingStrategy[src]

impl Eq for ThreadingStrategy[src]

impl PartialEq<ThreadingStrategy> for ThreadingStrategy[src]

impl StructuralEq for ThreadingStrategy[src]

impl StructuralPartialEq for ThreadingStrategy[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.