QUDA  0.9.0
Public Member Functions | Private Types | List of all members
Spinor< RegType, StoreType, N, write, tex_id > Class Template Reference

#include <texture.h>

Inheritance diagram for Spinor< RegType, StoreType, N, write, tex_id >:
Inheritance graph
[legend]
Collaboration diagram for Spinor< RegType, StoreType, N, write, tex_id >:
Collaboration graph
[legend]

Public Member Functions

 Spinor ()
 
 Spinor (const ColorSpinorField &x, int nFace=1)
 
 Spinor (const Spinor &st)
 
Spinoroperator= (const Spinor &src)
 
void set (const cudaColorSpinorField &x)
 
 ~Spinor ()
 
__device__ void save (RegType x[], int i, const int parity=0)
 
void backup (char **spinor_h, char **norm_h, size_t bytes, size_t norm_bytes)
 
void restore (char **spinor_h, char **norm_h, size_t bytes, size_t norm_bytes)
 
void * V ()
 
floatNorm ()
 
- Public Member Functions inherited from SpinorTexture< RegType, StoreType, N, tex_id >
 SpinorTexture ()
 
 SpinorTexture (const ColorSpinorField &x, int nFace=1)
 
 SpinorTexture (const SpinorTexture &st)
 
SpinorTextureoperator= (const SpinorTexture &src)
 
void set (const cudaColorSpinorField &x, int nFace=1)
 
virtual ~SpinorTexture ()
 
__device__ void load (RegType x[], const int i, const int parity=0)
 
__device__ void loadGhost (RegType x[], const int i, const int dim)
 
QudaPrecision Precision () const
 
int Stride () const
 
int Bytes () const
 

Private Types

typedef bridge_mapper< RegType, StoreType >::type InterType
 
typedef SpinorTexture< RegType, StoreType, N, tex_id > ST
 

Additional Inherited Members

- Protected Attributes inherited from SpinorTexture< RegType, StoreType, N, tex_id >
StoreType * spinor
 
StoreType * ghost_spinor
 
Texture< InterType, StoreType, tex_id > tex
 
Texture< InterType, StoreType, -1 > ghostTex
 
floatnorm
 
int stride
 
unsigned int cb_offset
 
unsigned int cb_norm_offset
 
int ghost_stride [4]
 

Detailed Description

template<typename RegType, typename StoreType, int N, int write, int tex_id = -1>
class Spinor< RegType, StoreType, N, write, tex_id >

Parameters
RegTypeRegister type used in kernel
InterTypeIntermediate format - RegType precision with StoreType ordering
StoreTypeType used to store field in memory
NLength of vector of RegType elements that this Spinor represents
tex_idWhich texture reference are we using. A default of -1 disables textures on architectures that don't support texture objects.

Definition at line 528 of file texture.h.

Member Typedef Documentation

◆ InterType

template<typename RegType, typename StoreType, int N, int write, int tex_id = -1>
typedef bridge_mapper<RegType,StoreType>::type Spinor< RegType, StoreType, N, write, tex_id >::InterType
private

Definition at line 530 of file texture.h.

◆ ST

template<typename RegType, typename StoreType, int N, int write, int tex_id = -1>
typedef SpinorTexture<RegType,StoreType,N,tex_id> Spinor< RegType, StoreType, N, write, tex_id >::ST
private

Definition at line 531 of file texture.h.

Constructor & Destructor Documentation

◆ Spinor() [1/3]

template<typename RegType, typename StoreType, int N, int write, int tex_id = -1>
Spinor< RegType, StoreType, N, write, tex_id >::Spinor ( )
inline

Definition at line 542 of file texture.h.

◆ Spinor() [2/3]

template<typename RegType, typename StoreType, int N, int write, int tex_id = -1>
Spinor< RegType, StoreType, N, write, tex_id >::Spinor ( const ColorSpinorField &  x,
int  nFace = 1 
)
inline

Definition at line 549 of file texture.h.

◆ Spinor() [3/3]

template<typename RegType, typename StoreType, int N, int write, int tex_id = -1>
Spinor< RegType, StoreType, N, write, tex_id >::Spinor ( const Spinor< RegType, StoreType, N, write, tex_id > &  st)
inline

Definition at line 555 of file texture.h.

◆ ~Spinor()

template<typename RegType, typename StoreType, int N, int write, int tex_id = -1>
Spinor< RegType, StoreType, N, write, tex_id >::~Spinor ( )
inline

Definition at line 580 of file texture.h.

Member Function Documentation

◆ backup()

template<typename RegType, typename StoreType, int N, int write, int tex_id = -1>
void Spinor< RegType, StoreType, N, write, tex_id >::backup ( char **  spinor_h,
char **  norm_h,
size_t  bytes,
size_t  norm_bytes 
)
inline

◆ Norm()

template<typename RegType, typename StoreType, int N, int write, int tex_id = -1>
float* Spinor< RegType, StoreType, N, write, tex_id >::Norm ( )
inline

Definition at line 629 of file texture.h.

References SpinorTexture< RegType, StoreType, N, tex_id >::norm.

◆ operator=()

template<typename RegType, typename StoreType, int N, int write, int tex_id = -1>
Spinor& Spinor< RegType, StoreType, N, write, tex_id >::operator= ( const Spinor< RegType, StoreType, N, write, tex_id > &  src)
inline

◆ restore()

template<typename RegType, typename StoreType, int N, int write, int tex_id = -1>
void Spinor< RegType, StoreType, N, write, tex_id >::restore ( char **  spinor_h,
char **  norm_h,
size_t  bytes,
size_t  norm_bytes 
)
inline

◆ save()

template<typename RegType, typename StoreType, int N, int write, int tex_id = -1>
__device__ void Spinor< RegType, StoreType, N, write, tex_id >::save ( RegType  x[],
int  i,
const int  parity = 0 
)
inline

◆ set()

template<typename RegType, typename StoreType, int N, int write, int tex_id = -1>
void Spinor< RegType, StoreType, N, write, tex_id >::set ( const cudaColorSpinorField &  x)
inline

Definition at line 572 of file texture.h.

References SpinorTexture< RegType, StoreType, N, tex_id >::ghost_spinor, SpinorTexture< RegType, StoreType, N, tex_id >::set(), SpinorTexture< RegType, StoreType, N, tex_id >::spinor, and x.

Referenced by quda::computeCloverSigmaOprod().

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

◆ V()

template<typename RegType, typename StoreType, int N, int write, int tex_id = -1>
void* Spinor< RegType, StoreType, N, write, tex_id >::V ( )
inline

Definition at line 628 of file texture.h.

References SPINOR.


The documentation for this class was generated from the following file: