Virtual Abstract of Numerical Kernels¶
ChASE relies on a modest number of numerical kernels whose calls execute almost all FLOPs. Because of its simple structure, there would be clear advantages in the separation of the numerical kernels from the algorithm implementation. In ChASE, the linear algebra kernels are separated from the main algorithm through the use of an object-oriented software interface.
Benefits¶
With the help of the seperation of numerical kernels,
First, ChASE can be easily integrated into existing codes thanks to the relative simplicity of the software interface. For instance, the low-level kernels can be implemented according to an existing distribution of the matrix elements of A so as to avoid the need to re-distribute data;
Second, ChASE can easily exploit existing linear algebra libraries such as BLAS and LAPACK all the way up to GPU-based kernels, and even complex distributed-memory dense linear algebra frameworks such as Elemental.
Definition of Interface¶
-
template<class T>
class Chase¶ Subclassed by chase::mpi::ChaseMpi< ChaseMpiDLABlaslapack, T >, chase::mpi::ChaseMpi< ChaseMpiDLABlaslapackSeq, T >, chase::PerformanceDecoratorChase< T >, chase::elemental::ChaseElemental< T >, chase::mpi::ChaseMpi< MF, T >
Public Functions
-
virtual void QR(std::size_t fixednev) = 0¶
-
virtual void Lanczos(std::size_t M, std::size_t idx, Base<T> *upperb, Base<T> *ritzv, Base<T> *Tau, Base<T> *ritzV) = 0¶
-
virtual void Swap(std::size_t i, std::size_t j) = 0¶
-
virtual void Lock(std::size_t new_converged) = 0¶
-
virtual void Start() = 0¶
-
virtual void End() = 0¶
-
virtual std::size_t GetN() const = 0¶
-
virtual std::size_t GetNev() = 0¶
-
virtual std::size_t GetNex() = 0¶
-
virtual ChaseConfig<T> &GetConfig() = 0¶
-
virtual void Output(std::string str) = 0¶
-
virtual void QR(std::size_t fixednev) = 0¶