QUDA  1.0.0
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Private Member Functions | Private Attributes | List of all members
quda::CopyColorSpinor< Ns, Arg > Class Template Reference
Inheritance diagram for quda::CopyColorSpinor< Ns, Arg >:
Inheritance graph
[legend]
Collaboration diagram for quda::CopyColorSpinor< Ns, Arg >:
Collaboration graph
[legend]

Public Member Functions

 CopyColorSpinor (Arg &arg, const ColorSpinorField &out, const ColorSpinorField &in, QudaFieldLocation location)
 
virtual ~CopyColorSpinor ()
 
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 advanceSharedBytes (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) const
 
void resizeStep (int y) const
 
- 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)
 
CUresult jitifyError () const
 
CUresult & jitifyError ()
 
virtual bool tuneAuxDim () const
 
virtual bool tuneSharedBytes () const
 
virtual bool advanceGridDim (TuneParam &param) const
 
virtual unsigned int maxBlockSize (const TuneParam &param) const
 
virtual unsigned int maxGridSize () const
 
virtual unsigned int minGridSize () const
 
virtual int gridStep () const
 gridStep sets the step size when iterating the grid size in advanceGridDim. More...
 
virtual int blockStep () const
 
virtual int blockMin () const
 
virtual void resetBlockDim (TuneParam &param) const
 
unsigned int maxBlocksPerSM () const
 For some 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 10.0 (Technical Specifications per Compute Capability) More...
 
template<typename F >
void setMaxDynamicSharedBytesPerBlock (F *func) const
 Enable the maximum dynamic shared bytes for the kernel "func" (values given by maxDynamicSharedBytesPerBlock()). More...
 
unsigned int maxDynamicSharedBytesPerBlock () const
 This can't be correctly queried in CUDA for all architectures so here we set set this. Based on Table 14 of the CUDA Programming Guide 10.0 (Technical Specifications per Compute Capability). More...
 
virtual unsigned int maxSharedBytesPerBlock () const
 The maximum shared memory that a CUDA thread block can use in the autotuner. This isn't necessarily the same as maxDynamicSharedMemoryPerBlock since that may need explicit opt in to enable (by calling setMaxDynamicSharedBytes for the kernel in question). If the CUDA kernel in question does this opt in then this function can be overloaded to return maxDynamicSharedBytesPerBlock. More...
 
virtual bool advanceAux (TuneParam &param) const
 
int writeAuxString (const char *format,...)
 

Private Attributes

Argarg
 
const ColorSpinorFieldmeta
 
const QudaFieldLocation location
 
- Private Attributes inherited from quda::TunableVectorY
unsigned int vector_length_y
 
unsigned int step_y
 
bool tune_block_x
 
- Private Attributes inherited from quda::Tunable
char aux [TuneKey::aux_n]
 
CUresult jitify_error
 

Detailed Description

template<int Ns, typename Arg>
class quda::CopyColorSpinor< Ns, Arg >

Definition at line 162 of file copy_color_spinor.cuh.

Constructor & Destructor Documentation

◆ CopyColorSpinor()

template<int Ns, typename Arg>
quda::CopyColorSpinor< Ns, Arg >::CopyColorSpinor ( Arg arg,
const ColorSpinorField out,
const ColorSpinorField in,
QudaFieldLocation  location 
)
inline

Definition at line 175 of file copy_color_spinor.cuh.

References errorQuda, and quda::ColorSpinorField::GammaBasis().

Here is the call graph for this function:

◆ ~CopyColorSpinor()

template<int Ns, typename Arg>
virtual quda::CopyColorSpinor< Ns, Arg >::~CopyColorSpinor ( )
inlinevirtual

Definition at line 181 of file copy_color_spinor.cuh.

Member Function Documentation

◆ advanceSharedBytes()

template<int Ns, typename Arg>
bool quda::CopyColorSpinor< Ns, Arg >::advanceSharedBytes ( TuneParam param) const
inlineprivatevirtual

The goal here is to throttle the number of thread blocks per SM by over-allocating shared memory (in order to improve L2 utilization, etc.). We thus request the smallest amount of dynamic shared memory that guarantees throttling to a given number of blocks, in order to allow some extra leeway.

Reimplemented from quda::Tunable.

Definition at line 170 of file copy_color_spinor.cuh.

◆ apply()

template<int Ns, typename Arg>
void quda::CopyColorSpinor< Ns, Arg >::apply ( const cudaStream_t &  stream)
inlinevirtual

Implements quda::Tunable.

Definition at line 183 of file copy_color_spinor.cuh.

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

Referenced by quda::genericCopyColorSpinor().

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

◆ bytes()

template<int Ns, typename Arg>
long long quda::CopyColorSpinor< Ns, Arg >::bytes ( ) const
inlinevirtual

Reimplemented from quda::Tunable.

Definition at line 194 of file copy_color_spinor.cuh.

◆ flops()

template<int Ns, typename Arg>
long long quda::CopyColorSpinor< Ns, Arg >::flops ( ) const
inlinevirtual

Implements quda::Tunable.

Definition at line 193 of file copy_color_spinor.cuh.

◆ minThreads()

template<int Ns, typename Arg>
unsigned int quda::CopyColorSpinor< Ns, Arg >::minThreads ( ) const
inlineprivatevirtual

Reimplemented from quda::Tunable.

Definition at line 172 of file copy_color_spinor.cuh.

References quda::ColorSpinorField::VolumeCB().

Here is the call graph for this function:

◆ sharedBytesPerBlock()

template<int Ns, typename Arg>
unsigned int quda::CopyColorSpinor< Ns, Arg >::sharedBytesPerBlock ( const TuneParam param) const
inlineprivatevirtual

Reimplemented from quda::TunableVectorY.

Definition at line 169 of file copy_color_spinor.cuh.

◆ sharedBytesPerThread()

template<int Ns, typename Arg>
unsigned int quda::CopyColorSpinor< Ns, Arg >::sharedBytesPerThread ( ) const
inlineprivatevirtual

Reimplemented from quda::TunableVectorY.

Definition at line 168 of file copy_color_spinor.cuh.

◆ tuneGridDim()

template<int Ns, typename Arg>
bool quda::CopyColorSpinor< Ns, Arg >::tuneGridDim ( ) const
inlineprivatevirtual

Reimplemented from quda::Tunable.

Definition at line 171 of file copy_color_spinor.cuh.

◆ tuneKey()

template<int Ns, typename Arg>
TuneKey quda::CopyColorSpinor< Ns, Arg >::tuneKey ( ) const
inlinevirtual

Implements quda::Tunable.

Definition at line 192 of file copy_color_spinor.cuh.

References quda::LatticeField::VolString().

Here is the call graph for this function:

Member Data Documentation

◆ arg

template<int Ns, typename Arg>
Arg& quda::CopyColorSpinor< Ns, Arg >::arg
private

Definition at line 163 of file copy_color_spinor.cuh.

◆ location

template<int Ns, typename Arg>
const QudaFieldLocation quda::CopyColorSpinor< Ns, Arg >::location
private

Definition at line 165 of file copy_color_spinor.cuh.

◆ meta

template<int Ns, typename Arg>
const ColorSpinorField& quda::CopyColorSpinor< Ns, Arg >::meta
private

Definition at line 164 of file copy_color_spinor.cuh.


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