QUDA v0.4.0
A library for QCD on GPUs
Defines | Functions
quda/tests/test_util.h File Reference
#include <quda.h>

Go to the source code of this file.

Defines

#define gaugeSiteSize   18
#define spinorSiteSize   24
#define cloverSiteSize   72
#define momSiteSize   10
#define hwSiteSize   12

Functions

int neighborIndex (int i, int oddBit, int dx4, int dx3, int dx2, int dx1)
int neighborIndexFullLattice (int i, int dx4, int dx3, int dx2, int dx1)
int neighborIndex_mg (int i, int oddBit, int dx4, int dx3, int dx2, int dx1)
int neighborIndexFullLattice_mg (int i, int dx4, int dx3, int dx2, int dx1)
void printSpinorElement (void *spinor, int X, QudaPrecision precision)
void printGaugeElement (void *gauge, int X, QudaPrecision precision)
int fullLatticeIndex (int i, int oddBit)
int getOddBit (int X)
void construct_gauge_field (void **gauge, int type, QudaPrecision precision, QudaGaugeParam *param)
void construct_fat_long_gauge_field (void **fatlink, void **longlink, int type, QudaPrecision precision, QudaGaugeParam *)
void construct_clover_field (void *clover, double norm, double diag, QudaPrecision precision)
void construct_spinor_field (void *spinor, int type, int i0, int s0, int c0, QudaPrecision precision)
void createSiteLinkCPU (void **link, QudaPrecision precision, int phase)
void su3_construct (void *mat, QudaReconstructType reconstruct, QudaPrecision precision)
void su3_reconstruct (void *mat, int dir, int ga_idx, QudaReconstructType reconstruct, QudaPrecision precision, QudaGaugeParam *param)
void compare_spinor (void *spinor_cpu, void *spinor_gpu, int len, QudaPrecision precision)
void strong_check (void *spinor, void *spinorGPU, int len, QudaPrecision precision)
int compare_floats (void *a, void *b, int len, double epsilon, QudaPrecision precision)
void check_gauge (void **, void **, double epsilon, QudaPrecision precision)
int strong_check_link (void **linkA, const char *msgA, void **linkB, const char *msgB, int len, QudaPrecision prec)
int strong_check_mom (void *momA, void *momB, int len, QudaPrecision prec)
void createMomCPU (void *mom, QudaPrecision precision)
void createHwCPU (void *hw, QudaPrecision precision)
int x4_from_full_index (int i)
int fullLatticeIndex_4d (int i, int oddBit)
int fullLatticeIndex_5d (int i, int oddBit)
int process_command_line_option (int argc, char **argv, int *idx)

Define Documentation

#define cloverSiteSize   72

Definition at line 8 of file test_util.h.

#define gaugeSiteSize   18

Definition at line 6 of file test_util.h.

#define hwSiteSize   12

Definition at line 10 of file test_util.h.

#define momSiteSize   10

Definition at line 9 of file test_util.h.

#define spinorSiteSize   24

Definition at line 7 of file test_util.h.


Function Documentation

void check_gauge ( void **  ,
void **  ,
double  epsilon,
QudaPrecision  precision 
)

Definition at line 921 of file test_util.cpp.

int compare_floats ( void *  a,
void *  b,
int  len,
double  epsilon,
QudaPrecision  precision 
)

Definition at line 261 of file test_util.cpp.

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 868 of file test_util.cpp.

void construct_fat_long_gauge_field ( void **  fatlink,
void **  longlink,
int  type,
QudaPrecision  precision,
QudaGaugeParam  
)

Definition at line 825 of file test_util.cpp.

void construct_gauge_field ( void **  gauge,
int  type,
QudaPrecision  precision,
QudaGaugeParam param 
)

Definition at line 810 of file test_util.cpp.

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 1187 of file test_util.cpp.

void createMomCPU ( void *  mom,
QudaPrecision  precision 
)

Definition at line 1149 of file test_util.cpp.

void createSiteLinkCPU ( void **  link,
QudaPrecision  precision,
int  phase 
)

Definition at line 931 of file test_util.cpp.

int fullLatticeIndex ( int  i,
int  oddBit 
)

Definition at line 270 of file test_util.cpp.

int fullLatticeIndex_4d ( int  i,
int  oddBit 
)

Definition at line 432 of file test_util.cpp.

int fullLatticeIndex_5d ( int  i,
int  oddBit 
)

Definition at line 466 of file test_util.cpp.

int getOddBit ( int  X)

Definition at line 52 of file test_util.cpp.

int neighborIndex ( int  i,
int  oddBit,
int  dx4,
int  dx3,
int  dx2,
int  dx1 
)

Definition at line 307 of file test_util.cpp.

int neighborIndex_mg ( int  i,
int  oddBit,
int  dx4,
int  dx3,
int  dx2,
int  dx1 
)

Definition at line 325 of file test_util.cpp.

int neighborIndexFullLattice ( int  i,
int  dx4,
int  dx3,
int  dx2,
int  dx1 
)

Definition at line 361 of file test_util.cpp.

int neighborIndexFullLattice_mg ( int  i,
int  dx4,
int  dx3,
int  dx2,
int  dx1 
)

Definition at line 385 of file test_util.cpp.

void printGaugeElement ( void *  gauge,
int  X,
QudaPrecision  precision 
)

Definition at line 36 of file test_util.cpp.

void printSpinorElement ( void *  spinor,
int  X,
QudaPrecision  precision 
)

Definition at line 28 of file test_util.cpp.

int process_command_line_option ( int  argc,
char **  argv,
int *  idx 
)

Definition at line 1363 of file test_util.cpp.

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 1123 of file test_util.cpp.

int strong_check_mom ( void *  momA,
void *  momB,
int  len,
QudaPrecision  prec 
)

Definition at line 1260 of file test_util.cpp.

void su3_construct ( void *  mat,
QudaReconstructType  reconstruct,
QudaPrecision  precision 
)

Definition at line 127 of file test_util.cpp.

void su3_reconstruct ( void *  mat,
int  dir,
int  ga_idx,
QudaReconstructType  reconstruct,
QudaPrecision  precision,
QudaGaugeParam param 
)

Definition at line 217 of file test_util.cpp.

int x4_from_full_index ( int  i)

Definition at line 472 of file test_util.cpp.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines