QUDA  v1.1.0
A library for QCD on GPUs
Classes | Namespaces | Macros | Typedefs | Enumerations | Functions
color_spinor_field.h File Reference
#include <quda_internal.h>
#include <quda.h>
#include <iostream>
#include <lattice_field.h>
#include <random_quda.h>
#include <fast_intdiv.h>
#include <comm_key.h>

Go to the source code of this file.

Classes

struct  quda::CompositeColorSpinorFieldDescriptor
 
class  quda::ColorSpinorParam
 
struct  quda::DslashConstant
 Constants used by dslash and packing kernels. More...
 
class  quda::ColorSpinorField
 
class  quda::cudaColorSpinorField
 
class  quda::cpuColorSpinorField
 

Namespaces

 quda
 
 quda::colorspinor
 

Macros

#define checkPCType(...)   PCType_(__func__, __FILE__, __LINE__, __VA_ARGS__)
 
#define checkOrder(...)   Order_(__func__, __FILE__, __LINE__, __VA_ARGS__)
 
#define checkLength(...)   Length_(__func__, __FILE__, __LINE__, __VA_ARGS__)
 

Typedefs

typedef std::vector< ColorSpinorField * > quda::CompositeColorSpinorField
 

Enumerations

enum  quda::MemoryLocation { quda::Device = 1 , quda::Host = 2 , quda::Remote = 4 , quda::Shmem = 8 }
 

Functions

bool quda::colorspinor::isNative (QudaFieldOrder order, QudaPrecision precision, int nSpin, int nColor)
 
constexpr QudaParity quda::impliedParityFromMatPC (const QudaMatPCType &matpc_type)
 Helper function for getting the implied spinor parity from a matrix preconditioning type. More...
 
void quda::copyGenericColorSpinor (ColorSpinorField &dst, const ColorSpinorField &src, QudaFieldLocation location, void *Dst=0, void *Src=0, void *dstNorm=0, void *srcNorm=0)
 
void quda::genericSource (cpuColorSpinorField &a, QudaSourceType sourceType, int x, int s, int c)
 
int quda::genericCompare (const cpuColorSpinorField &a, const cpuColorSpinorField &b, int tol)
 
void quda::copyFieldOffset (ColorSpinorField &out, const ColorSpinorField &in, CommKey offset, QudaPCType pc_type)
 This function is used for copying from a source colorspinor field to a destination field with an offset. More...
 
void quda::genericPrintVector (const cpuColorSpinorField &a, unsigned int x)
 
void quda::genericCudaPrintVector (const cudaColorSpinorField &a, unsigned x)
 
void quda::exchangeExtendedGhost (cudaColorSpinorField *spinor, int R[], int parity, qudaStream_t *stream_p)
 
void quda::copyExtendedColorSpinor (ColorSpinorField &dst, const ColorSpinorField &src, QudaFieldLocation location, const int parity, void *Dst, void *Src, void *dstNorm, void *srcNorm)
 
void quda::genericPackGhost (void **ghost, const ColorSpinorField &a, QudaParity parity, int nFace, int dagger, MemoryLocation *destination=nullptr)
 Generic ghost packing routine. More...
 
void quda::spinorNoise (ColorSpinorField &src, RNG &randstates, QudaNoiseType type)
 Generate a random noise spinor. This variant allows the user to manage the RNG state. More...
 
void quda::spinorNoise (ColorSpinorField &src, unsigned long long seed, QudaNoiseType type)
 Generate a random noise spinor. This variant just requires a seed and will create and destroy the random number state. More...
 
QudaPCType quda::PCType_ (const char *func, const char *file, int line, const ColorSpinorField &a, const ColorSpinorField &b)
 Helper function for determining if the preconditioning type of the fields is the same. More...
 
template<typename... Args>
QudaPCType quda::PCType_ (const char *func, const char *file, int line, const ColorSpinorField &a, const ColorSpinorField &b, const Args &... args)
 Helper function for determining if the precision of the fields is the same. More...
 
QudaFieldOrder quda::Order_ (const char *func, const char *file, int line, const ColorSpinorField &a, const ColorSpinorField &b)
 Helper function for determining if the order of the fields is the same. More...
 
template<typename... Args>
QudaFieldOrder quda::Order_ (const char *func, const char *file, int line, const ColorSpinorField &a, const ColorSpinorField &b, const Args &... args)
 Helper function for determining if the order of the fields is the same. More...
 
int quda::Length_ (const char *func, const char *file, int line, const ColorSpinorField &a, const ColorSpinorField &b)
 Helper function for determining if the length of the fields is the same. More...
 
template<typename... Args>
int quda::Length_ (const char *func, const char *file, int line, const ColorSpinorField &a, const ColorSpinorField &b, const Args &... args)
 Helper function for determining if the length of the fields is the same. More...
 

Macro Definition Documentation

◆ checkLength

#define checkLength (   ...)    Length_(__func__, __FILE__, __LINE__, __VA_ARGS__)

Definition at line 1231 of file color_spinor_field.h.

◆ checkOrder

#define checkOrder (   ...)    Order_(__func__, __FILE__, __LINE__, __VA_ARGS__)

Definition at line 1199 of file color_spinor_field.h.

◆ checkPCType

#define checkPCType (   ...)    PCType_(__func__, __FILE__, __LINE__, __VA_ARGS__)

Definition at line 1166 of file color_spinor_field.h.