QUDA v0.3.2
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)
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)
void strong_check_link (void *linkA, void *linkB, int len, QudaPrecision prec)
void strong_check_mom (void *momA, void *momB, int len, QudaPrecision prec)
void createMomCPU (void *mom, QudaPrecision precision)
void createHwCPU (void *hw, QudaPrecision precision)
int fullLatticeIndex_4d (int i, int oddBit)
int fullLatticeIndex_5d (int i, int oddBit)

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

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

Definition at line 256 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 708 of file test_util.cpp.

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

Definition at line 665 of file test_util.cpp.

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

Definition at line 654 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 1035 of file test_util.cpp.

void createMomCPU ( void *  mom,
QudaPrecision  precision 
)

Definition at line 999 of file test_util.cpp.

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

Definition at line 768 of file test_util.cpp.

int fullLatticeIndex ( int  i,
int  oddBit 
)

Definition at line 265 of file test_util.cpp.

int fullLatticeIndex_4d ( int  i,
int  oddBit 
)

Definition at line 331 of file test_util.cpp.

int fullLatticeIndex_5d ( int  i,
int  oddBit 
)

Definition at line 344 of file test_util.cpp.

int getOddBit ( int  X)

Definition at line 47 of file test_util.cpp.

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

Definition at line 281 of file test_util.cpp.

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

Definition at line 304 of file test_util.cpp.

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

Definition at line 31 of file test_util.cpp.

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

Definition at line 23 of file test_util.cpp.

void strong_check ( void *  spinor,
void *  spinorGPU,
int  len,
QudaPrecision  precision 
)
void strong_check_link ( void *  linkA,
void *  linkB,
int  len,
QudaPrecision  prec 
)

Definition at line 975 of file test_util.cpp.

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

Definition at line 1100 of file test_util.cpp.

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

Definition at line 122 of file test_util.cpp.

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

Definition at line 212 of file test_util.cpp.

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines