QUDA  v1.1.0
A library for QCD on GPUs
Macros | Functions
staggered_host_utils.cpp File Reference
#include <complex>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <short.h>
#include <unitarization_links.h>
#include <llfat_utils.h>
#include <staggered_gauge_utils.h>
#include <host_utils.h>
#include <command_line_params.h>
#include <qio_field.h>

Go to the source code of this file.

Macros

#define MAX(a, b)   ((a) > (b) ? (a) : (b))
 
#define XUP   0
 
#define YUP   1
 
#define ZUP   2
 
#define TUP   3
 

Functions

void constructStaggeredHostGhostGaugeField (quda::GaugeField *cpuFat, quda::GaugeField *cpuLong, void *milc_fatlink, void *milc_longlink, QudaGaugeParam &gauge_param)
 
void constructStaggeredHostDeviceGaugeField (void **qdp_inlink, void **qdp_longlink_cpu, void **qdp_longlink_gpu, void **qdp_fatlink_cpu, void **qdp_fatlink_gpu, QudaGaugeParam &gauge_param, int argc, char **argv, bool &gauge_loaded)
 
void constructStaggeredHostGaugeField (void **qdp_inlink, void **qdp_longlink, void **qdp_fatlink, QudaGaugeParam &gauge_param, int argc, char **argv)
 
void constructFatLongGaugeField (void **fatlink, void **longlink, int type, QudaPrecision precision, QudaGaugeParam *param, QudaDslashType dslash_type)
 
void loadFatLongGaugeQuda (void *milc_fatlink, void *milc_longlink, QudaGaugeParam &gauge_param)
 
template<typename su3_matrix , typename Float >
void computeLongLinkCPU (void **longlink, su3_matrix **sitelink, Float *act_path_coeff)
 
void computeLongLinkCPU (void **longlink, void **sitelink, QudaPrecision prec, void *act_path_coeff)
 
void computeHISQLinksCPU (void **fatlink, void **longlink, void **fatlink_eps, void **longlink_eps, void **sitelink, void *qudaGaugeParamPtr, double **act_path_coeffs, double eps_naik)
 
void constructStaggeredTestSpinorParam (quda::ColorSpinorParam *cs_param, const QudaInvertParam *inv_param, const QudaGaugeParam *gauge_param)
 
template<typename Out , typename In >
void reorderQDPtoMILC (Out *milc_out, In **qdp_in, int V, int siteSize)
 
void reorderQDPtoMILC (void *milc_out, void **qdp_in, int V, int siteSize, QudaPrecision out_precision, QudaPrecision in_precision)
 
template<typename Out , typename In >
void reorderMILCtoQDP (Out **qdp_out, In *milc_in, int V, int siteSize)
 
void reorderMILCtoQDP (void **qdp_out, void *milc_in, int V, int siteSize, QudaPrecision out_precision, QudaPrecision in_precision)
 
template<typename Float >
void applyStaggeredScaling (Float **res, QudaGaugeParam *param, int type)
 
template<typename Float >
void applyGaugeFieldScaling_long (Float **gauge, int Vh, QudaGaugeParam *param, QudaDslashType dslash_type)
 
void applyGaugeFieldScaling_long (void **gauge, int Vh, QudaGaugeParam *param, QudaDslashType dslash_type, QudaPrecision local_prec)
 

Macro Definition Documentation

◆ MAX

#define MAX (   a,
 
)    ((a) > (b) ? (a) : (b))

Definition at line 18 of file staggered_host_utils.cpp.

◆ TUP

#define TUP   3

Definition at line 23 of file staggered_host_utils.cpp.

◆ XUP

#define XUP   0

Definition at line 20 of file staggered_host_utils.cpp.

◆ YUP

#define YUP   1

Definition at line 21 of file staggered_host_utils.cpp.

◆ ZUP

#define ZUP   2

Definition at line 22 of file staggered_host_utils.cpp.

Function Documentation

◆ applyGaugeFieldScaling_long() [1/2]

template<typename Float >
void applyGaugeFieldScaling_long ( Float **  gauge,
int  Vh,
QudaGaugeParam param,
QudaDslashType  dslash_type 
)

Definition at line 779 of file staggered_host_utils.cpp.

◆ applyGaugeFieldScaling_long() [2/2]

void applyGaugeFieldScaling_long ( void **  gauge,
int  Vh,
QudaGaugeParam param,
QudaDslashType  dslash_type,
QudaPrecision  local_prec 
)

Definition at line 864 of file staggered_host_utils.cpp.

◆ applyStaggeredScaling()

template<typename Float >
void applyStaggeredScaling ( Float **  res,
QudaGaugeParam param,
int  type 
)

Definition at line 770 of file staggered_host_utils.cpp.

◆ computeHISQLinksCPU()

void computeHISQLinksCPU ( void **  fatlink,
void **  longlink,
void **  fatlink_eps,
void **  longlink_eps,
void **  sitelink,
void *  qudaGaugeParamPtr,
double **  act_path_coeffs,
double  eps_naik 
)

Definition at line 352 of file staggered_host_utils.cpp.

◆ computeLongLinkCPU() [1/2]

template<typename su3_matrix , typename Float >
void computeLongLinkCPU ( void **  longlink,
su3_matrix **  sitelink,
Float *  act_path_coeff 
)

Definition at line 272 of file staggered_host_utils.cpp.

◆ computeLongLinkCPU() [2/2]

void computeLongLinkCPU ( void **  longlink,
void **  sitelink,
QudaPrecision  prec,
void *  act_path_coeff 
)

Definition at line 330 of file staggered_host_utils.cpp.

◆ constructFatLongGaugeField()

void constructFatLongGaugeField ( void **  fatlink,
void **  longlink,
int  type,
QudaPrecision  precision,
QudaGaugeParam param,
QudaDslashType  dslash_type 
)

Definition at line 134 of file staggered_host_utils.cpp.

◆ constructStaggeredHostDeviceGaugeField()

void constructStaggeredHostDeviceGaugeField ( void **  qdp_inlink,
void **  qdp_longlink_cpu,
void **  qdp_longlink_gpu,
void **  qdp_fatlink_cpu,
void **  qdp_fatlink_gpu,
QudaGaugeParam gauge_param,
int  argc,
char **  argv,
bool &  gauge_loaded 
)

Definition at line 46 of file staggered_host_utils.cpp.

◆ constructStaggeredHostGaugeField()

void constructStaggeredHostGaugeField ( void **  qdp_inlink,
void **  qdp_longlink,
void **  qdp_fatlink,
QudaGaugeParam gauge_param,
int  argc,
char **  argv 
)

Definition at line 94 of file staggered_host_utils.cpp.

◆ constructStaggeredHostGhostGaugeField()

void constructStaggeredHostGhostGaugeField ( quda::GaugeField cpuFat,
quda::GaugeField cpuLong,
void *  milc_fatlink,
void *  milc_longlink,
QudaGaugeParam gauge_param 
)

Definition at line 29 of file staggered_host_utils.cpp.

◆ constructStaggeredTestSpinorParam()

void constructStaggeredTestSpinorParam ( quda::ColorSpinorParam cs_param,
const QudaInvertParam inv_param,
const QudaGaugeParam gauge_param 
)

Definition at line 688 of file staggered_host_utils.cpp.

◆ loadFatLongGaugeQuda()

void loadFatLongGaugeQuda ( void *  milc_fatlink,
void *  milc_longlink,
QudaGaugeParam gauge_param 
)

Definition at line 223 of file staggered_host_utils.cpp.

◆ reorderMILCtoQDP() [1/2]

template<typename Out , typename In >
void reorderMILCtoQDP ( Out **  qdp_out,
In *  milc_in,
int  V,
int  siteSize 
)

Definition at line 741 of file staggered_host_utils.cpp.

◆ reorderMILCtoQDP() [2/2]

void reorderMILCtoQDP ( void **  qdp_out,
void *  milc_in,
int  V,
int  siteSize,
QudaPrecision  out_precision,
QudaPrecision  in_precision 
)

Definition at line 752 of file staggered_host_utils.cpp.

◆ reorderQDPtoMILC() [1/2]

template<typename Out , typename In >
void reorderQDPtoMILC ( Out *  milc_out,
In **  qdp_in,
int  V,
int  siteSize 
)

Definition at line 712 of file staggered_host_utils.cpp.

◆ reorderQDPtoMILC() [2/2]

void reorderQDPtoMILC ( void *  milc_out,
void **  qdp_in,
int  V,
int  siteSize,
QudaPrecision  out_precision,
QudaPrecision  in_precision 
)

Definition at line 723 of file staggered_host_utils.cpp.