Inter-node Implementation¶
-
template<class T>
class ChaseMpiDLA : public chase::mpi::ChaseMpiDLAInterface<T>¶ A derived class of ChaseMpiDLAInterface which implements mostly the MPI collective communications part of ChASE-MPI targeting the distributed-memory systens with or w/o GPUs.
The computation in node are mostly implemented in ChaseMpiDLABlaslapack and ChaseMpiDLAMultiGPU. It supports both
Block DistributionandBlock-Cyclic Distributionschemes.Public Functions
-
inline virtual void preApplication(T *V, std::size_t locked, std::size_t block) override¶
For ChaseMpiDLA,
preApplicationis implemented withinstd::memcpy.Parallelism on distributed-memory system SUPPORT
For the meaning of this function, please visit ChaseMpiDLAInterface.
-
inline virtual void preApplication(T *V1, T *V2, std::size_t locked, std::size_t block) override¶
For ChaseMpiDLA,
preApplicationis implemented withinstd::memcpy.Parallelism on distributed-memory system SUPPORT
For the meaning of this function, please visit ChaseMpiDLAInterface.
-
inline virtual void apply(T alpha, T beta, std::size_t offset, std::size_t block) override¶
In ChaseMpiDLA, collective communication of
HEMMoperation based on MPI which ALLREDUCE the product of local matrices either within the column communicator or row communicator.In ChaseMpiDLA,
scalandaxpyare implemented with the one provided byBLAS.Parallelism on distributed-memory system SUPPORT
Parallelism within node for ChaseMpiDLABlaslapack if multi-threading is enabled
Parallelism within node among multi-GPUs for ChaseMpiDLAMultiGPU
Parallelism within each GPU for ChaseMpiDLAMultiGPU
For the meaning of this function, please visit ChaseMpiDLAInterface.
-
inline virtual bool postApplication(T *V, std::size_t block) override¶
For ChaseMpiDLA,
postApplicationoperation brocasts asynchronously the final product ofHEMMto each MPI rank.Parallelism on distributed-memory system SUPPORT
For the meaning of this function, please visit ChaseMpiDLAInterface.
-
inline virtual void shiftMatrix(T c, bool isunshift = false) override¶
For ChaseMpiDLA,
shiftMatrixis implemented in nested loop for bothBlock DistributionandBlock-Cyclic Distribution.Parallelism on distributed-memory system SUPPORT
For the meaning of this function, please visit ChaseMpiDLAInterface.
-
inline virtual void applyVec(T *B, T *C) override¶
For ChaseMpiDLA,
applyVecis implemented bypreApplication,applyandpostApplicationimplemented in this class.Parallelism on distributed-memory system SUPPORT
Parallelism within node for ChaseMpiDLABlaslapack if multi-threading is enabled
Parallelism within node among multi-GPUs for ChaseMpiDLAMultiGPU
Parallelism within each GPU for ChaseMpiDLAMultiGPU
For the meaning of this function, please visit ChaseMpiDLAInterface.
-
inline virtual Base<T> lange(char norm, std::size_t m, std::size_t n, T *A, std::size_t lda) override¶
For ChaseMpiDLA,
langeis implemented by calling the one in ChaseMpiDLABlaslapack and ChaseMpiDLAMultiGPU.This implementation is the same for both with or w/o GPUs.
Parallelism is SUPPORT within node if multi-threading is actived
For the meaning of this function, please visit ChaseMpiDLAInterface.
-
inline virtual void gegqr(std::size_t N, std::size_t nevex, T *approxV, std::size_t LDA) override¶
For ChaseMpiDLA,
gegqris implemented by calling the one in ChaseMpiDLABlaslapack and ChaseMpiDLAMultiGPU.This implementation is the same for both with or w/o GPUs.
Parallelism is SUPPORT within node if multi-threading is actived
For the meaning of this function, please visit ChaseMpiDLAInterface.
-
inline virtual void axpy(std::size_t N, T *alpha, T *x, std::size_t incx, T *y, std::size_t incy) override¶
For ChaseMpiDLA,
axpyis implemented by calling the one in ChaseMpiDLABlaslapack and ChaseMpiDLAMultiGPU.This implementation is the same for both with or w/o GPUs.
Parallelism is SUPPORT within node if multi-threading is actived
For the meaning of this function, please visit ChaseMpiDLAInterface.
-
inline virtual void scal(std::size_t N, T *a, T *x, std::size_t incx) override¶
For ChaseMpiDLA,
scalis implemented by calling the one in ChaseMpiDLABlaslapack and ChaseMpiDLAMultiGPU.This implementation is the same for both with or w/o GPUs.
Parallelism is SUPPORT within node if multi-threading is actived
For the meaning of this function, please visit ChaseMpiDLAInterface.
-
inline virtual Base<T> nrm2(std::size_t n, T *x, std::size_t incx) override¶
For ChaseMpiDLA,
nrm2is implemented by calling the one in ChaseMpiDLABlaslapack and ChaseMpiDLAMultiGPU.This implementation is the same for both with or w/o GPUs.
Parallelism is SUPPORT within node if multi-threading is actived
For the meaning of this function, please visit ChaseMpiDLAInterface.
-
inline virtual T dot(std::size_t n, T *x, std::size_t incx, T *y, std::size_t incy) override¶
For ChaseMpiDLA,
dotis implemented by calling the one in ChaseMpiDLABlaslapack and ChaseMpiDLAMultiGPU.This implementation is the same for both with or w/o GPUs.
Parallelism is SUPPORT within node if multi-threading is actived
For the meaning of this function, please visit ChaseMpiDLAInterface.
-
inline virtual void gemm_small(CBLAS_LAYOUT Layout, CBLAS_TRANSPOSE transa, CBLAS_TRANSPOSE transb, std::size_t m, std::size_t n, std::size_t k, T *alpha, T *a, std::size_t lda, T *b, std::size_t ldb, T *beta, T *c, std::size_t ldc) override¶
For ChaseMpiDLA,
gemm_smallis implemented withxGEMMprovided byBLAS.This implementation is the same for both with or w/o GPUs.
Parallelism is SUPPORT within node if multi-threading is actived
For the meaning of this function, please visit ChaseMpiDLAInterface.
-
inline virtual void gemm_large(CBLAS_LAYOUT Layout, CBLAS_TRANSPOSE transa, CBLAS_TRANSPOSE transb, std::size_t m, std::size_t n, std::size_t k, T *alpha, T *a, std::size_t lda, T *b, std::size_t ldb, T *beta, T *c, std::size_t ldc) override¶
For ChaseMpiDLA,
gemm_largeis implemented withxGEMMprovided byBLAS.This implementation is the same for both with or w/o GPUs.
Parallelism is SUPPORT within node if multi-threading is actived
For the meaning of this function, please visit ChaseMpiDLAInterface.
-
inline virtual std::size_t stemr(int matrix_layout, char jobz, char range, std::size_t n, double *d, double *e, double vl, double vu, std::size_t il, std::size_t iu, int *m, double *w, double *z, std::size_t ldz, std::size_t nzc, int *isuppz, lapack_logical *tryrac) override¶
For ChaseMpiDLA,
stemrwith real and double precision scalar, is implemented by calling the one in ChaseMpiDLABlaslapack and ChaseMpiDLAMultiGPU.This implementation is the same for both with or w/o GPUs.
Parallelism is SUPPORT within node if multi-threading is actived
For the meaning of this function, please visit ChaseMpiDLAInterface.
-
inline virtual std::size_t stemr(int matrix_layout, char jobz, char range, std::size_t n, float *d, float *e, float vl, float vu, std::size_t il, std::size_t iu, int *m, float *w, float *z, std::size_t ldz, std::size_t nzc, int *isuppz, lapack_logical *tryrac) override¶
For ChaseMpiDLA,
stemrwith real and single precision scalar, is implemented by calling the one in ChaseMpiDLABlaslapack and ChaseMpiDLAMultiGPU.This implementation is the same for both with or w/o GPUs.
Parallelism is SUPPORT within node if multi-threading is actived
For the meaning of this function, please visit ChaseMpiDLAInterface.
-
inline virtual void RR_kernel(std::size_t N, std::size_t block, T *approxV, std::size_t locked, T *workspace, T One, T Zero, Base<T> *ritzv) override¶
For ChaseMpiDLA,
RR_kernelwith real and double precision scalar, is implemented by calling the one in ChaseMpiDLABlaslapack and ChaseMpiDLAMultiGPU.This implementation is the same for both with or w/o GPUs.
Parallelism is SUPPORT within node if multi-threading is actived
For the meaning of this function, please visit ChaseMpiDLAInterface.
-
inline virtual void preApplication(T *V, std::size_t locked, std::size_t block) override¶