|
QUDA
0.9.0
|
#include <quda.h>

Go to the source code of this file.
Macros | |
| #define | gaugeSiteSize 18 |
| #define | spinorSiteSize 24 |
| #define | cloverSiteSize 72 |
| #define | momSiteSize 10 |
| #define | hwSiteSize 12 |
Variables | |
| int | Z [4] |
| int | V |
| int | Vh |
| int | Vs_x |
| int | Vs_y |
| int | Vs_z |
| int | Vs_t |
| int | Vsh_x |
| int | Vsh_y |
| int | Vsh_z |
| int | Vsh_t |
| int | faceVolume [4] |
| int | E1 |
| int | E1h |
| int | E2 |
| int | E3 |
| int | E4 |
| int | E [4] |
| int | V_ex |
| int | Vh_ex |
| int | Ls |
| int | V5 |
| int | V5h |
| int | mySpinorSiteSize |
| #define cloverSiteSize 72 |
Definition at line 8 of file test_util.h.
| #define gaugeSiteSize 18 |
Definition at line 6 of file test_util.h.
Referenced by applyGaugeFieldScaling(), applyGaugeFieldScaling_long(), construct_fat_long_gauge_field(), constructGaugeField(), constructUnitaryGaugeField(), constructUnitGaugeField(), covdevReference(), createMomCPU(), createSiteLinkCPU(), display_link(), dslashReference(), dslashReference_4d_sgpu(), gauge_force_reference_dir(), gauge_force_test(), hisq_force_test(), init(), invert_test(), link_sanity_check(), llfat_test(), main(), printGaugeElement(), printLinkElement(), site_link_sanity_check(), SU3test(), TEST(), and unitarize_link_test().
| #define hwSiteSize 12 |
Definition at line 10 of file test_util.h.
Referenced by createHwCPU(), and hisq_force_init().
| #define momSiteSize 10 |
Definition at line 9 of file test_util.h.
Referenced by compare_mom(), createMomCPU(), gauge_force_test(), hisq_force_test(), and printMomElement().
| #define spinorSiteSize 24 |
Definition at line 7 of file test_util.h.
| void check_gauge | ( | void ** | , |
| void ** | , | ||
| double | epsilon, | ||
| QudaPrecision | precision | ||
| ) |
Definition at line 1219 of file test_util.cpp.
References checkGauge(), and QUDA_DOUBLE_PRECISION.
Referenced by SU3test().


| int compare_floats | ( | void * | a, |
| void * | b, | ||
| int | len, | ||
| double | epsilon, | ||
| QudaPrecision | precision | ||
| ) |
Definition at line 437 of file test_util.cpp.
References a, b, compareFloats(), len, and QUDA_DOUBLE_PRECISION.
Referenced by gauge_force_test(), hisq_force_test(), llfat_test(), and TEST().


| void compare_spinor | ( | void * | spinor_cpu, |
| void * | spinor_gpu, | ||
| int | len, | ||
| QudaPrecision | precision | ||
| ) |
| void construct_clover_field | ( | void * | clover, |
| double | norm, | ||
| double | diag, | ||
| QudaPrecision | precision | ||
| ) |
Definition at line 1166 of file test_util.cpp.
References dslash_cuda_gen::clover, constructCloverField(), quda::norm(), and QUDA_DOUBLE_PRECISION.
Referenced by init(), and main().


| void construct_fat_long_gauge_field | ( | void ** | fatlink, |
| void ** | longlink, | ||
| int | type, | ||
| QudaPrecision | precision, | ||
| QudaGaugeParam * | , | ||
| QudaDslashType | dslash_type | ||
| ) |
Definition at line 1069 of file test_util.cpp.
References constructGaugeField(), constructUnitGaugeField(), dslash_type, fatlink, gaugeSiteSize, fused_exterior_ndeg_tm_dslash_cuda_gen::i, longlink, param, quda::polar(), QUDA_ASQTAD_DSLASH, QUDA_ASQTAD_FAT_LINKS, QUDA_ASQTAD_LONG_LINKS, QUDA_DOUBLE_PRECISION, QUDA_RECONSTRUCT_13, QUDA_RECONSTRUCT_9, QUDA_STAGGERED_DSLASH, rand(), QudaGaugeParam_s::reconstruct, QudaGaugeParam_s::type, V, and z.
Referenced by init(), and invert_test().


| void construct_gauge_field | ( | void ** | gauge, |
| int | type, | ||
| QudaPrecision | precision, | ||
| QudaGaugeParam * | param | ||
| ) |
Definition at line 1054 of file test_util.cpp.
References applyGaugeFieldScaling(), constructGaugeField(), constructUnitGaugeField(), param, QUDA_DOUBLE_PRECISION, and Vh.
Referenced by init(), invert_test(), main(), and SU3test().


| void construct_spinor_field | ( | void * | spinor, |
| int | type, | ||
| int | i0, | ||
| int | s0, | ||
| int | c0, | ||
| QudaPrecision | precision | ||
| ) |
| void createHwCPU | ( | void * | hw, |
| QudaPrecision | precision | ||
| ) |
Definition at line 1492 of file test_util.cpp.
References hw, hwSiteSize, fused_exterior_ndeg_tm_dslash_cuda_gen::i, QUDA_DOUBLE_PRECISION, rand(), and V.
Referenced by hisq_force_init().


| void createMomCPU | ( | void * | mom, |
| QudaPrecision | precision | ||
| ) |
Definition at line 1454 of file test_util.cpp.
References exit(), float, fprintf(), free(), gaugeSiteSize, gSize, fused_exterior_ndeg_tm_dslash_cuda_gen::i, malloc(), momSiteSize, QUDA_DOUBLE_PRECISION, rand(), and V.
Referenced by gauge_force_test().


| void createSiteLinkCPU | ( | void ** | link, |
| QudaPrecision | precision, | ||
| int | phase | ||
| ) |
Definition at line 1229 of file test_util.cpp.
References dw_dslash_4D_cuda_gen::coeff(), commCoords(), commDim(), constructUnitaryGaugeField(), e, exit(), f, fabs(), fabsf(), fprintf(), full_idx, fullLatticeIndex(), gaugeSiteSize, fused_exterior_ndeg_tm_dslash_cuda_gen::i, idx, printf(), QUDA_DOUBLE_PRECISION, QUDA_SINGLE_PRECISION, TUP, V, Vh, XUP, YUP, Z, and ZUP.
Referenced by createNoisyLinkCPU(), gauge_force_test(), hisq_force_init(), llfat_test(), and unitarize_link_test().


Definition at line 1686 of file test_util.cpp.
References dim, dim_partitioned, and gridsize_from_cmdline.
Referenced by display_test_info().

Definition at line 167 of file test_util.cpp.
References d, faceVolume, fused_exterior_ndeg_tm_dslash_cuda_gen::i, Ls, V, V5, V5h, Vh, Vs_t, Vsh_t, X, and Z.
Referenced by init(), invert_test(), and main().

| void exchange_cpu_sitelink | ( | int * | X, |
| void ** | sitelink, | ||
| void ** | ghost_sitelink, | ||
| void ** | ghost_sitelink_diag, | ||
| QudaPrecision | gPrecision, | ||
| QudaGaugeParam * | param, | ||
| int | optflag | ||
| ) |
| void exchange_cpu_sitelink_ex | ( | int * | X, |
| int * | R, | ||
| void ** | sitelink, | ||
| QudaGaugeFieldOrder | cpu_order, | ||
| QudaPrecision | gPrecision, | ||
| int | optflag, | ||
| int | geometry | ||
| ) |
| void exchange_cpu_staple | ( | int * | X, |
| void * | staple, | ||
| void ** | ghost_staple, | ||
| QudaPrecision | gPrecision | ||
| ) |
| void exchange_llfat_cleanup | ( | void | ) |
| void exchange_llfat_init | ( | QudaPrecision | prec | ) |
| void finalizeComms | ( | ) |
Definition at line 107 of file test_util.cpp.
Referenced by main(), and SU3test().

Definition at line 455 of file test_util.cpp.
References fused_exterior_ndeg_tm_dslash_cuda_gen::i, sid, X, Z, za, and zb.
Definition at line 658 of file test_util.cpp.
References exit(), fused_exterior_ndeg_tm_dslash_cuda_gen::i, printf(), sid, Vh, X, Z, za, and zb.
Referenced by neighborIndex_4d().


Definition at line 692 of file test_util.cpp.
References fused_exterior_ndeg_tm_dslash_cuda_gen::i, and Z.
Referenced by dslashReference_5th(), and neighborIndex_5d().

Definition at line 697 of file test_util.cpp.
References fused_exterior_ndeg_tm_dslash_cuda_gen::i, and Z.
Referenced by dslashReference_5th(), and neighborIndex_5d().

Definition at line 228 of file test_util.cpp.
References Z.
Referenced by printGaugeElement().

Definition at line 72 of file test_util.cpp.
References errorQuda, func, fused_exterior_ndeg_tm_dslash_cuda_gen::i, initCommsGridQuda(), initRand(), lex_rank_from_coords_t(), lex_rank_from_coords_x(), MPI_Init(), printfQuda, and rank_order.
Referenced by main(), and SU3test().


| void initRand | ( | ) |
Definition at line 117 of file test_util.cpp.
Referenced by initComms(), main(), and SU3test().


Definition at line 492 of file test_util.cpp.
References fullLatticeIndex(), fused_exterior_ndeg_tm_dslash_cuda_gen::i, and Z.
Referenced by neighborIndexFullLattice().


Definition at line 527 of file test_util.cpp.
References comm_dim_partitioned(), fullLatticeIndex(), fused_exterior_ndeg_tm_dslash_cuda_gen::i, ret, and Z.

Definition at line 563 of file test_util.cpp.
References half_idx, fused_exterior_ndeg_tm_dslash_cuda_gen::i, neighborIndex(), ret, and Vh.

Definition at line 611 of file test_util.cpp.
References fullLatticeIndex(), half_idx, fused_exterior_ndeg_tm_dslash_cuda_gen::i, ret, Vh, and Z.

| void printGaugeElement | ( | void * | gauge, |
| int | X, | ||
| QudaPrecision | precision | ||
| ) |
Definition at line 212 of file test_util.cpp.
References gaugeSiteSize, getOddBit(), printVector(), QUDA_DOUBLE_PRECISION, Vh, and X.

| void printSpinorElement | ( | void * | spinor, |
| int | X, | ||
| QudaPrecision | precision | ||
| ) |
Definition at line 204 of file test_util.cpp.
References printVector(), QUDA_DOUBLE_PRECISION, s, spinor, and X.
Referenced by dslashReference_4d_sgpu().


Definition at line 1795 of file test_util.cpp.
References anisotropy, atof(), atoi(), clover_coeff, commDimPartitionedSet(), compute_clover, dagger, deflation_ext_lib, deflation_grid, device, dim_partitioned, dslash_type, eigcg_max_restarts, eigenval_tol, exit(), fprintf(), gcrNkrylov, generate_all_levels, generate_nullspace, geo_block_size, get_df_location_ritz(), get_df_mem_type_ritz(), get_dslash_type(), get_flavor_type(), get_mass_normalization_type(), get_matpc_type(), get_prec(), get_quda_ver_str(), get_rank_order(), get_recon(), get_solve_ext_lib_type(), get_solve_type(), get_solver_type(), get_verbosity_type(), gridsize_from_cmdline, fused_exterior_ndeg_tm_dslash_cuda_gen::i, idx, inc_tol, inv_type, kernel_pack_t, latfile, level, link_recon, link_recon_precondition, link_recon_sloppy, location_ritz, Ls, Lsdim, mass, matpc_type, max_restart_num, max_search_dim, mem_type_ritz, mg_levels, mg_verbosity, Msrc, mu, mu_factor, multishift, nev, niter, normalization, Nsrc, nu_post, nu_pre, nvec, omega, out, pipeline, prec, prec_precondition, prec_ritz, prec_sloppy, precon_type, printf(), printfQuda, QUDA_DAG_YES, QUDA_MAX_MG_LEVEL, rank_order, ret, setup_inv, setup_tol, smoother_type, solution_accumulator_pipeline, solve_type, solver_ext_lib, strcmp(), strcpy(), tdim, test_type, tol, tol_hq, tol_restart, twist_flavor, usage(), value, vec_infile, vec_outfile, verify_results, xdim, xsize, ydim, ysize, and zdim.
Referenced by main(), and SU3test().


| void setDims | ( | int * | X | ) |
| void setSpinorSiteSize | ( | int | n | ) |
Definition at line 192 of file test_util.cpp.
References mySpinorSiteSize, and n.
Referenced by init(), invert_test(), and main().

| double stopwatchReadSeconds | ( | ) |
Definition at line 2873 of file test_util.cpp.
References startTime, timeval::tv_sec, and timeval::tv_usec.
Referenced by packTest().

| void stopwatchStart | ( | ) |
Definition at line 2869 of file test_util.cpp.
References startTime.
Referenced by packTest().

| void strong_check | ( | void * | spinor, |
| void * | spinorGPU, | ||
| int | len, | ||
| QudaPrecision | precision | ||
| ) |
| int strong_check_link | ( | void ** | linkA, |
| const char * | msgA, | ||
| void ** | linkB, | ||
| const char * | msgB, | ||
| int | len, | ||
| QudaPrecision | prec | ||
| ) |
Definition at line 1428 of file test_util.cpp.
References compare_link(), len, prec, printfQuda, printLinkElement(), and ret.
Referenced by llfat_test().


| int strong_check_mom | ( | void * | momA, |
| void * | momB, | ||
| int | len, | ||
| QudaPrecision | prec | ||
| ) |
Definition at line 1565 of file test_util.cpp.
References compare_mom(), len, prec, printfQuda, printMomElement(), QUDA_DOUBLE_PRECISION, and ret.
Referenced by gauge_force_test(), and hisq_force_test().


| void su3_construct | ( | void * | mat, |
| QudaReconstructType | reconstruct, | ||
| QudaPrecision | precision | ||
| ) |
Definition at line 303 of file test_util.cpp.
References mat(), QUDA_DOUBLE_PRECISION, QUDA_RECONSTRUCT_12, su3Construct12(), and su3Construct8().

| void su3_reconstruct | ( | void * | mat, |
| int | dir, | ||
| int | ga_idx, | ||
| QudaReconstructType | reconstruct, | ||
| QudaPrecision | precision, | ||
| QudaGaugeParam * | param | ||
| ) |
Definition at line 393 of file test_util.cpp.
References ga_idx, mat(), param, QUDA_DOUBLE_PRECISION, QUDA_RECONSTRUCT_12, su3Reconstruct12(), and su3Reconstruct8().

Definition at line 703 of file test_util.cpp.
References fullLatticeIndex(), half_idx, fused_exterior_ndeg_tm_dslash_cuda_gen::i, Vh, and Z.

| int E[4] |
Definition at line 36 of file test_util.cpp.
Referenced by setDims().
| int E1 |
Definition at line 35 of file test_util.cpp.
Referenced by Locator< oddBit >::getCoordsFromHalfIndex(), Locator< oddBit >::getNeighborFromFullIndex(), LoadStore< Real >::half_idx_conversion_ex2normal(), LoadStore< Real >::half_idx_conversion_normal2ex(), and setDims().
| int E1h |
Definition at line 35 of file test_util.cpp.
Referenced by gauge_force_test(), Locator< oddBit >::getCoordsFromHalfIndex(), LoadStore< Real >::half_idx_conversion_ex2normal(), llfat_test(), and setDims().
| int E2 |
Definition at line 35 of file test_util.cpp.
Referenced by gauge_force_test(), Locator< oddBit >::getCoordsFromHalfIndex(), Locator< oddBit >::getNeighborFromFullIndex(), LoadStore< Real >::half_idx_conversion_ex2normal(), LoadStore< Real >::half_idx_conversion_normal2ex(), llfat_test(), and setDims().
| int E3 |
Definition at line 35 of file test_util.cpp.
Referenced by gauge_force_test(), Locator< oddBit >::getCoordsFromHalfIndex(), Locator< oddBit >::getNeighborFromFullIndex(), LoadStore< Real >::half_idx_conversion_ex2normal(), LoadStore< Real >::half_idx_conversion_normal2ex(), llfat_test(), and setDims().
| int E4 |
Definition at line 35 of file test_util.cpp.
Referenced by Locator< oddBit >::getNeighborFromFullIndex(), and setDims().
| int faceVolume[4] |
Definition at line 32 of file test_util.cpp.
Referenced by dw_setDims(), and setDims().
| int Ls |
Definition at line 39 of file test_util.cpp.
Referenced by quda::cpuColorSpinorField::create(), dslash_4_4d(), dslashRef(), dslashReference(), dslashReference_4d_sgpu(), dslashReference_5th(), dslashReference_5th_inv(), dw_4d_matpc(), dw_dslash(), dw_setDims(), init(), Matdagmat(), mdw_dslash_4_pre(), mdw_dslash_5(), mdw_mat(), mdw_matpc(), neighborIndex_5d(), printQudaInvertParam(), process_command_line_option(), and staggered_matpc().
| int mySpinorSiteSize |
Definition at line 43 of file test_util.cpp.
Referenced by setSpinorSiteSize().
| int V |
Definition at line 28 of file test_util.cpp.
Referenced by applyGaugeFieldScaling_long(), checkGauge(), construct_fat_long_gauge_field(), constructCloverField(), createHwCPU(), createMomCPU(), createSiteLinkCPU(), dw_setDims(), and setDims().
| int V5 |
Definition at line 40 of file test_util.cpp.
Referenced by dw_4d_mat(), dw_mat(), dw_matdagmat(), and dw_setDims().
| int V5h |
Definition at line 41 of file test_util.cpp.
Referenced by dslashReference_4d_sgpu(), dslashReference_5th(), dw_4d_mat(), dw_4d_matpc(), dw_mat(), dw_matpc(), dw_setDims(), mdw_mat(), and mdw_matpc().
| int V_ex |
Definition at line 37 of file test_util.cpp.
Referenced by gauge_force_test(), llfat_test(), and setDims().
| int Vh |
Definition at line 29 of file test_util.cpp.
Referenced by applyGaugeFieldScaling(), applyGaugeFieldScaling_long(), checkGauge(), construct_gauge_field(), constructGaugeField(), constructUnitaryGaugeField(), constructUnitGaugeField(), createSiteLinkCPU(), dw_setDims(), fullLatticeIndex_4d(), neighborIndexFullLattice(), neighborIndexFullLattice_mg(), printGaugeElement(), setDims(), and x4_from_full_index().
| int Vh_ex |
Definition at line 37 of file test_util.cpp.
Referenced by setDims().
| int Vs_t |
Definition at line 30 of file test_util.cpp.
Referenced by dw_setDims(), llfat_reference(), llfat_test(), and setDims().
| int Vs_x |
Definition at line 30 of file test_util.cpp.
Referenced by llfat_reference(), llfat_test(), and setDims().
| int Vs_y |
Definition at line 30 of file test_util.cpp.
Referenced by llfat_reference(), llfat_test(), and setDims().
| int Vs_z |
Definition at line 30 of file test_util.cpp.
Referenced by llfat_reference(), llfat_test(), and setDims().
| int Vsh_t |
Definition at line 31 of file test_util.cpp.
Referenced by dw_setDims(), llfat_reference(), and setDims().
| int Vsh_x |
Definition at line 31 of file test_util.cpp.
Referenced by llfat_reference(), and setDims().
| int Vsh_y |
Definition at line 31 of file test_util.cpp.
Referenced by llfat_reference(), and setDims().
| int Vsh_z |
Definition at line 31 of file test_util.cpp.
Referenced by llfat_reference(), and setDims().
| int Z[4] |
Definition at line 27 of file test_util.cpp.
Referenced by applyGaugeFieldScaling(), createSiteLinkCPU(), dw_setDims(), fullLatticeIndex(), fullLatticeIndex_4d(), fullLatticeIndex_5d(), fullLatticeIndex_5d_4dpc(), getOddBit(), neighborIndex(), neighborIndex_mg(), neighborIndexFullLattice_mg(), setDims(), su3Reconstruct12(), su3Reconstruct8(), and x4_from_full_index().
1.8.14