QUDA v0.4.0
A library for QCD on GPUs
Defines | Functions | Variables
quda/tests/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.

Defines

#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_type_str (QudaDslashType type)
const char * get_quda_ver_str ()

Variables

int verbose

Define Documentation

#define SMALL_NUM   1e-24
#define stSpinorSiteSize   6

Definition at line 14 of file misc.cpp.


Function Documentation

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

Definition at line 320 of file misc.cpp.

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

Definition at line 313 of file misc.cpp.

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

Definition at line 86 of file misc.cpp.

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

Definition at line 285 of file misc.cpp.

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

Definition at line 299 of file misc.cpp.

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

Definition at line 306 of file misc.cpp.

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

Definition at line 292 of file misc.cpp.

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

Definition at line 65 of file misc.cpp.

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

Definition at line 49 of file misc.cpp.

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

Definition at line 28 of file misc.cpp.

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

Definition at line 16 of file misc.cpp.

QudaDslashType get_dslash_type ( char *  s)

Definition at line 770 of file misc.cpp.

const char* get_dslash_type_str ( QudaDslashType  type)

Definition at line 793 of file misc.cpp.

const char* get_gauge_order_str ( QudaGaugeFieldOrder  order)

Definition at line 690 of file misc.cpp.

QudaPrecision get_prec ( char *  s)

Definition at line 632 of file misc.cpp.

const char* get_prec_str ( QudaPrecision  prec)

Definition at line 651 of file misc.cpp.

const char* get_quda_ver_str ( )

Definition at line 824 of file misc.cpp.

QudaReconstructType get_recon ( char *  s)

Definition at line 611 of file misc.cpp.

const char* get_recon_str ( QudaReconstructType  recon)

Definition at line 717 of file misc.cpp.

const char* get_test_type ( int  t)

Definition at line 739 of file misc.cpp.

const char* get_unitarization_str ( bool  svd_only)

Definition at line 677 of file misc.cpp.

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

Definition at line 473 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 93 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 327 of file misc.cpp.

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

Definition at line 546 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 192 of file misc.cpp.


Variable Documentation

int verbose
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines