QUDA  v1.1.0
A library for QCD on GPUs
Macros | Functions | Variables
hisq_paths_force_test.cpp File Reference
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <quda.h>
#include "host_utils.h"
#include <command_line_params.h>
#include "gauge_field.h"
#include "misc.h"
#include "hisq_force_reference.h"
#include "ks_improved_force.h"
#include "momentum.h"
#include <dslash_quda.h>
#include <sys/time.h>

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 total_staple_io_flops (QudaPrecision prec, QudaReconstructType recon, double *io, double *flops)
 
int main (int argc, char **argv)
 

Variables

cudaGaugeFieldcudaGauge = NULL
 
cpuGaugeFieldcpuGauge = NULL
 
cudaGaugeFieldcudaForce = NULL
 
cpuGaugeFieldcpuForce = NULL
 
cudaGaugeFieldcudaMom = NULL
 
cpuGaugeFieldcpuMom = NULL
 
cpuGaugeFieldrefMom = NULL
 
QudaGaugeFieldOrder gauge_order = QUDA_QDP_GAUGE_ORDER
 
cpuGaugeFieldcpuOprod = NULL
 
cudaGaugeFieldcudaOprod = NULL
 
cpuGaugeFieldcpuLongLinkOprod = NULL
 
cudaGaugeFieldcudaLongLinkOprod = NULL
 
int ODD_BIT = 1
 
QudaPrecision link_prec = QUDA_DOUBLE_PRECISION
 
QudaPrecision hw_prec = QUDA_DOUBLE_PRECISION
 
QudaPrecision cpu_hw_prec = QUDA_DOUBLE_PRECISION
 
QudaPrecision mom_prec = QUDA_DOUBLE_PRECISION
 
cudaGaugeFieldcudaGauge_ex = NULL
 
cpuGaugeFieldcpuGauge_ex = NULL
 
cudaGaugeFieldcudaForce_ex = NULL
 
cpuGaugeFieldcpuForce_ex = NULL
 
cpuGaugeFieldcpuOprod_ex = NULL
 
cudaGaugeFieldcudaOprod_ex = NULL
 
cpuGaugeFieldcpuLongLinkOprod_ex = NULL
 
cudaGaugeFieldcudaLongLinkOprod_ex = NULL
 
GaugeFieldParam gParam_ex
 
GaugeFieldParam gParam
 

Macro Definition Documentation

◆ TDIFF

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

Definition at line 16 of file hisq_paths_force_test.cpp.

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 418 of file hisq_paths_force_test.cpp.

◆ total_staple_io_flops()

void total_staple_io_flops ( QudaPrecision  prec,
QudaReconstructType  recon,
double *  io,
double *  flops 
)

Definition at line 69 of file hisq_paths_force_test.cpp.

Variable Documentation

◆ cpu_hw_prec

Definition at line 45 of file hisq_paths_force_test.cpp.

◆ cpuForce

cpuGaugeField* cpuForce = NULL

Definition at line 24 of file hisq_paths_force_test.cpp.

◆ cpuForce_ex

cpuGaugeField* cpuForce_ex = NULL

Definition at line 51 of file hisq_paths_force_test.cpp.

◆ cpuGauge

cpuGaugeField* cpuGauge = NULL

Definition at line 21 of file hisq_paths_force_test.cpp.

◆ cpuGauge_ex

cpuGaugeField* cpuGauge_ex = NULL

Definition at line 49 of file hisq_paths_force_test.cpp.

◆ cpuLongLinkOprod

cpuGaugeField* cpuLongLinkOprod = NULL

Definition at line 38 of file hisq_paths_force_test.cpp.

◆ cpuLongLinkOprod_ex

cpuGaugeField* cpuLongLinkOprod_ex = NULL

Definition at line 54 of file hisq_paths_force_test.cpp.

◆ cpuMom

cpuGaugeField* cpuMom = NULL

Definition at line 27 of file hisq_paths_force_test.cpp.

◆ cpuOprod

cpuGaugeField* cpuOprod = NULL

Definition at line 36 of file hisq_paths_force_test.cpp.

◆ cpuOprod_ex

cpuGaugeField* cpuOprod_ex = NULL

Definition at line 52 of file hisq_paths_force_test.cpp.

◆ cudaForce

cudaGaugeField* cudaForce = NULL

Definition at line 23 of file hisq_paths_force_test.cpp.

◆ cudaForce_ex

cudaGaugeField* cudaForce_ex = NULL

Definition at line 50 of file hisq_paths_force_test.cpp.

◆ cudaGauge

cudaGaugeField* cudaGauge = NULL

Definition at line 20 of file hisq_paths_force_test.cpp.

◆ cudaGauge_ex

cudaGaugeField* cudaGauge_ex = NULL

Definition at line 48 of file hisq_paths_force_test.cpp.

◆ cudaLongLinkOprod

cudaGaugeField* cudaLongLinkOprod = NULL

Definition at line 39 of file hisq_paths_force_test.cpp.

◆ cudaLongLinkOprod_ex

cudaGaugeField* cudaLongLinkOprod_ex = NULL

Definition at line 55 of file hisq_paths_force_test.cpp.

◆ cudaMom

cudaGaugeField* cudaMom = NULL

Definition at line 26 of file hisq_paths_force_test.cpp.

◆ cudaOprod

cudaGaugeField* cudaOprod = NULL

Definition at line 37 of file hisq_paths_force_test.cpp.

◆ cudaOprod_ex

cudaGaugeField* cudaOprod_ex = NULL

Definition at line 53 of file hisq_paths_force_test.cpp.

◆ gauge_order

Definition at line 34 of file hisq_paths_force_test.cpp.

◆ gParam

Definition at line 58 of file hisq_paths_force_test.cpp.

◆ gParam_ex

GaugeFieldParam gParam_ex

Definition at line 57 of file hisq_paths_force_test.cpp.

◆ hw_prec

Definition at line 44 of file hisq_paths_force_test.cpp.

◆ link_prec

Definition at line 43 of file hisq_paths_force_test.cpp.

◆ mom_prec

Definition at line 46 of file hisq_paths_force_test.cpp.

◆ ODD_BIT

int ODD_BIT = 1

Definition at line 41 of file hisq_paths_force_test.cpp.

◆ refMom

cpuGaugeField* refMom = NULL

Definition at line 28 of file hisq_paths_force_test.cpp.