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

Public Member Functions

 Laplace (Arg &arg, const ColorSpinorField &out, const ColorSpinorField &in)
 
virtual ~Laplace ()
 
void apply (const cudaStream_t &stream)
 
long long flops () const
 
virtual long long bytes () const
 
TuneKey tuneKey () const
 
- Public Member Functions inherited from quda::Dslash< Float >
template<typename T , typename Arg >
void launch (T *f, const TuneParam &tp, Arg &arg, const cudaStream_t &stream)
 
template<template< typename, int, int, int, bool, bool, KernelType, typename > class Launch, int nDim, int nColor, int nParity, bool dagger, bool xpay, typename Arg >
void instantiate (TuneParam &tp, Arg &arg, const cudaStream_t &stream)
 This instantiate function is used to instantiate the the KernelType template required for the multi-GPU dslash kernels. More...
 
template<template< typename, int, int, int, bool, bool, KernelType, typename > class Launch, int nDim, int nColor, int nParity, bool xpay, typename Arg >
void instantiate (TuneParam &tp, Arg &arg, const cudaStream_t &stream)
 This instantiate function is used to instantiate the the dagger template. More...
 
template<template< typename, int, int, int, bool, bool, KernelType, typename > class Launch, int nDim, int nColor, bool xpay, typename Arg >
void instantiate (TuneParam &tp, Arg &arg, const cudaStream_t &stream)
 This instantiate function is used to instantiate the the nParity template. More...
 
template<template< typename, int, int, int, bool, bool, KernelType, typename > class Launch, int nDim, int nColor, typename Arg >
void instantiate (TuneParam &tp, Arg &arg, const cudaStream_t &stream)
 This instantiate function is used to instantiate the the xpay template. More...
 
 Dslash (DslashArg< Float > &arg, const ColorSpinorField &out, const ColorSpinorField &in, const char *src)
 
int Nface () const
 
int Dagger () const
 
const char * getAux (KernelType type) const
 
void setAux (KernelType type, const char *aux_)
 
void augmentAux (KernelType type, const char *extra)
 
virtual void preTune ()
 Save the output field since the output field is both read from and written to in the exterior kernels. More...
 
virtual void postTune ()
 Restore the output field if doing exterior kernel. More...
 
- Public Member Functions inherited from quda::TunableVectorYZ
 TunableVectorYZ (unsigned int vector_length_y, unsigned int vector_length_z)
 
bool advanceBlockDim (TuneParam &param) const
 
void initTuneParam (TuneParam &param) const
 
void defaultTuneParam (TuneParam &param) const
 
void resizeVector (int y, int z) const
 
void resizeStep (int y, int z) const
 
- Public Member Functions inherited from quda::TunableVectorY
 TunableVectorY (unsigned int vector_length_y)
 
void resizeVector (int y) const
 
void resizeStep (int y) const
 
- Public Member Functions inherited from quda::Tunable
 Tunable ()
 
virtual ~Tunable ()
 
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 ()
 

Protected Attributes

Argarg
 
const ColorSpinorFieldin
 
- Protected Attributes inherited from quda::Dslash< Float >
DslashArg< Float > & arg
 
const ColorSpinorFieldout
 
const ColorSpinorFieldin
 
const int nDimComms
 
char aux_base [TuneKey::aux_n - 32]
 
char aux [8][TuneKey::aux_n]
 
- Protected Attributes inherited from quda::TunableVectorY
unsigned int vector_length_y
 
unsigned int step_y
 
bool tune_block_x
 
- Protected Attributes inherited from quda::Tunable
char aux [TuneKey::aux_n]
 
CUresult jitify_error
 

Additional Inherited Members

- Public Attributes inherited from quda::Dslash< Float >
DslashArg< Float > & dslashParam
 
- Protected Member Functions inherited from quda::Dslash< Float >
void fillAuxBase ()
 Set the base strings used by the different dslash kernel types for autotuning. More...
 
void fillAux (KernelType kernel_type, const char *kernel_str)
 Specialize the auxiliary strings for each kernel type. More...
 
bool tuneGridDim () const
 
unsigned int minThreads () const
 
template<typename Arg >
void setParam (Arg &arg)
 
virtual int tuningIter () const
 
int blockStep () const
 
int blockMin () const
 
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...
 
- Protected Member Functions inherited from quda::TunableVectorY
virtual unsigned int sharedBytesPerThread () const
 
virtual unsigned int sharedBytesPerBlock (const TuneParam &param) const
 
- Protected Member Functions inherited from quda::Tunable
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 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 bool advanceSharedBytes (TuneParam &param) const
 
virtual bool advanceAux (TuneParam &param) const
 
int writeAuxString (const char *format,...)
 

Detailed Description

template<typename Float, int nDim, int nColor, typename Arg>
class quda::Laplace< Float, nDim, nColor, Arg >

Definition at line 39 of file laplace.cu.

Constructor & Destructor Documentation

◆ Laplace()

template<typename Float, int nDim, int nColor, typename Arg>
quda::Laplace< Float, nDim, nColor, Arg >::Laplace ( Arg arg,
const ColorSpinorField out,
const ColorSpinorField in 
)
inline

Definition at line 47 of file laplace.cu.

◆ ~Laplace()

template<typename Float, int nDim, int nColor, typename Arg>
virtual quda::Laplace< Float, nDim, nColor, Arg >::~Laplace ( )
inlinevirtual

Definition at line 54 of file laplace.cu.

Member Function Documentation

◆ apply()

template<typename Float, int nDim, int nColor, typename Arg>
void quda::Laplace< Float, nDim, nColor, Arg >::apply ( const cudaStream_t &  stream)
inlinevirtual

Implements quda::Tunable.

Definition at line 56 of file laplace.cu.

References quda::arg(), getTuning(), getVerbosity(), quda::Dslash< Float >::setParam(), quda::stream, and quda::tuneLaunch().

Here is the call graph for this function:

◆ bytes()

template<typename Float, int nDim, int nColor, typename Arg>
virtual long long quda::Laplace< Float, nDim, nColor, Arg >::bytes ( ) const
inlinevirtual

◆ flops()

template<typename Float, int nDim, int nColor, typename Arg>
long long quda::Laplace< Float, nDim, nColor, Arg >::flops ( ) const
inlinevirtual

◆ tuneKey()

template<typename Float, int nDim, int nColor, typename Arg>
TuneKey quda::Laplace< Float, nDim, nColor, Arg >::tuneKey ( ) const
inlinevirtual

Implements quda::Tunable.

Definition at line 151 of file laplace.cu.

References quda::TuneKey::aux_n, quda::laplace(), quda::u32toa(), and quda::LatticeField::VolString().

Here is the call graph for this function:

Member Data Documentation

◆ arg

template<typename Float, int nDim, int nColor, typename Arg>
Arg& quda::Laplace< Float, nDim, nColor, Arg >::arg
protected

Definition at line 43 of file laplace.cu.

◆ in

template<typename Float, int nDim, int nColor, typename Arg>
const ColorSpinorField& quda::Laplace< Float, nDim, nColor, Arg >::in
protected

Definition at line 44 of file laplace.cu.


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