QUDA  1.0.0
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Macros | Functions | Variables
invertmsrc_test.cpp File Reference
#include <stdlib.h>
#include <stdio.h>
#include <time.h>
#include <math.h>
#include <string.h>
#include <util_quda.h>
#include <test_util.h>
#include <dslash_util.h>
#include <blas_reference.h>
#include <wilson_dslash_reference.h>
#include <domain_wall_dslash_reference.h>
#include "misc.h"
#include <qio_field.h>
#include <quda.h>
Include dependency graph for invertmsrc_test.cpp:

Go to the source code of this file.

Macros

#define MAX(a, b)   ((a)>(b)?(a):(b))
 

Functions

void usage (char **)
 
void display_test_info ()
 
void usage_extra (char **argv)
 
int main (int argc, char **argv)
 

Variables

QudaDslashType dslash_type
 
QudaTwistFlavorType twist_flavor
 
int device
 
int xdim
 
int ydim
 
int zdim
 
int tdim
 
int Lsdim
 
int gridsize_from_cmdline []
 
QudaReconstructType link_recon
 
QudaPrecision prec
 
QudaReconstructType link_recon_sloppy
 
QudaPrecision prec_sloppy
 
QudaInverterType inv_type
 
QudaInverterType precon_type
 
int multishift
 
double mass
 
double anisotropy
 
double tol
 
double tol_hq
 
QudaMassNormalization normalization
 
QudaMatPCType matpc_type
 
int niter
 
char latfile []
 
bool unit_gauge
 

Macro Definition Documentation

◆ MAX

#define MAX (   a,
 
)    ((a)>(b)?(a):(b))

Definition at line 23 of file invertmsrc_test.cpp.

Referenced by main().

Function Documentation

◆ display_test_info()

void display_test_info ( )

Definition at line 64 of file invertmsrc_test.cpp.

References dimPartitioned(), dslash_type, get_dslash_str(), get_mass_normalization_str(), get_matpc_str(), get_prec_str(), get_recon_str(), link_recon, link_recon_sloppy, Lsdim, matpc_type, multishift, normalization, prec, prec_sloppy, printfQuda, tdim, xdim, ydim, and zdim.

Referenced by main().

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

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 100 of file invertmsrc_test.cpp.

References QudaGaugeParam_s::anisotropy, anisotropy, quda::blas::ax(), QudaInvertParam_s::b_5, QudaInvertParam_s::c_5, QudaInvertParam_s::cl_pad, QudaInvertParam_s::clover_coeff, QudaInvertParam_s::clover_cpu_prec, QudaInvertParam_s::clover_cuda_prec, QudaInvertParam_s::clover_cuda_prec_precondition, QudaInvertParam_s::clover_cuda_prec_sloppy, QudaInvertParam_s::clover_order, cloverSiteSize, construct_clover_field(), construct_gauge_field(), QudaGaugeParam_s::cpu_prec, cpu_prec, QudaInvertParam_s::cpu_prec, QudaGaugeParam_s::cuda_prec, cuda_prec, QudaInvertParam_s::cuda_prec, QudaGaugeParam_s::cuda_prec_precondition, cuda_prec_precondition, QudaInvertParam_s::cuda_prec_precondition, QudaGaugeParam_s::cuda_prec_sloppy, cuda_prec_sloppy, QudaInvertParam_s::cuda_prec_sloppy, QudaInvertParam_s::dagger, device, QudaInvertParam_s::dirac_order, display_test_info(), dslash_type, QudaInvertParam_s::dslash_type, dw_4d_matpc(), dw_mat(), dw_matpc(), dw_setDims(), endQuda(), QudaInvertParam_s::epsilon, errorQuda, finalizeComms(), freeCloverQuda(), freeGaugeQuda(), QudaGaugeParam_s::ga_pad, QudaInvertParam_s::gamma_basis, QudaGaugeParam_s::gauge_fix, QudaGaugeParam_s::gauge_order, gauge_param, gaugeSiteSize, QudaInvertParam_s::gcrNkrylov, QudaInvertParam_s::gflops, gridsize_from_cmdline, gSize, initComms(), initQuda(), QudaInvertParam_s::input_location, inv_param, inv_type, QudaInvertParam_s::inv_type, QudaInvertParam_s::inv_type_precondition, invertMultiSrcQuda(), invertQuda(), QudaInvertParam_s::iter, QudaInvertParam_s::kappa, kappa5, latfile, link_recon, link_recon_sloppy, loadCloverQuda(), loadGaugeQuda(), QudaInvertParam_s::Ls, Lsdim, QudaInvertParam_s::m5, mass, QudaInvertParam_s::mass, QudaInvertParam_s::mass_normalization, matpc_type, QudaInvertParam_s::matpc_type, MAX, QudaInvertParam_s::max_res_increase, QudaInvertParam_s::maxiter, QudaInvertParam_s::maxiter_precondition, mdw_matpc(), memset(), QudaInvertParam_s::mu, multishift, quda::blas::mxpy(), newQudaGaugeParam(), newQudaInvertParam(), niter, quda::norm(), norm_2(), normalization, QudaInvertParam_s::Nsteps, QudaInvertParam_s::num_offset, QudaInvertParam_s::num_src, QudaInvertParam_s::offset, QudaInvertParam_s::omega, QudaInvertParam_s::output_location, QudaInvertParam_s::pipeline, prec, prec_sloppy, precon_type, QudaInvertParam_s::precondition_cycle, QudaInvertParam_s::preserve_source, printfQuda, process_command_line_option(), QUDA_ADDITIVE_SCHWARZ, QUDA_CG_INVERTER, QUDA_CLOVER_WILSON_DSLASH, QUDA_CPU_FIELD_LOCATION, QUDA_DAG_NO, QUDA_DEFAULT_NORMALIZATION, QUDA_DEGRAND_ROSSI_GAMMA_BASIS, QUDA_DIRAC_ORDER, QUDA_DIRECT_PC_SOLVE, QUDA_DOMAIN_WALL_4D_DSLASH, QUDA_DOMAIN_WALL_DSLASH, QUDA_DOUBLE_PRECISION, QUDA_GAUGE_FIXED_NO, QUDA_HALF_PRECISION, QUDA_HEAVY_QUARK_RESIDUAL, QUDA_INVALID_PRECISION, QUDA_L2_RELATIVE_RESIDUAL, QUDA_MASS_NORMALIZATION, QUDA_MAT_SOLUTION, QUDA_MATPC_EVEN_EVEN_ASYMMETRIC, QUDA_MATPC_ODD_ODD_ASYMMETRIC, QUDA_MATPC_SOLUTION, QUDA_MATPCDAG_MATPC_SOLUTION, QUDA_MOBIUS_DWF_DSLASH, QUDA_NORMOP_PC_SOLVE, QUDA_PACKED_CLOVER_ORDER, QUDA_PERIODIC_T, QUDA_PRESERVE_SOURCE_YES, QUDA_QDP_GAUGE_ORDER, QUDA_RECONSTRUCT_INVALID, QUDA_SILENT, QUDA_SINGLE_PRECISION, QUDA_TWIST_NONDEG_DOUBLET, QUDA_TWIST_SINGLET, QUDA_TWISTED_CLOVER_DSLASH, QUDA_TWISTED_MASS_DSLASH, QUDA_VERBOSE, QUDA_WILSON_DSLASH, QUDA_WILSON_LINKS, read_gauge_field(), QudaGaugeParam_s::reconstruct, QudaGaugeParam_s::reconstruct_precondition, QudaGaugeParam_s::reconstruct_sloppy, QudaInvertParam_s::reliable_delta, QudaInvertParam_s::residual_type, QudaInvertParam_s::schwarz_type, QudaInvertParam_s::secs, setDims(), setSpinorSiteSize(), QudaInvertParam_s::solution_type, QudaInvertParam_s::solve_type, QudaInvertParam_s::solver_normalization, QudaInvertParam_s::sp_pad, spinorSiteSize, spinorTmp, quda::sqrt(), QudaGaugeParam_s::t_boundary, tdim, tm_mat(), tm_matpc(), tm_ndeg_mat(), tol, QudaInvertParam_s::tol, tol_hq, QudaInvertParam_s::tol_hq, QudaInvertParam_s::tol_hq_offset, QudaInvertParam_s::tol_offset, QudaInvertParam_s::tol_precondition, QudaInvertParam_s::tol_restart, QudaInvertParam_s::true_res_hq_offset, QudaInvertParam_s::true_res_offset, twist_flavor, QudaInvertParam_s::twist_flavor, QudaGaugeParam_s::type, unit_gauge, usage(), QudaInvertParam_s::use_sloppy_partial_accumulator, V, QudaInvertParam_s::verbosity, QudaInvertParam_s::verbosity_precondition, Vh, wil_mat(), wil_matpc(), QudaGaugeParam_s::X, xdim, ydim, and zdim.

Here is the call graph for this function:

◆ usage()

void usage ( char **  )

Definition at line 1783 of file test_util.cpp.

Referenced by main().

Here is the caller graph for this function:

◆ usage_extra()

void usage_extra ( char **  argv)

Definition at line 90 of file invertmsrc_test.cpp.

References printfQuda.

Variable Documentation

◆ anisotropy

double anisotropy

Definition at line 1650 of file test_util.cpp.

Referenced by main().

◆ device

int device

Definition at line 1602 of file test_util.cpp.

Referenced by main().

◆ dslash_type

QudaDslashType dslash_type

Definition at line 1621 of file test_util.cpp.

Referenced by display_test_info(), and main().

◆ gridsize_from_cmdline

int gridsize_from_cmdline[]

For MPI, the default node mapping is lexicographical with t varying fastest.

Definition at line 49 of file test_util.cpp.

Referenced by main().

◆ inv_type

QudaInverterType inv_type

Definition at line 1640 of file test_util.cpp.

Referenced by main().

◆ latfile

char latfile[]

Definition at line 1623 of file test_util.cpp.

Referenced by main().

◆ link_recon

QudaReconstructType link_recon

Definition at line 1605 of file test_util.cpp.

Referenced by display_test_info(), and main().

◆ link_recon_sloppy

QudaReconstructType link_recon_sloppy

Definition at line 1606 of file test_util.cpp.

Referenced by display_test_info(), and main().

◆ Lsdim

int Lsdim

Definition at line 1619 of file test_util.cpp.

Referenced by display_test_info(), and main().

◆ mass

double mass

Definition at line 1646 of file test_util.cpp.

Referenced by main().

◆ matpc_type

QudaMatPCType matpc_type

Definition at line 1662 of file test_util.cpp.

Referenced by display_test_info(), and main().

◆ multishift

int multishift

Definition at line 1642 of file test_util.cpp.

Referenced by display_test_info(), main(), and process_command_line_option().

◆ niter

int niter

Definition at line 1629 of file test_util.cpp.

Referenced by main().

◆ normalization

QudaMassNormalization normalization

Definition at line 1661 of file test_util.cpp.

Referenced by display_test_info(), main(), and process_command_line_option().

◆ prec

Definition at line 1608 of file test_util.cpp.

Referenced by display_test_info(), and main().

◆ prec_sloppy

QudaPrecision prec_sloppy

Definition at line 1609 of file test_util.cpp.

Referenced by display_test_info(), and main().

◆ precon_type

QudaInverterType precon_type

Definition at line 1641 of file test_util.cpp.

Referenced by main(), and process_command_line_option().

◆ tdim

int tdim

Definition at line 1618 of file test_util.cpp.

Referenced by display_test_info(), and main().

◆ tol

double tol

Definition at line 1656 of file test_util.cpp.

Referenced by main().

◆ tol_hq

double tol_hq

Definition at line 1657 of file test_util.cpp.

Referenced by main().

◆ twist_flavor

QudaTwistFlavorType twist_flavor

Definition at line 1660 of file test_util.cpp.

Referenced by main().

◆ unit_gauge

bool unit_gauge

Definition at line 1624 of file test_util.cpp.

Referenced by main().

◆ xdim

int xdim

Definition at line 1615 of file test_util.cpp.

Referenced by display_test_info(), and main().

◆ ydim

int ydim

Definition at line 1616 of file test_util.cpp.

Referenced by display_test_info(), and main().

◆ zdim

int zdim

Definition at line 1617 of file test_util.cpp.

Referenced by display_test_info(), and main().