QUDA v0.4.0
A library for QCD on GPUs
quda/tests/misc.h
Go to the documentation of this file.
00001 #ifndef __MISC_H__
00002 #define __MISC_H__
00003 
00004 #include <quda.h>
00005 
00006 #ifdef __cplusplus
00007 extern "C" {
00008 #endif
00009     
00010     void display_spinor(void* spinor, int len, int precision);
00011     void display_link(void* link, int len, int precision);
00012     int link_sanity_check(void* link, int len, int precision, int dir, QudaGaugeParam* gaugeParam);
00013     int site_link_sanity_check(void* link, int len, int precision, QudaGaugeParam* gaugeParam);
00014 
00015     QudaReconstructType get_recon(char* s);
00016     QudaPrecision   get_prec(char* s);
00017     const char* get_prec_str(QudaPrecision prec);
00018     const char* get_gauge_order_str(QudaGaugeFieldOrder order);
00019     const char* get_recon_str(QudaReconstructType recon);
00020     const char* get_test_type(int t);
00021     const char* get_unitarization_str(bool svd_only);
00022     QudaDslashType get_dslash_type(char* s);
00023     const char* get_dslash_type_str(QudaDslashType type);
00024   const char* get_quda_ver_str();
00025 #ifdef __cplusplus
00026 }
00027 #endif
00028 
00029 #define XUP 0
00030 #define YUP 1
00031 #define ZUP 2
00032 #define TUP 3
00033 #define TDOWN 4
00034 #define ZDOWN 5
00035 #define YDOWN 6
00036 #define XDOWN 7
00037 #define OPP_DIR(dir)    (7-(dir))
00038 #define GOES_FORWARDS(dir) (dir<=3)
00039 #define GOES_BACKWARDS(dir) (dir>3)
00040 
00041 
00042 #endif
00043 
00044 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines