QUDA
1.0.0
|
#include <invert_quda.h>
Public Member Functions | |
CG3 (DiracMatrix &mat, DiracMatrix &matSloppy, SolverParam ¶m, TimeProfile &profile) | |
virtual | ~CG3 () |
void | operator() (ColorSpinorField &out, ColorSpinorField &in) |
![]() | |
Solver (SolverParam ¶m, TimeProfile &profile) | |
virtual | ~Solver () |
virtual void | blocksolve (ColorSpinorField &out, ColorSpinorField &in) |
bool | convergence (double r2, double hq2, double r2_tol, double hq_tol) |
bool | convergenceHQ (double r2, double hq2, double r2_tol, double hq_tol) |
Test for HQ solver convergence – ignore L2 residual. More... | |
bool | convergenceL2 (double r2, double hq2, double r2_tol, double hq_tol) |
Test for L2 solver convergence – ignore HQ residual. More... | |
void | PrintStats (const char *name, int k, double r2, double b2, double hq2) |
Prints out the running statistics of the solver (requires a verbosity of QUDA_VERBOSE) More... | |
void | PrintSummary (const char *name, int k, double r2, double b2, double r2_tol, double hq_tol) |
Prints out the summary of the solver convergence (requires a verbosity of QUDA_SUMMARIZE). Assumes SolverParam.true_res and SolverParam.true_res_hq has been set. More... | |
void | constructDeflationSpace (const ColorSpinorField &meta, const DiracMatrix &mat, bool svd) |
Constructs the deflation space. More... | |
virtual double | flops () const |
Private Attributes | |
const DiracMatrix & | mat |
const DiracMatrix & | matSloppy |
ColorSpinorField * | yp |
ColorSpinorField * | rp |
ColorSpinorField * | tmpp |
ColorSpinorField * | ArSp |
ColorSpinorField * | rSp |
ColorSpinorField * | xSp |
ColorSpinorField * | xS_oldp |
ColorSpinorField * | tmpSp |
ColorSpinorField * | rS_oldp |
ColorSpinorField * | tmp2Sp |
bool | init |
Additional Inherited Members | |
![]() | |
static Solver * | create (SolverParam ¶m, DiracMatrix &mat, DiracMatrix &matSloppy, DiracMatrix &matPrecon, TimeProfile &profile) |
static double | stopping (double tol, double b2, QudaResidualType residual_type) |
Set the solver L2 stopping condition. More... | |
![]() | |
EigenSolver * | eig_solve |
bool | deflate_init = false |
std::vector< ColorSpinorField * > | defl_tmp1 |
std::vector< ColorSpinorField * > | defl_tmp2 |
![]() | |
SolverParam & | param |
TimeProfile & | profile |
int | node_parity |
Definition at line 607 of file invert_quda.h.
quda::CG3::CG3 | ( | DiracMatrix & | mat, |
DiracMatrix & | matSloppy, | ||
SolverParam & | param, | ||
TimeProfile & | profile | ||
) |
Definition at line 16 of file inv_cg3_quda.cpp.
|
virtual |
Definition at line 21 of file inv_cg3_quda.cpp.
References ArSp, init, quda::DiracMatrix::isStaggered(), mat, quda::Solver::param, quda::SolverParam::precision, quda::SolverParam::precision_sloppy, rp, rS_oldp, rSp, tmp2Sp, tmpp, tmpSp, xS_oldp, xSp, and yp.
|
virtual |
Implements quda::Solver.
Definition at line 40 of file inv_cg3_quda.cpp.
References ArSp, quda::blas::axpby(), quda::blas::axpy(), quda::blas::axpyNorm(), quda::blas::caxpyNorm(), quda::blas::cDotProduct(), checkLocation, quda::SolverParam::compute_null_vector, quda::SolverParam::compute_true_res, quda::Solver::convergence(), quda::Solver::convergenceHQ(), quda::blas::copy(), quda::ColorSpinorParam::create, quda::ColorSpinorField::Create(), csParam, quda::SolverParam::delta, errorQuda, quda::blas::flops, quda::DiracMatrix::flops(), quda::SolverParam::gflops, quda::SolverParam::heavy_quark_check, quda::blas::HeavyQuarkResidualNorm(), init, quda::DiracMatrix::isStaggered(), quda::SolverParam::iter, quda::TimeProfile::Last(), mat, matSloppy, quda::SolverParam::max_res_increase, quda::SolverParam::max_res_increase_total, quda::SolverParam::maxiter, quda::blas::norm2(), quda::Solver::param, pipeline, quda::SolverParam::pipeline, quda::SolverParam::precision, quda::LatticeField::Precision(), quda::SolverParam::precision_sloppy, quda::SolverParam::preserve_source, printfQuda, quda::Solver::PrintStats(), quda::Solver::PrintSummary(), quda::Solver::profile, quda::blas::quadrupleCG3InitNorm(), quda::blas::quadrupleCG3UpdateNorm(), QUDA_COMPUTE_NULL_VECTOR_NO, QUDA_CUDA_FIELD_LOCATION, QUDA_HEAVY_QUARK_RESIDUAL, QUDA_PRESERVE_SOURCE_NO, quda::QUDA_PROFILE_COMPUTE, quda::QUDA_PROFILE_EPILOGUE, quda::QUDA_PROFILE_INIT, quda::QUDA_PROFILE_PREAMBLE, QUDA_USE_INIT_GUESS_NO, QUDA_USE_INIT_GUESS_YES, QUDA_ZERO_FIELD_CREATE, quda::blas::reDotProduct(), quda::SolverParam::residual_type, rp, rS_oldp, rSp, quda::SolverParam::secs, quda::ColorSpinorParam::setPrecision(), quda::sqrt(), quda::Solver::stopping(), tmp, tmp2Sp, tmpp, tmpSp, quda::SolverParam::tol, quda::SolverParam::tol_hq, quda::SolverParam::true_res, quda::SolverParam::true_res_hq, quda::SolverParam::use_init_guess, warningQuda, quda::blas::xmyNorm(), quda::blas::xpy(), quda::blas::xpyHeavyQuarkResidualNorm(), xS_oldp, xSp, yp, and quda::blas::zero().
|
private |
Definition at line 613 of file invert_quda.h.
Referenced by operator()(), and ~CG3().
|
private |
Definition at line 614 of file invert_quda.h.
Referenced by operator()(), and ~CG3().
|
private |
Definition at line 610 of file invert_quda.h.
Referenced by operator()(), and ~CG3().
|
private |
Definition at line 611 of file invert_quda.h.
Referenced by operator()().
|
private |
Definition at line 613 of file invert_quda.h.
Referenced by operator()(), and ~CG3().
|
private |
Definition at line 613 of file invert_quda.h.
Referenced by operator()(), and ~CG3().
|
private |
Definition at line 613 of file invert_quda.h.
Referenced by operator()(), and ~CG3().
|
private |
Definition at line 613 of file invert_quda.h.
Referenced by operator()(), and ~CG3().
|
private |
Definition at line 613 of file invert_quda.h.
Referenced by operator()(), and ~CG3().
|
private |
Definition at line 613 of file invert_quda.h.
Referenced by operator()(), and ~CG3().
|
private |
Definition at line 613 of file invert_quda.h.
Referenced by operator()(), and ~CG3().
|
private |
Definition at line 613 of file invert_quda.h.
Referenced by operator()(), and ~CG3().
|
private |
Definition at line 613 of file invert_quda.h.
Referenced by operator()(), and ~CG3().