QUDA  0.9.0
Classes | Functions | Variables
quda::gauge Namespace Reference

Classes

struct  Accessor
 
struct  Accessor< Float, nColor, QUDA_FLOAT2_GAUGE_ORDER >
 
struct  Accessor< Float, nColor, QUDA_MILC_GAUGE_ORDER >
 
struct  Accessor< Float, nColor, QUDA_QDP_GAUGE_ORDER >
 
struct  BQCDOrder
 struct to define BQCD ordered gauge fields: More...
 
struct  CPSOrder
 
struct  FieldOrder
 
struct  FloatNOrder
 
struct  GhostAccessor
 
struct  GhostAccessor< Float, nColor, QUDA_FLOAT2_GAUGE_ORDER, native_ghost >
 
struct  GhostAccessor< Float, nColor, QUDA_MILC_GAUGE_ORDER, native_ghost >
 
struct  GhostAccessor< Float, nColor, QUDA_QDP_GAUGE_ORDER, native_ghost >
 
struct  LegacyOrder
 
struct  MILCOrder
 
struct  MILCSiteOrder
 struct to define gauge fields packed into an opaque MILC site struct: More...
 
struct  QDPJITOrder
 
struct  QDPOrder
 
struct  Reconstruct
 
struct  Reconstruct< 11, Float >
 
struct  Reconstruct< 12, Float >
 
struct  Reconstruct< 13, Float >
 
struct  Reconstruct< 19, Float >
 
struct  Reconstruct< 8, Float >
 
struct  Reconstruct< 9, Float >
 
struct  S
 This is just a dummy structure we use for trove to define the required structure size. More...
 
struct  square
 
struct  TIFROrder
 
struct  TIFRPaddedOrder
 

Functions

template<int nColor, int N>
__device__ __host__ int indexFloatN (int dim, int parity, int x_cb, int row, int col, int stride, int offset_cb)
 
template<typename Float , typename I >
__device__ __host__ Float timeBoundary (int idx, const I X[QUDA_MAX_DIM], const int R[QUDA_MAX_DIM], QudaTboundary tBoundary, bool isFirstTimeSlice, bool isLastTimeSlice, QudaGhostExchange ghostExchange=QUDA_GHOST_EXCHANGE_NO)
 
template<typename Float , typename I >
__device__ __host__ Float milcStaggeredPhase (int dim, const int x[], const I R[])
 
__host__ __device__ constexpr int ct_sqrt (int n, int i=1)
 
__host__ __device__ constexpr int Ncolor (int length)
 Return the number of colors of the accessor based on the length of the field. More...
 

Variables

constexpr bool default_huge_alloc = true
 

Function Documentation

◆ ct_sqrt()

__host__ __device__ constexpr int quda::gauge::ct_sqrt ( int  n,
int  i = 1 
)
inline

Definition at line 934 of file gauge_field_order.h.

References fused_exterior_ndeg_tm_dslash_cuda_gen::i, and n.

Referenced by Ncolor().

Here is the caller graph for this function:

◆ indexFloatN()

template<int nColor, int N>
__device__ __host__ int quda::gauge::indexFloatN ( int  dim,
int  parity,
int  x_cb,
int  row,
int  col,
int  stride,
int  offset_cb 
)
inline

Definition at line 286 of file gauge_field_order.h.

References dim, fused_exterior_ndeg_tm_dslash_cuda_gen::i, index(), nColor, and parity.

Here is the call graph for this function:

◆ milcStaggeredPhase()

template<typename Float , typename I >
__device__ __host__ Float quda::gauge::milcStaggeredPhase ( int  dim,
const int  x[],
const I  R[] 
)
inline

Definition at line 650 of file gauge_field_order.h.

References dim, R, deg_tm_dslash_cuda_gen::sign(), and x.

Here is the call graph for this function:

◆ Ncolor()

__host__ __device__ constexpr int quda::gauge::Ncolor ( int  length)
inline

Return the number of colors of the accessor based on the length of the field.

Parameters
[in]lengthNumber of real numbers per link
Returns
Number of colors (=sqrt(length/2))

Definition at line 943 of file gauge_field_order.h.

References ct_sqrt(), and length.

Referenced by quda::checkNan(), quda::copyGauge(), quda::copyGaugeKernel(), quda::copyGhost(), quda::copyGhostKernel(), quda::extractGhost(), and quda::extractGhostKernel().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ timeBoundary()

template<typename Float , typename I >
__device__ __host__ Float quda::gauge::timeBoundary ( int  idx,
const I  X[QUDA_MAX_DIM],
const int  R[QUDA_MAX_DIM],
QudaTboundary  tBoundary,
bool  isFirstTimeSlice,
bool  isLastTimeSlice,
QudaGhostExchange  ghostExchange = QUDA_GHOST_EXCHANGE_NO 
)
inline

timeBoundary variant for extended gauge field

Parameters
idxextended field linear index
Xthe gauge field dimensions
Rthe radii dimenions of the extended region
tBoundarythe boundary condition
isFirstTimeSliceif we're on the first time slice of nodes
isLastTimeSlideif we're on the last time slice of nodes
ghostExchangeif the field is extended or not (determines indexing type)

Definition at line 624 of file gauge_field_order.h.

References idx, QUDA_GHOST_EXCHANGE_EXTENDED, R, and X.

Variable Documentation

◆ default_huge_alloc

constexpr bool quda::gauge::default_huge_alloc = true

Definition at line 946 of file gauge_field_order.h.