QUDA  v1.1.0
A library for QCD on GPUs
Macros | Functions | Variables
multigrid_benchmark_test.cpp File Reference
#include <stdio.h>
#include <stdlib.h>
#include <quda_internal.h>
#include <color_spinor_field.h>
#include <blas_quda.h>
#include <host_utils.h>
#include <command_line_params.h>
#include <misc.h>
#include <dslash_reference.h>
#include <dirac_quda.h>

Go to the source code of this file.

Macros

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

Functions

void usage (char **)
 
void display_test_info ()
 
void initFields (QudaPrecision prec)
 
void freeFields ()
 
double benchmark (int test, const int niter)
 
int main (int argc, char **argv)
 

Variables

ColorSpinorFieldxH
 
ColorSpinorFieldyH
 
ColorSpinorFieldxD
 
ColorSpinorFieldyD
 
cpuGaugeFieldY_h
 
cpuGaugeFieldX_h
 
cpuGaugeFieldXinv_h
 
cpuGaugeFieldYhat_h
 
cudaGaugeFieldY_d
 
cudaGaugeFieldX_d
 
cudaGaugeFieldXinv_d
 
cudaGaugeFieldYhat_d
 
int Nspin
 
int Ncolor
 
DiracCoarsedirac
 
const char * names []
 

Macro Definition Documentation

◆ MAX [1/2]

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

Definition at line 32 of file multigrid_benchmark_test.cpp.

◆ MAX [2/2]

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

Definition at line 32 of file multigrid_benchmark_test.cpp.

Function Documentation

◆ benchmark()

double benchmark ( int  test,
const int  niter 
)

Definition at line 167 of file multigrid_benchmark_test.cpp.

◆ display_test_info()

void display_test_info ( )

Definition at line 34 of file multigrid_benchmark_test.cpp.

◆ freeFields()

void freeFields ( )

Definition at line 146 of file multigrid_benchmark_test.cpp.

◆ initFields()

void initFields ( QudaPrecision  prec)

Definition at line 47 of file multigrid_benchmark_test.cpp.

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 206 of file multigrid_benchmark_test.cpp.

◆ usage()

void usage ( char **  )

Variable Documentation

◆ dirac

DiracCoarse* dirac

Definition at line 165 of file multigrid_benchmark_test.cpp.

◆ names

const char* names[]
Initial value:
= {
"Dslash",
"Mat",
"Clover"
}

Definition at line 200 of file multigrid_benchmark_test.cpp.

◆ Ncolor

int Ncolor

Definition at line 30 of file multigrid_benchmark_test.cpp.

◆ Nspin

int Nspin

Definition at line 29 of file multigrid_benchmark_test.cpp.

◆ X_d

Definition at line 27 of file multigrid_benchmark_test.cpp.

◆ X_h

Definition at line 26 of file multigrid_benchmark_test.cpp.

◆ xD

Definition at line 24 of file multigrid_benchmark_test.cpp.

◆ xH

Definition at line 23 of file multigrid_benchmark_test.cpp.

◆ Xinv_d

cudaGaugeField * Xinv_d

Definition at line 27 of file multigrid_benchmark_test.cpp.

◆ Xinv_h

cpuGaugeField * Xinv_h

Definition at line 26 of file multigrid_benchmark_test.cpp.

◆ Y_d

Definition at line 27 of file multigrid_benchmark_test.cpp.

◆ Y_h

Definition at line 26 of file multigrid_benchmark_test.cpp.

◆ yD

Definition at line 24 of file multigrid_benchmark_test.cpp.

◆ yH

Definition at line 23 of file multigrid_benchmark_test.cpp.

◆ Yhat_d

cudaGaugeField * Yhat_d

Definition at line 27 of file multigrid_benchmark_test.cpp.

◆ Yhat_h

cpuGaugeField * Yhat_h

Definition at line 26 of file multigrid_benchmark_test.cpp.