QUDA
1.0.0
|
#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>
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 |
#define MAX | ( | a, | |
b | |||
) | ((a)>(b)?(a):(b)) |
Definition at line 23 of file invertmsrc_test.cpp.
Referenced by main().
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().
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.
void usage | ( | char ** | ) |
Definition at line 1783 of file test_util.cpp.
Referenced by main().
void usage_extra | ( | char ** | argv | ) |
Definition at line 90 of file invertmsrc_test.cpp.
References printfQuda.
double anisotropy |
Definition at line 1650 of file test_util.cpp.
Referenced by main().
int device |
Definition at line 1602 of file test_util.cpp.
Referenced by main().
QudaDslashType dslash_type |
Definition at line 1621 of file test_util.cpp.
Referenced by display_test_info(), and main().
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().
QudaInverterType inv_type |
Definition at line 1640 of file test_util.cpp.
Referenced by main().
char latfile[] |
Definition at line 1623 of file test_util.cpp.
Referenced by main().
QudaReconstructType link_recon |
Definition at line 1605 of file test_util.cpp.
Referenced by display_test_info(), and main().
QudaReconstructType link_recon_sloppy |
Definition at line 1606 of file test_util.cpp.
Referenced by display_test_info(), and main().
int Lsdim |
Definition at line 1619 of file test_util.cpp.
Referenced by display_test_info(), and main().
double mass |
Definition at line 1646 of file test_util.cpp.
Referenced by main().
QudaMatPCType matpc_type |
Definition at line 1662 of file test_util.cpp.
Referenced by display_test_info(), and main().
int multishift |
Definition at line 1642 of file test_util.cpp.
Referenced by display_test_info(), main(), and process_command_line_option().
int niter |
Definition at line 1629 of file test_util.cpp.
Referenced by main().
QudaMassNormalization normalization |
Definition at line 1661 of file test_util.cpp.
Referenced by display_test_info(), main(), and process_command_line_option().
QudaPrecision prec |
Definition at line 1608 of file test_util.cpp.
Referenced by display_test_info(), and main().
QudaPrecision prec_sloppy |
Definition at line 1609 of file test_util.cpp.
Referenced by display_test_info(), and main().
QudaInverterType precon_type |
Definition at line 1641 of file test_util.cpp.
Referenced by main(), and process_command_line_option().
int tdim |
Definition at line 1618 of file test_util.cpp.
Referenced by display_test_info(), and main().
double tol |
Definition at line 1656 of file test_util.cpp.
Referenced by main().
double tol_hq |
Definition at line 1657 of file test_util.cpp.
Referenced by main().
QudaTwistFlavorType twist_flavor |
Definition at line 1660 of file test_util.cpp.
Referenced by main().
bool unit_gauge |
Definition at line 1624 of file test_util.cpp.
Referenced by main().
int xdim |
Definition at line 1615 of file test_util.cpp.
Referenced by display_test_info(), and main().
int ydim |
Definition at line 1616 of file test_util.cpp.
Referenced by display_test_info(), and main().
int zdim |
Definition at line 1617 of file test_util.cpp.
Referenced by display_test_info(), and main().