Skip to main content

IrsRefinement

Enum IrsRefinement 

Source
#[repr(u32)]
pub enum IrsRefinement { NotSet = 1_100, None = 1_101, Classical = 1_102, ClassicalGmres = 1_103, Gmres = 1_104, GmresGmres = 1_105, GmresNoPcond = 1_106, PrecDd = 1_150, PrecSs = 1_151, PrecSht = 1_152, }
Expand description

Indicates which IRS refinement solver to use for a cuSOLVER operation. Empirically, IrsRefinement::Gmres is often the best option.

More details about the refinement process are available in Azzam Haidar, Stanimire Tomov, Jack Dongarra, and Nicholas J. Higham, “Harnessing GPU tensor cores for fast FP16 arithmetic to speed up mixed-precision iterative refinement solvers,” SC ’18.

Variants§

§

NotSet = 1_100

Solver is not set; this value is what is set when creating the params structure. The IRS solver returns an error if this value is used.

§

None = 1_101

No refinement solver; the IRS solver performs a factorization followed by a solve without any refinement. For example, when used with xgesv, this matches the non-refined solver path with the factorization carried out in the lowest precision. If both the main and lowest precision are PrecisionType::R64F, this is equivalent to solving entirely in f64.

§

Classical = 1_102

Classical iterative refinement solver. Similar to the value used in LAPACK operations.

§

ClassicalGmres = 1_103

Classical iterative refinement solver that uses the GMRES (Generalized Minimal Residual) internally to solve the correction equation at each iteration. The classical refinement iteration is the outer iteration, and GMRES is the inner iteration. If the tolerance of the inner GMRES is very low, for example near machine precision, the outer classical refinement iteration performs only one iteration and this option behaves like IrsRefinement::Gmres.

§

Gmres = 1_104

GMRES (Generalized Minimal Residual) based iterative refinement solver. Recent studies use GMRES as a refinement solver that can outperform classical iterative refinement. Recommended setting based on cuSOLVER experimentation.

§

GmresGmres = 1_105

GMRES-based iterative refinement solver that uses another GMRES solve internally for the preconditioned system.

§

GmresNoPcond = 1_106

§

PrecDd = 1_150

§

PrecSs = 1_151

§

PrecSht = 1_152

Trait Implementations§

Source§

impl Clone for IrsRefinement

Source§

fn clone(&self) -> IrsRefinement

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for IrsRefinement

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for IrsRefinement

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<IrsRefinement> for cusolverIRSRefinement_t

Source§

fn from(value: IrsRefinement) -> Self

Converts to this type from the input type.
Source§

impl From<IrsRefinement> for u32

Source§

fn from(enum_value: IrsRefinement) -> Self

Converts to this type from the input type.
Source§

impl From<cusolverIRSRefinement_t> for IrsRefinement

Source§

fn from(value: cusolverIRSRefinement_t) -> Self

Converts to this type from the input type.
Source§

impl Hash for IrsRefinement

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for IrsRefinement

Source§

fn eq(&self, other: &IrsRefinement) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl TryFrom<u32> for IrsRefinement

Source§

type Error = TryFromPrimitiveError<IrsRefinement>

The type returned in the event of a conversion error.
Source§

fn try_from(number: u32) -> Result<Self, TryFromPrimitiveError<Self>>

Performs the conversion.
Source§

impl TryFromPrimitive for IrsRefinement

Source§

impl Copy for IrsRefinement

Source§

impl Eq for IrsRefinement

Source§

impl StructuralPartialEq for IrsRefinement

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.