QUDA  v1.1.0
A library for QCD on GPUs
Public Member Functions | List of all members
quda::DiracTwistedCloverPC Class Reference

#include <dirac_quda.h>

+ Inheritance diagram for quda::DiracTwistedCloverPC:

Public Member Functions

 DiracTwistedCloverPC (const DiracTwistedCloverPC &dirac)
 
 DiracTwistedCloverPC (const DiracParam &param, const int nDim)
 
virtual ~DiracTwistedCloverPC ()
 
DiracTwistedCloverPCoperator= (const DiracTwistedCloverPC &dirac)
 
void TwistCloverInv (ColorSpinorField &out, const ColorSpinorField &in, const int parity) const
 
virtual void Dslash (ColorSpinorField &out, const ColorSpinorField &in, const QudaParity parity) const
 apply 'dslash' operator for the DiracOp. This may be e.g. AD More...
 
virtual void DslashXpay (ColorSpinorField &out, const ColorSpinorField &in, const QudaParity parity, const ColorSpinorField &x, const double &k) const
 Xpay version of Dslash. More...
 
void M (ColorSpinorField &out, const ColorSpinorField &in) const
 Apply M for the dirac op. E.g. the Schur Complement operator. More...
 
void MdagM (ColorSpinorField &out, const ColorSpinorField &in) const
 Apply MdagM operator which may be optimized. More...
 
void prepare (ColorSpinorField *&src, ColorSpinorField *&sol, ColorSpinorField &x, ColorSpinorField &b, const QudaSolutionType) const
 
void reconstruct (ColorSpinorField &x, const ColorSpinorField &b, const QudaSolutionType) const
 
virtual QudaDiracType getDiracType () const
 returns the Dirac type More...
 
void createCoarseOp (GaugeField &Y, GaugeField &X, const Transfer &T, double kappa, double mass, double mu, double mu_factor=0.) const
 Create the coarse even-odd preconditioned twisted-clover operator. Unlike the Wilson operator, the coarsening of the preconditioned clover operator differs from that of the unpreconditioned clover operator, so we need to specialize it. More...
 
virtual void prefetch (QudaFieldLocation mem_space, qudaStream_t stream=0) const
 If managed memory and prefetch is enabled, prefetch all relevant memory fields (gauge, clover, temporary spinors). Will only grab the inverse clover unless the clover field is needed for asymmetric preconditioning to the CPU or GPU as requested. More...
 
- Public Member Functions inherited from quda::DiracTwistedClover
 DiracTwistedClover (const DiracTwistedClover &dirac)
 
 DiracTwistedClover (const DiracParam &param, const int nDim)
 
virtual ~DiracTwistedClover ()
 
DiracTwistedCloveroperator= (const DiracTwistedClover &dirac)
 
void TwistClover (ColorSpinorField &out, const ColorSpinorField &in, const int parity) const
 
double Mu () const
 accessor for twist parameter – overrride can return better value More...
 
virtual void updateFields (cudaGaugeField *gauge_in, cudaGaugeField *fat_gauge_in, cudaGaugeField *long_gauge_in, cudaCloverField *clover_in)
 Update the internal gauge, fat gauge, long gauge, clover field pointer as appropriate. These are pointers as opposed to references to support passing in nullptr. More...
 
- Public Member Functions inherited from quda::DiracWilson
 DiracWilson (const DiracParam &param)
 
 DiracWilson (const DiracWilson &dirac)
 
 DiracWilson (const DiracParam &param, const int nDims)
 
virtual ~DiracWilson ()
 
DiracWilsonoperator= (const DiracWilson &dirac)
 
- Public Member Functions inherited from quda::Dirac
 Dirac (const DiracParam &param)
 
 Dirac (const Dirac &dirac)
 
virtual ~Dirac ()
 
Diracoperator= (const Dirac &dirac)
 
void setCommDim (const int commDim_[QUDA_MAX_DIM]) const
 Enable / disable communications for the Dirac operator. More...
 
virtual bool isCoarse () const
 Whether the Dirac object is the DiracCoarse. More...
 
virtual void checkFullSpinor (const ColorSpinorField &, const ColorSpinorField &) const
 check full spinors are compatible (check geometry ?) More...
 
void checkSpinorAlias (const ColorSpinorField &, const ColorSpinorField &) const
 check spinors do not alias More...
 
virtual bool hasDslash () const
 Whether or not the operator has a single-parity Dslash. More...
 
virtual void MdagMLocal (ColorSpinorField &out, const ColorSpinorField &in) const
 Apply the local MdagM operator: equivalent to applying zero Dirichlet boundary condition to MdagM on each rank. Depending on the number of stencil steps of the fermion type, this may require additional effort to include the terms that hop out of the boundary and then hop back. More...
 
virtual void Dslash4 (ColorSpinorField &out, const ColorSpinorField &in, const QudaParity parity) const
 Apply the local MdagM operator: equivalent to applying zero Dirichlet boundary condition to MdagM on each rank. Depending on the number of stencil steps of the fermion type, this may require additional effort to include the terms that hop out of the boundary and then hop back. More...
 
void Mdag (ColorSpinorField &out, const ColorSpinorField &in) const
 Apply Mdag (daggered operator of M. More...
 
void MMdag (ColorSpinorField &out, const ColorSpinorField &in) const
 Apply Normal Operator. More...
 
virtual void prepareSpecialMG (ColorSpinorField *&src, ColorSpinorField *&sol, ColorSpinorField &x, ColorSpinorField &b, const QudaSolutionType solType) const
 
virtual void reconstructSpecialMG (ColorSpinorField &x, const ColorSpinorField &b, const QudaSolutionType solType) const
 
virtual bool hasSpecialMG () const
 specifies whether or not there's a specialized prepare/reconstruct used before/after transfering to/from the coarse level in MG More...
 
void setMass (double mass)
 
double Kappa () const
 accessor for Kappa (mass parameter) More...
 
virtual double Mass () const
 accessor for Mass (in case of a factor of 2 for staggered) More...
 
virtual double MuFactor () const
 accessor for mu factoo for MG/ – override can return a better value More...
 
unsigned long long Flops () const
 returns and then zeroes flopcount More...
 
QudaMatPCType getMatPCType () const
 returns preconditioning type More...
 
int getStencilSteps () const
 I have no idea what this does. More...
 
void Dagger (QudaDagType dag) const
 sets whether operator is daggered or not More...
 
void flipDagger () const
 Flips value of daggered. More...
 
virtual bool hermitian () const
 is operator hermitian More...
 
QudaPrecision HaloPrecision () const
 
void setHaloPrecision (QudaPrecision halo_precision_) const
 
- Public Member Functions inherited from quda::Object
 Object ()
 
virtual ~Object ()
 

Additional Inherited Members

- Static Public Member Functions inherited from quda::Dirac
static Diraccreate (const DiracParam &param)
 Creates a subclass from parameters. More...
 
- Static Public Member Functions inherited from quda::Object
static void * operator new (std::size_t size)
 
static void operator delete (void *p)
 
static void * operator new[] (std::size_t size)
 
static void operator delete[] (void *p)
 
- Protected Member Functions inherited from quda::DiracTwistedClover
void checkParitySpinor (const ColorSpinorField &, const ColorSpinorField &) const
 Check parity spinors are usable (check geometry ?) More...
 
void twistedCloverApply (ColorSpinorField &out, const ColorSpinorField &in, const QudaTwistGamma5Type twistType, const int parity) const
 
- Protected Member Functions inherited from quda::DiracWilson
void initConstants ()
 
- Protected Member Functions inherited from quda::Dirac
bool newTmp (ColorSpinorField **, const ColorSpinorField &) const
 
void deleteTmp (ColorSpinorField **, const bool &reset) const
 
- Protected Attributes inherited from quda::DiracTwistedClover
double mu
 
double epsilon
 
cudaCloverFieldclover
 
- Protected Attributes inherited from quda::Dirac
cudaGaugeFieldgauge
 
double kappa
 
double mass
 
int laplace3D
 
QudaMatPCType matpcType
 
QudaDagType dagger
 
unsigned long long flops
 
ColorSpinorFieldtmp1
 
ColorSpinorFieldtmp2
 
QudaDiracType type
 
QudaPrecision halo_precision
 
int commDim [QUDA_MAX_DIM]
 
TimeProfile profile
 

Detailed Description

Definition at line 1128 of file dirac_quda.h.

Constructor & Destructor Documentation

◆ DiracTwistedCloverPC() [1/2]

quda::DiracTwistedCloverPC::DiracTwistedCloverPC ( const DiracTwistedCloverPC dirac)

swap the order of the derivative D and the diagonal inverse A^{-1}

Definition at line 142 of file dirac_twisted_clover.cpp.

◆ DiracTwistedCloverPC() [2/2]

quda::DiracTwistedCloverPC::DiracTwistedCloverPC ( const DiracParam param,
const int  nDim 
)

Definition at line 148 of file dirac_twisted_clover.cpp.

◆ ~DiracTwistedCloverPC()

quda::DiracTwistedCloverPC::~DiracTwistedCloverPC ( )
virtual

Definition at line 154 of file dirac_twisted_clover.cpp.

Member Function Documentation

◆ createCoarseOp()

void quda::DiracTwistedCloverPC::createCoarseOp ( GaugeField Y,
GaugeField X,
const Transfer T,
double  kappa,
double  mass,
double  mu,
double  mu_factor = 0. 
) const
virtual

Create the coarse even-odd preconditioned twisted-clover operator. Unlike the Wilson operator, the coarsening of the preconditioned clover operator differs from that of the unpreconditioned clover operator, so we need to specialize it.

Parameters
T[in]Transfer operator defining the coarse grid
Y[out]Coarse link field
X[out]Coarse clover field
kappaKappa parameter for the coarse operator
massMass parameter for the coarse operator (gets explicitly built into clover, hard coded to zero for non-staggered ops)
muTM mu parameter for the coarse operator
mu_factormultiplicative factor for the mu parameter

Reimplemented from quda::DiracTwistedClover.

Definition at line 340 of file dirac_twisted_clover.cpp.

◆ Dslash()

void quda::DiracTwistedCloverPC::Dslash ( ColorSpinorField out,
const ColorSpinorField in,
const QudaParity  parity 
) const
virtual

apply 'dslash' operator for the DiracOp. This may be e.g. AD

Reimplemented from quda::DiracTwistedClover.

Definition at line 175 of file dirac_twisted_clover.cpp.

◆ DslashXpay()

void quda::DiracTwistedCloverPC::DslashXpay ( ColorSpinorField out,
const ColorSpinorField in,
const QudaParity  parity,
const ColorSpinorField x,
const double &  k 
) const
virtual

Xpay version of Dslash.

Reimplemented from quda::DiracTwistedClover.

Definition at line 199 of file dirac_twisted_clover.cpp.

◆ getDiracType()

virtual QudaDiracType quda::DiracTwistedCloverPC::getDiracType ( ) const
inlinevirtual

returns the Dirac type

Returns
Dirac type

Reimplemented from quda::DiracTwistedClover.

Definition at line 1153 of file dirac_quda.h.

◆ M()

void quda::DiracTwistedCloverPC::M ( ColorSpinorField out,
const ColorSpinorField in 
) const
virtual

Apply M for the dirac op. E.g. the Schur Complement operator.

Reimplemented from quda::DiracTwistedClover.

Definition at line 222 of file dirac_twisted_clover.cpp.

◆ MdagM()

void quda::DiracTwistedCloverPC::MdagM ( ColorSpinorField out,
const ColorSpinorField in 
) const
virtual

Apply MdagM operator which may be optimized.

Reimplemented from quda::DiracTwistedClover.

Definition at line 252 of file dirac_twisted_clover.cpp.

◆ operator=()

DiracTwistedCloverPC & quda::DiracTwistedCloverPC::operator= ( const DiracTwistedCloverPC dirac)

Definition at line 159 of file dirac_twisted_clover.cpp.

◆ prefetch()

void quda::DiracTwistedCloverPC::prefetch ( QudaFieldLocation  mem_space,
qudaStream_t  stream = 0 
) const
virtual

If managed memory and prefetch is enabled, prefetch all relevant memory fields (gauge, clover, temporary spinors). Will only grab the inverse clover unless the clover field is needed for asymmetric preconditioning to the CPU or GPU as requested.

Parameters
[in]mem_spaceMemory space we are prefetching to
[in]streamWhich stream to run the prefetch in (default 0)

Reimplemented from quda::DiracTwistedClover.

Definition at line 349 of file dirac_twisted_clover.cpp.

◆ prepare()

void quda::DiracTwistedCloverPC::prepare ( ColorSpinorField *&  src,
ColorSpinorField *&  sol,
ColorSpinorField x,
ColorSpinorField b,
const QudaSolutionType  solType 
) const
virtual

Reimplemented from quda::DiracTwistedClover.

Definition at line 261 of file dirac_twisted_clover.cpp.

◆ reconstruct()

void quda::DiracTwistedCloverPC::reconstruct ( ColorSpinorField x,
const ColorSpinorField b,
const QudaSolutionType  solType 
) const
virtual

Reimplemented from quda::DiracTwistedClover.

Definition at line 312 of file dirac_twisted_clover.cpp.

◆ TwistCloverInv()

void quda::DiracTwistedCloverPC::TwistCloverInv ( ColorSpinorField out,
const ColorSpinorField in,
const int  parity 
) const

Definition at line 168 of file dirac_twisted_clover.cpp.


The documentation for this class was generated from the following files: