QUDA  v0.7.0
A library for QCD on GPUs
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Macros | Functions
misc.cpp File Reference
#include <stdio.h>
#include <stdlib.h>
#include "quda.h"
#include <string.h>
#include "invert_quda.h"
#include "misc.h"
#include <assert.h>
#include "util_quda.h"
#include <test_util.h>

Go to the source code of this file.

Macros

#define stSpinorSiteSize   6
 
#define SMALL_NUM   1e-24
 

Functions

template<typename Float >
void display_spinor_internal (Float *spinor)
 
void display_spinor (void *spinor, int len, int precision)
 
template<typename Float >
void display_link_internal (Float *link)
 
void display_link (void *link, int len, int precision)
 
template<typename Float >
void accumulateConjugateProduct (Float *a, Float *b, Float *c, int sign)
 
template<typename Float >
int link_sanity_check_internal_12 (Float *link, int dir, int ga_idx, QudaGaugeParam *gaugeParam, int oddBit)
 
template<typename Float >
int site_link_sanity_check_internal_12 (Float *link, int dir, int ga_idx, QudaGaugeParam *gaugeParam, int oddBit)
 
template<typename Float >
void complexAddTo (Float *a, Float *b)
 
template<typename Float >
void complexProduct (Float *a, Float *b, Float *c)
 
template<typename Float >
void complexConjugateProduct (Float *a, Float *b, Float *c)
 
template<typename Float >
void complexDotProduct (Float *a, Float *b, Float *c)
 
template<typename Float >
void accumulateComplexProduct (Float *a, Float *b, Float *c, Float sign)
 
template<typename Float >
void accumulateComplexDotProduct (Float *a, Float *b, Float *c)
 
template<typename Float >
int link_sanity_check_internal_8 (Float *link, int dir, int ga_idx, QudaGaugeParam *gaugeParam, int oddBit)
 
int link_sanity_check (void *link, int len, int precision, int dir, QudaGaugeParam *gaugeParam)
 
int site_link_sanity_check (void *link, int len, int precision, QudaGaugeParam *gaugeParam)
 
QudaReconstructType get_recon (char *s)
 
QudaPrecision get_prec (char *s)
 
const char * get_prec_str (QudaPrecision prec)
 
const char * get_unitarization_str (bool svd_only)
 
const char * get_gauge_order_str (QudaGaugeFieldOrder order)
 
const char * get_recon_str (QudaReconstructType recon)
 
const char * get_test_type (int t)
 
QudaDslashType get_dslash_type (char *s)
 
const char * get_dslash_str (QudaDslashType type)
 
QudaMassNormalization get_mass_normalization_type (char *s)
 
const char * get_mass_normalization_str (QudaMassNormalization type)
 
QudaMatPCType get_matpc_type (char *s)
 
const char * get_matpc_str (QudaMatPCType type)
 
QudaTwistFlavorType get_flavor_type (char *s)
 
const char * get_flavor_str (QudaTwistFlavorType type)
 
QudaInverterType get_solver_type (char *s)
 
const char * get_solver_str (QudaInverterType type)
 
const char * get_quda_ver_str ()
 

Macro Definition Documentation

#define SMALL_NUM   1e-24
#define stSpinorSiteSize   6

Definition at line 12 of file misc.cpp.

Function Documentation

template<typename Float >
void accumulateComplexDotProduct ( Float *  a,
Float *  b,
Float *  c 
)

Definition at line 323 of file misc.cpp.

template<typename Float >
void accumulateComplexProduct ( Float *  a,
Float *  b,
Float *  c,
Float  sign 
)

Definition at line 316 of file misc.cpp.

template<typename Float >
void accumulateConjugateProduct ( Float *  a,
Float *  b,
Float *  c,
int  sign 
)

Definition at line 84 of file misc.cpp.

template<typename Float >
void complexAddTo ( Float *  a,
Float *  b 
)

Definition at line 288 of file misc.cpp.

template<typename Float >
void complexConjugateProduct ( Float *  a,
Float *  b,
Float *  c 
)

Definition at line 302 of file misc.cpp.

template<typename Float >
void complexDotProduct ( Float *  a,
Float *  b,
Float *  c 
)

Definition at line 309 of file misc.cpp.

template<typename Float >
void complexProduct ( Float *  a,
Float *  b,
Float *  c 
)

Definition at line 295 of file misc.cpp.

void display_link ( void *  link,
int  len,
int  precision 
)

Definition at line 63 of file misc.cpp.

template<typename Float >
void display_link_internal ( Float *  link)

Definition at line 47 of file misc.cpp.

void display_spinor ( void *  spinor,
int  len,
int  precision 
)

Definition at line 26 of file misc.cpp.

template<typename Float >
void display_spinor_internal ( Float *  spinor)

Definition at line 14 of file misc.cpp.

const char* get_dslash_str ( QudaDslashType  type)

Definition at line 814 of file misc.cpp.

QudaDslashType get_dslash_type ( char *  s)

Definition at line 783 of file misc.cpp.

const char* get_flavor_str ( QudaTwistFlavorType  type)

Definition at line 969 of file misc.cpp.

QudaTwistFlavorType get_flavor_type ( char *  s)

Definition at line 946 of file misc.cpp.

const char* get_gauge_order_str ( QudaGaugeFieldOrder  order)

Definition at line 697 of file misc.cpp.

const char* get_mass_normalization_str ( QudaMassNormalization  type)

Definition at line 876 of file misc.cpp.

QudaMassNormalization get_mass_normalization_type ( char *  s)

Definition at line 857 of file misc.cpp.

const char* get_matpc_str ( QudaMatPCType  type)

Definition at line 920 of file misc.cpp.

QudaMatPCType get_matpc_type ( char *  s)

Definition at line 899 of file misc.cpp.

QudaPrecision get_prec ( char *  s)

Definition at line 639 of file misc.cpp.

const char* get_prec_str ( QudaPrecision  prec)

Definition at line 658 of file misc.cpp.

const char* get_quda_ver_str ( )

Definition at line 1050 of file misc.cpp.

QudaReconstructType get_recon ( char *  s)

Definition at line 614 of file misc.cpp.

const char* get_recon_str ( QudaReconstructType  recon)

Definition at line 724 of file misc.cpp.

const char* get_solver_str ( QudaInverterType  type)

Definition at line 1025 of file misc.cpp.

QudaInverterType get_solver_type ( char *  s)

Definition at line 998 of file misc.cpp.

const char* get_test_type ( int  t)

Definition at line 752 of file misc.cpp.

const char* get_unitarization_str ( bool  svd_only)

Definition at line 684 of file misc.cpp.

int link_sanity_check ( void *  link,
int  len,
int  precision,
int  dir,
QudaGaugeParam gaugeParam 
)

Definition at line 476 of file misc.cpp.

template<typename Float >
int link_sanity_check_internal_12 ( Float *  link,
int  dir,
int  ga_idx,
QudaGaugeParam gaugeParam,
int  oddBit 
)

Definition at line 91 of file misc.cpp.

template<typename Float >
int link_sanity_check_internal_8 ( Float *  link,
int  dir,
int  ga_idx,
QudaGaugeParam gaugeParam,
int  oddBit 
)

Definition at line 330 of file misc.cpp.

int site_link_sanity_check ( void *  link,
int  len,
int  precision,
QudaGaugeParam gaugeParam 
)

Definition at line 549 of file misc.cpp.

template<typename Float >
int site_link_sanity_check_internal_12 ( Float *  link,
int  dir,
int  ga_idx,
QudaGaugeParam gaugeParam,
int  oddBit 
)

Definition at line 190 of file misc.cpp.