QUDA  1.0.0
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Macros | Functions | Variables
hisq_stencil_test.cpp File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/time.h>
#include <cuda.h>
#include <cuda_runtime.h>
#include "quda.h"
#include "gauge_field.h"
#include "test_util.h"
#include "llfat_reference.h"
#include "misc.h"
#include "util_quda.h"
#include "malloc_quda.h"
#include <unitarization_links.h>
#include "dslash_quda.h"
#include "ks_improved_force.h"
Include dependency graph for hisq_stencil_test.cpp:

Go to the source code of this file.

Macros

#define TDIFF(a, b)   (b.tv_sec - a.tv_sec + 0.000001*(b.tv_usec - a.tv_usec))
 

Functions

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

Variables

bool verify_results
 
int device
 
int xdim
 
int ydim
 
int zdim
 
int tdim
 
int gridsize_from_cmdline []
 
QudaReconstructType link_recon
 
QudaPrecision prec
 
int niter
 
double tadpole_factor
 
double eps_naik
 
static int n_naiks = 1
 
static QudaPrecision cpu_prec = QUDA_DOUBLE_PRECISION
 
static QudaGaugeFieldOrder gauge_order = QUDA_MILC_GAUGE_ORDER
 
static size_t gSize
 
static double unitarize_eps = 1e-6
 
static bool reunit_allow_svd = true
 
static bool reunit_svd_only = false
 
static double svd_rel_error = 1e-4
 
static double svd_abs_error = 1e-4
 
static double max_allowed_error = 1e-11
 

Macro Definition Documentation

◆ TDIFF

#define TDIFF (   a,
 
)    (b.tv_sec - a.tv_sec + 0.000001*(b.tv_usec - a.tv_usec))

Definition at line 23 of file hisq_stencil_test.cpp.

Referenced by hisq_test().

Function Documentation

◆ display_test_info()

static void display_test_info ( )
static

Definition at line 440 of file hisq_stencil_test.cpp.

References dimPartitioned(), gauge_order, get_gauge_order_str(), get_prec_str(), get_recon_str(), link_recon, n_naiks, prec, 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:

◆ hisq_test()

static void hisq_test ( )
static

Definition at line 70 of file hisq_stencil_test.cpp.

References QudaGaugeParam_s::anisotropy, compare_floats(), computeHISQLinksCPU(), computeKSLinkQuda(), cpu_axy(), cpu_prec, QudaGaugeParam_s::cpu_prec, cpu_xpy(), createSiteLinkCPU(), QudaGaugeParam_s::cuda_prec, QudaGaugeParam_s::cuda_prec_sloppy, device, endQuda(), eps_naik, errorQuda, exchange_llfat_cleanup(), fatlink, quda::blas::flops, QudaGaugeParam_s::ga_pad, QudaGaugeParam_s::gauge_fix, QudaGaugeParam_s::gauge_order, gauge_order, gaugeSiteSize, quda::LatticeFieldParam::ghostExchange, gParam, gSize, host_free, initQuda(), link_recon, quda::GaugeFieldParam::link_type, longlink, max_allowed_error, memset(), n_naiks, newQudaGaugeParam(), niter, quda::GaugeFieldParam::order, quda::LatticeFieldParam::pad, pinned_malloc, prec, printfQuda, QUDA_ANTI_PERIODIC_T, QUDA_GAUGE_FIXED_NO, QUDA_GENERAL_LINKS, QUDA_GHOST_EXCHANGE_NO, QUDA_HALF_PRECISION, QUDA_MILC_GAUGE_ORDER, QUDA_QUARTER_PRECISION, QUDA_STAGGERED_PHASE_MILC, QUDA_WILSON_LINKS, qudaGaugeParam, QudaGaugeParam_s::reconstruct, QudaGaugeParam_s::reconstruct_sloppy, reunit_allow_svd, reunit_svd_only, safe_malloc, setDims(), quda::setUnitarizeLinksConstants(), QudaGaugeParam_s::staggered_phase_type, strong_check_link(), svd_abs_error, svd_rel_error, QudaGaugeParam_s::t_boundary, QudaGaugeParam_s::tadpole_coeff, tadpole_factor, TDIFF, tdim, QudaGaugeParam_s::type, unitarize_eps, V, verify_results, QudaGaugeParam_s::X, 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 
)

◆ usage()

void usage ( char **  argv)

Definition at line 1783 of file test_util.cpp.

Referenced by main().

Here is the caller graph for this function:

Variable Documentation

◆ cpu_prec

Definition at line 45 of file hisq_stencil_test.cpp.

Referenced by hisq_test(), and main().

◆ device

int device

Definition at line 1602 of file test_util.cpp.

Referenced by hisq_test().

◆ eps_naik

double eps_naik

Definition at line 1652 of file test_util.cpp.

Referenced by hisq_test(), and main().

◆ gauge_order

Definition at line 46 of file hisq_stencil_test.cpp.

Referenced by display_test_info(), and hisq_test().

◆ 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().

◆ gSize

size_t gSize
static

◆ link_recon

QudaReconstructType link_recon

Definition at line 1605 of file test_util.cpp.

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

◆ max_allowed_error

double max_allowed_error = 1e-11
static

Definition at line 59 of file hisq_stencil_test.cpp.

Referenced by hisq_test().

◆ n_naiks

int n_naiks = 1
static

Definition at line 43 of file hisq_stencil_test.cpp.

Referenced by computeHISQLinksCPU(), display_test_info(), hisq_test(), and main().

◆ niter

int niter

Definition at line 1629 of file test_util.cpp.

Referenced by hisq_test().

◆ prec

Definition at line 1608 of file test_util.cpp.

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

◆ reunit_allow_svd

bool reunit_allow_svd = true
static

◆ reunit_svd_only

bool reunit_svd_only = false
static

◆ svd_abs_error

double svd_abs_error = 1e-4
static

◆ svd_rel_error

double svd_rel_error = 1e-4
static

◆ tadpole_factor

double tadpole_factor

Definition at line 1651 of file test_util.cpp.

Referenced by hisq_test().

◆ tdim

int tdim

Definition at line 1618 of file test_util.cpp.

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

◆ unitarize_eps

double unitarize_eps = 1e-6
static

◆ verify_results

bool verify_results

Definition at line 1643 of file test_util.cpp.

Referenced by hisq_test().

◆ xdim

int xdim

Definition at line 1615 of file test_util.cpp.

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

◆ ydim

int ydim

Definition at line 1616 of file test_util.cpp.

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

◆ zdim

int zdim

Definition at line 1617 of file test_util.cpp.

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