QUDA  0.9.0
Public Member Functions | Private Member Functions | Private Attributes | List of all members
quda::CopyGauge< FloatOut, FloatIn, length, OutOrder, InOrder, isGhost > Class Template Reference
Inheritance diagram for quda::CopyGauge< FloatOut, FloatIn, length, OutOrder, InOrder, isGhost >:
Inheritance graph
[legend]
Collaboration diagram for quda::CopyGauge< FloatOut, FloatIn, length, OutOrder, InOrder, isGhost >:
Collaboration graph
[legend]

Public Member Functions

 CopyGauge (CopyGaugeArg< OutOrder, InOrder > &arg, const GaugeField &out, const GaugeField &in)
 
virtual ~CopyGauge ()
 
void apply (const cudaStream_t &stream)
 
TuneKey tuneKey () const
 
long long flops () const
 
long long bytes () const
 

Private Member Functions

unsigned int sharedBytesPerThread () const
 
unsigned int sharedBytesPerBlock (const TuneParam &param) const
 
bool tuneGridDim () const
 
unsigned int minThreads () const
 
- Private Member Functions inherited from quda::TunableVectorY
 TunableVectorY (unsigned int vector_length_y)
 
bool advanceBlockDim (TuneParam &param) const
 
void initTuneParam (TuneParam &param) const
 
void defaultTuneParam (TuneParam &param) const
 
void resizeVector (int y)
 
- Private Member Functions inherited from quda::Tunable
 Tunable ()
 
virtual ~Tunable ()
 
virtual void preTune ()
 
virtual void postTune ()
 
virtual int tuningIter () const
 
virtual std::string paramString (const TuneParam &param) const
 
virtual std::string perfString (float time) const
 
virtual bool advanceTuneParam (TuneParam &param) const
 
void checkLaunchParam (TuneParam &param)
 
virtual bool tuneAuxDim () const
 
virtual bool tuneSharedBytes () const
 
virtual bool advanceGridDim (TuneParam &param) const
 
virtual unsigned int maxBlockSize () const
 
virtual unsigned int maxGridSize () const
 
virtual unsigned int minGridSize () const
 
virtual int blockStep () const
 
virtual int blockMin () const
 
unsigned int maxBlocksPerSM () const
 For reason this can't be queried from the device properties, so here we set set this. Based on Table 14 of the CUDA Programming Guide 9.0 (Technical Specifications per Compute Capability) More...
 
virtual bool advanceSharedBytes (TuneParam &param) const
 
virtual bool advanceAux (TuneParam &param) const
 
int writeAuxString (const char *format,...)
 

Private Attributes

CopyGaugeArg< OutOrder, InOrder > arg
 
int size
 
const GaugeFieldmeta
 
- Private Attributes inherited from quda::TunableVectorY
unsigned int vector_length_y
 
- Private Attributes inherited from quda::Tunable
char aux [TuneKey::aux_n]
 

Detailed Description

template<typename FloatOut, typename FloatIn, int length, typename OutOrder, typename InOrder, bool isGhost>
class quda::CopyGauge< FloatOut, FloatIn, length, OutOrder, InOrder, isGhost >

Definition at line 181 of file copy_gauge_helper.cuh.

Constructor & Destructor Documentation

◆ CopyGauge()

template<typename FloatOut, typename FloatIn, int length, typename OutOrder, typename InOrder, bool isGhost>
quda::CopyGauge< FloatOut, FloatIn, length, OutOrder, InOrder, isGhost >::CopyGauge ( CopyGaugeArg< OutOrder, InOrder > &  arg,
const GaugeField out,
const GaugeField in 
)
inline

Definition at line 194 of file copy_gauge_helper.cuh.

References quda::arg(), quda::TuneKey::aux_n, d, errorQuda, in, n, out, QUDA_MILC_SITE_GAUGE_ORDER, size, and snprintf().

Here is the call graph for this function:

◆ ~CopyGauge()

template<typename FloatOut, typename FloatIn, int length, typename OutOrder, typename InOrder, bool isGhost>
virtual quda::CopyGauge< FloatOut, FloatIn, length, OutOrder, InOrder, isGhost >::~CopyGauge ( )
inlinevirtual

Definition at line 220 of file copy_gauge_helper.cuh.

Member Function Documentation

◆ apply()

template<typename FloatOut, typename FloatIn, int length, typename OutOrder, typename InOrder, bool isGhost>
void quda::CopyGauge< FloatOut, FloatIn, length, OutOrder, InOrder, isGhost >::apply ( const cudaStream_t &  stream)
inlinevirtual

Implements quda::Tunable.

Definition at line 222 of file copy_gauge_helper.cuh.

References quda::arg(), quda::TuneParam::block, getTuning(), getVerbosity(), quda::TuneParam::grid, quda::TuneParam::shared_bytes, quda::stream, and quda::tuneLaunch().

Referenced by quda::copyGauge(), and quda::copyMom().

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

◆ bytes()

template<typename FloatOut, typename FloatIn, int length, typename OutOrder, typename InOrder, bool isGhost>
long long quda::CopyGauge< FloatOut, FloatIn, length, OutOrder, InOrder, isGhost >::bytes ( ) const
inlinevirtual

Reimplemented from quda::Tunable.

Definition at line 236 of file copy_gauge_helper.cuh.

References quda::arg(), and d.

Here is the call graph for this function:

◆ flops()

template<typename FloatOut, typename FloatIn, int length, typename OutOrder, typename InOrder, bool isGhost>
long long quda::CopyGauge< FloatOut, FloatIn, length, OutOrder, InOrder, isGhost >::flops ( ) const
inlinevirtual

Implements quda::Tunable.

Definition at line 235 of file copy_gauge_helper.cuh.

◆ minThreads()

template<typename FloatOut, typename FloatIn, int length, typename OutOrder, typename InOrder, bool isGhost>
unsigned int quda::CopyGauge< FloatOut, FloatIn, length, OutOrder, InOrder, isGhost >::minThreads ( ) const
inlineprivatevirtual

Reimplemented from quda::Tunable.

Definition at line 191 of file copy_gauge_helper.cuh.

References size.

◆ sharedBytesPerBlock()

template<typename FloatOut, typename FloatIn, int length, typename OutOrder, typename InOrder, bool isGhost>
unsigned int quda::CopyGauge< FloatOut, FloatIn, length, OutOrder, InOrder, isGhost >::sharedBytesPerBlock ( const TuneParam param) const
inlineprivatevirtual

Reimplemented from quda::TunableVectorY.

Definition at line 188 of file copy_gauge_helper.cuh.

◆ sharedBytesPerThread()

template<typename FloatOut, typename FloatIn, int length, typename OutOrder, typename InOrder, bool isGhost>
unsigned int quda::CopyGauge< FloatOut, FloatIn, length, OutOrder, InOrder, isGhost >::sharedBytesPerThread ( ) const
inlineprivatevirtual

Reimplemented from quda::TunableVectorY.

Definition at line 187 of file copy_gauge_helper.cuh.

◆ tuneGridDim()

template<typename FloatOut, typename FloatIn, int length, typename OutOrder, typename InOrder, bool isGhost>
bool quda::CopyGauge< FloatOut, FloatIn, length, OutOrder, InOrder, isGhost >::tuneGridDim ( ) const
inlineprivatevirtual

Reimplemented from quda::Tunable.

Definition at line 190 of file copy_gauge_helper.cuh.

◆ tuneKey()

template<typename FloatOut, typename FloatIn, int length, typename OutOrder, typename InOrder, bool isGhost>
TuneKey quda::CopyGauge< FloatOut, FloatIn, length, OutOrder, InOrder, isGhost >::tuneKey ( ) const
inlinevirtual

Implements quda::Tunable.

Definition at line 233 of file copy_gauge_helper.cuh.

References quda::LatticeField::VolString().

Here is the call graph for this function:

Member Data Documentation

◆ arg

template<typename FloatOut, typename FloatIn, int length, typename OutOrder, typename InOrder, bool isGhost>
CopyGaugeArg<OutOrder,InOrder> quda::CopyGauge< FloatOut, FloatIn, length, OutOrder, InOrder, isGhost >::arg
private

Definition at line 182 of file copy_gauge_helper.cuh.

◆ meta

template<typename FloatOut, typename FloatIn, int length, typename OutOrder, typename InOrder, bool isGhost>
const GaugeField& quda::CopyGauge< FloatOut, FloatIn, length, OutOrder, InOrder, isGhost >::meta
private

Definition at line 184 of file copy_gauge_helper.cuh.

◆ size

template<typename FloatOut, typename FloatIn, int length, typename OutOrder, typename InOrder, bool isGhost>
int quda::CopyGauge< FloatOut, FloatIn, length, OutOrder, InOrder, isGhost >::size
private

Definition at line 183 of file copy_gauge_helper.cuh.


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