QUDA  0.9.0
Functions | Variables
domain_wall_dslash_reference.cpp File Reference
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <quda.h>
#include <test_util.h>
#include <dslash_util.h>
#include <domain_wall_dslash_reference.h>
#include <blas_reference.h>
#include <gauge_field.h>
#include <color_spinor_field.h>
Include dependency graph for domain_wall_dslash_reference.cpp:

Go to the source code of this file.

Functions

int neighborIndex_4d (int i, int oddBit, int dx4, int dx3, int dx2, int dx1)
 
template<typename Float >
Float * gaugeLink_sgpu (int i, int dir, int oddBit, Float **gaugeEven, Float **gaugeOdd)
 
template<typename Float >
Float * gaugeLink_mgpu (int i, int dir, int oddBit, Float **gaugeEven, Float **gaugeOdd, Float **ghostGaugeEven, Float **ghostGaugeOdd, int n_ghost_faces, int nbr_distance)
 
template<typename Float >
void multiplySpinorByDiracProjector5 (Float *res, int projIdx, Float *spinorIn)
 
template<QudaDWFPCType type, typename sFloat , typename gFloat >
void dslashReference_4d_sgpu (sFloat *res, gFloat **gaugeFull, sFloat *spinorField, int oddBit, int daggerBit)
 
template<QudaDWFPCType type, bool zero_initialize = false, typename sFloat >
void dslashReference_5th (sFloat *res, sFloat *spinorField, int oddBit, int daggerBit, sFloat mferm)
 
template<typename sFloat >
void dslashReference_5th_inv (sFloat *res, sFloat *spinorField, int oddBit, int daggerBit, sFloat mferm, double *kappa)
 
void dw_dslash (void *out, void **gauge, void *in, int oddBit, int daggerBit, QudaPrecision precision, QudaGaugeParam &gauge_param, double mferm)
 
void dslash_4_4d (void *out, void **gauge, void *in, int oddBit, int daggerBit, QudaPrecision precision, QudaGaugeParam &gauge_param, double mferm)
 
void dw_dslash_5_4d (void *out, void **gauge, void *in, int oddBit, int daggerBit, QudaPrecision precision, QudaGaugeParam &gauge_param, double mferm, bool zero_initialize)
 
void dslash_5_inv (void *out, void **gauge, void *in, int oddBit, int daggerBit, QudaPrecision precision, QudaGaugeParam &gauge_param, double mferm, double *kappa)
 
void mdw_dslash_5 (void *out, void **gauge, void *in, int oddBit, int daggerBit, QudaPrecision precision, QudaGaugeParam &gauge_param, double mferm, double *kappa, bool zero_initialize)
 
void mdw_dslash_4_pre (void *out, void **gauge, void *in, int oddBit, int daggerBit, QudaPrecision precision, QudaGaugeParam &gauge_param, double mferm, double *b5, double *c5, bool zero_initialize)
 
void dw_mat (void *out, void **gauge, void *in, double kappa, int dagger_bit, QudaPrecision precision, QudaGaugeParam &gauge_param, double mferm)
 
void dw_4d_mat (void *out, void **gauge, void *in, double kappa, int dagger_bit, QudaPrecision precision, QudaGaugeParam &gauge_param, double mferm)
 
void mdw_mat (void *out, void **gauge, void *in, double *kappa_b, double *kappa_c, int dagger, QudaPrecision precision, QudaGaugeParam &gauge_param, double mferm, double *b5, double *c5)
 
void dw_matdagmat (void *out, void **gauge, void *in, double kappa, int dagger_bit, QudaPrecision precision, QudaGaugeParam &gauge_param, double mferm)
 
void dw_matpc (void *out, void **gauge, void *in, double kappa, QudaMatPCType matpc_type, int dagger_bit, QudaPrecision precision, QudaGaugeParam &gauge_param, double mferm)
 
void dw_4d_matpc (void *out, void **gauge, void *in, double kappa, QudaMatPCType matpc_type, int dagger_bit, QudaPrecision precision, QudaGaugeParam &gauge_param, double mferm)
 
void mdw_matpc (void *out, void **gauge, void *in, double *kappa_b, double *kappa_c, QudaMatPCType matpc_type, int dagger, QudaPrecision precision, QudaGaugeParam &gauge_param, double mferm, double *b5, double *c5)
 
void matpc (void *outEven, void **gauge, void *inEven, double kappa, QudaMatPCType matpc_type, int dagger_bit, QudaPrecision sPrecision, QudaPrecision gPrecision, double mferm)
 
void matdagmat (void *out, void **gauge, void *in, double kappa, QudaPrecision sPrecision, QudaPrecision gPrecision, double mferm)
 
void matpcdagmatpc (void *out, void **gauge, void *in, double kappa, QudaPrecision sPrecision, QudaPrecision gPrecision, double mferm, QudaMatPCType matpc_type)
 

Variables

const double projector [10][4][4][2]
 

Function Documentation

◆ dslash_4_4d()

void dslash_4_4d ( void *  out,
void **  gauge,
void *  in,
int  oddBit,
int  daggerBit,
QudaPrecision  precision,
QudaGaugeParam gauge_param,
double  mferm 
)

◆ dslash_5_inv()

void dslash_5_inv ( void *  out,
void **  gauge,
void *  in,
int  oddBit,
int  daggerBit,
QudaPrecision  precision,
QudaGaugeParam gauge_param,
double  mferm,
double kappa 
)

Definition at line 627 of file domain_wall_dslash_reference.cpp.

References dslashReference_5th_inv(), in, kappa, mferm, out, and QUDA_DOUBLE_PRECISION.

Referenced by dslashRef(), dw_4d_matpc(), and mdw_matpc().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ dslashReference_4d_sgpu()

template<QudaDWFPCType type, typename sFloat , typename gFloat >
void dslashReference_4d_sgpu ( sFloat *  res,
gFloat **  gaugeFull,
sFloat *  spinorField,
int  oddBit,
int  daggerBit 
)

◆ dslashReference_5th()

template<QudaDWFPCType type, bool zero_initialize = false, typename sFloat >
void dslashReference_5th ( sFloat *  res,
sFloat *  spinorField,
int  oddBit,
int  daggerBit,
sFloat  mferm 
)

◆ dslashReference_5th_inv()

template<typename sFloat >
void dslashReference_5th_inv ( sFloat *  res,
sFloat *  spinorField,
int  oddBit,
int  daggerBit,
sFloat  mferm,
double kappa 
)

Definition at line 404 of file domain_wall_dslash_reference.cpp.

References quda::ax(), quda::axpy(), free(), fused_exterior_ndeg_tm_dslash_cuda_gen::i, kappa, Ls, malloc(), memcpy(), mferm, quda::pow(), and Vh.

Referenced by dslash_5_inv().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ dw_4d_mat()

void dw_4d_mat ( void *  out,
void **  gauge,
void *  in,
double  kappa,
int  dagger_bit,
QudaPrecision  precision,
QudaGaugeParam gauge_param,
double  mferm 
)

Definition at line 684 of file domain_wall_dslash_reference.cpp.

References dslash_4_4d(), dw_dslash_5_4d(), gauge_param, in, kappa, mferm, out, spinorSiteSize, V5, V5h, and quda::blas::xpay().

Referenced by main().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ dw_4d_matpc()

void dw_4d_matpc ( void *  out,
void **  gauge,
void *  in,
double  kappa,
QudaMatPCType  matpc_type,
int  dagger_bit,
QudaPrecision  precision,
QudaGaugeParam gauge_param,
double  mferm 
)

Definition at line 767 of file domain_wall_dslash_reference.cpp.

References dslash_4_4d(), dslash_5_inv(), dw_dslash_5_4d(), free(), gauge_param, in, kappa, kappa5, Ls, malloc(), matpc_type, mferm, out, parity, QUDA_MATPC_EVEN_EVEN, QUDA_MATPC_ODD_ODD, QUDA_MATPC_ODD_ODD_ASYMMETRIC, spinorSiteSize, tmp, V5h, and quda::blas::xpay().

Referenced by dslashRef(), and main().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ dw_dslash()

void dw_dslash ( void *  out,
void **  gauge,
void *  in,
int  oddBit,
int  daggerBit,
QudaPrecision  precision,
QudaGaugeParam gauge_param,
double  mferm 
)

◆ dw_dslash_5_4d()

void dw_dslash_5_4d ( void *  out,
void **  gauge,
void *  in,
int  oddBit,
int  daggerBit,
QudaPrecision  precision,
QudaGaugeParam gauge_param,
double  mferm,
bool  zero_initialize 
)

Definition at line 616 of file domain_wall_dslash_reference.cpp.

References float, in, mferm, out, and QUDA_DOUBLE_PRECISION.

Referenced by dslashRef(), dw_4d_mat(), and dw_4d_matpc().

Here is the caller graph for this function:

◆ dw_mat()

void dw_mat ( void *  out,
void **  gauge,
void *  in,
double  kappa,
int  dagger_bit,
QudaPrecision  precision,
QudaGaugeParam gauge_param,
double  mferm 
)

Definition at line 670 of file domain_wall_dslash_reference.cpp.

References dw_dslash(), gauge_param, in, kappa, mferm, out, spinorSiteSize, V5, V5h, and quda::blas::xpay().

Referenced by dslashRef(), dw_matdagmat(), and main().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ dw_matdagmat()

void dw_matdagmat ( void *  out,
void **  gauge,
void *  in,
double  kappa,
int  dagger_bit,
QudaPrecision  precision,
QudaGaugeParam gauge_param,
double  mferm 
)

Definition at line 736 of file domain_wall_dslash_reference.cpp.

References dw_mat(), free(), gauge_param, in, kappa, malloc(), mferm, out, spinorSiteSize, tmp, and V5.

Referenced by dslashRef().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ dw_matpc()

void dw_matpc ( void *  out,
void **  gauge,
void *  in,
double  kappa,
QudaMatPCType  matpc_type,
int  dagger_bit,
QudaPrecision  precision,
QudaGaugeParam gauge_param,
double  mferm 
)

Definition at line 747 of file domain_wall_dslash_reference.cpp.

References dw_dslash(), free(), gauge_param, in, kappa, malloc(), matpc_type, mferm, out, QUDA_MATPC_EVEN_EVEN, QUDA_MATPC_EVEN_EVEN_ASYMMETRIC, spinorSiteSize, tmp, V5h, and quda::blas::xpay().

Referenced by dslashRef(), and main().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ gaugeLink_mgpu()

template<typename Float >
Float* gaugeLink_mgpu ( int  i,
int  dir,
int  oddBit,
Float **  gaugeEven,
Float **  gaugeOdd,
Float **  ghostGaugeEven,
Float **  ghostGaugeOdd,
int  n_ghost_faces,
int  nbr_distance 
)

Definition at line 88 of file domain_wall_dslash_reference.cpp.

References comm_dim_partitioned(), d, exit(), fullLatticeIndex(), fused_exterior_ndeg_tm_dslash_cuda_gen::i, offset, printf(), and Z.

Here is the call graph for this function:

◆ gaugeLink_sgpu()

template<typename Float >
Float* gaugeLink_sgpu ( int  i,
int  dir,
int  oddBit,
Float **  gaugeEven,
Float **  gaugeOdd 
)

Definition at line 57 of file domain_wall_dslash_reference.cpp.

References fused_exterior_ndeg_tm_dslash_cuda_gen::i, and neighborIndex_4d().

Referenced by dslashReference_4d_sgpu().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ matdagmat()

void matdagmat ( void *  out,
void **  gauge,
void *  in,
double  kappa,
QudaPrecision  sPrecision,
QudaPrecision  gPrecision,
double  mferm 
)

Definition at line 988 of file domain_wall_dslash_reference.cpp.

◆ matpc()

void matpc ( void *  outEven,
void **  gauge,
void *  inEven,
double  kappa,
QudaMatPCType  matpc_type,
int  dagger_bit,
QudaPrecision  sPrecision,
QudaPrecision  gPrecision,
double  mferm 
)

Definition at line 932 of file domain_wall_dslash_reference.cpp.

Referenced by quda::calculateY(), quda::CoarseCoarseOp(), and quda::CoarseOp().

Here is the caller graph for this function:

◆ matpcdagmatpc()

void matpcdagmatpc ( void *  out,
void **  gauge,
void *  in,
double  kappa,
QudaPrecision  sPrecision,
QudaPrecision  gPrecision,
double  mferm,
QudaMatPCType  matpc_type 
)

Definition at line 1009 of file domain_wall_dslash_reference.cpp.

◆ mdw_dslash_4_pre()

void mdw_dslash_4_pre ( void *  out,
void **  gauge,
void *  in,
int  oddBit,
int  daggerBit,
QudaPrecision  precision,
QudaGaugeParam gauge_param,
double  mferm,
double b5,
double c5,
bool  zero_initialize 
)

Definition at line 650 of file domain_wall_dslash_reference.cpp.

References axpby(), float, in, Ls, mferm, out, QUDA_DOUBLE_PRECISION, spinorSiteSize, and Vh.

Referenced by dslashRef(), mdw_mat(), and mdw_matpc().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ mdw_dslash_5()

void mdw_dslash_5 ( void *  out,
void **  gauge,
void *  in,
int  oddBit,
int  daggerBit,
QudaPrecision  precision,
QudaGaugeParam gauge_param,
double  mferm,
double kappa,
bool  zero_initialize 
)

Definition at line 636 of file domain_wall_dslash_reference.cpp.

References float, in, kappa, Ls, mferm, out, QUDA_DOUBLE_PRECISION, spinorSiteSize, Vh, and quda::blas::xpay().

Referenced by dslashRef(), mdw_mat(), and mdw_matpc().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ mdw_mat()

void mdw_mat ( void *  out,
void **  gauge,
void *  in,
double kappa_b,
double kappa_c,
int  dagger,
QudaPrecision  precision,
QudaGaugeParam gauge_param,
double  mferm,
double b5,
double c5 
)

Definition at line 701 of file domain_wall_dslash_reference.cpp.

References deg_tm_dslash_cuda_gen::dagger, dslash_4_4d(), free(), gauge_param, in, kappa5, Ls, malloc(), mdw_dslash_4_pre(), mdw_dslash_5(), mferm, out, spinorSiteSize, tmp, V5h, Vh, and quda::blas::xpay().

Referenced by main().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ mdw_matpc()

void mdw_matpc ( void *  out,
void **  gauge,
void *  in,
double kappa_b,
double kappa_c,
QudaMatPCType  matpc_type,
int  dagger,
QudaPrecision  precision,
QudaGaugeParam gauge_param,
double  mferm,
double b5,
double c5 
)

◆ multiplySpinorByDiracProjector5()

template<typename Float >
void multiplySpinorByDiracProjector5 ( Float *  res,
int  projIdx,
Float *  spinorIn 
)

Definition at line 237 of file domain_wall_dslash_reference.cpp.

References fused_exterior_ndeg_tm_dslash_cuda_gen::i, projector, s, and t.

Referenced by dslashReference_4d_sgpu(), and dslashReference_5th().

Here is the caller graph for this function:

◆ neighborIndex_4d()

int neighborIndex_4d ( int  i,
int  oddBit,
int  dx4,
int  dx3,
int  dx2,
int  dx1 
)

Definition at line 28 of file domain_wall_dslash_reference.cpp.

References exit(), fullLatticeIndex_4d(), fused_exterior_ndeg_tm_dslash_cuda_gen::i, printf(), X, and Z.

Referenced by gaugeLink_sgpu().

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ projector

const double projector[10][4][4][2]

Definition at line 169 of file domain_wall_dslash_reference.cpp.

Referenced by multiplySpinorByDiracProjector5().