arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2103.07329cs.MScs.DCcs.NAmath.NA
收藏

XAMG:求解多个右侧向量的线性方程组的库

XAMG: A library for solving linear systems with multiple right-hand side vectors

Boris Krasnopolsky, Alexey Medvedev

摘要:

本文介绍了XAMG库求解大型稀疏系统的线性代数方程组与多个右手边向量。该图书馆专门但不限于从椭圆微分方程的离散化获得的线性系统的解决方案。相应的数值方法包括Krylov子空间、代数多重网格、Jacobi、Gauss-Seidel和Chebyshev迭代法。并行化采用MPI+POSIX共享内存混合编程模型实现,该模型采用三级层次分解,每级使用相应的同步和通信原语。该代码包含许多优化,包括多级数据分段、索引压缩、混合精度浮点计算、向量状态标志等。XAMG库使用著名的hypre库的程序代码来构造多重网格矩阵层次结构。XAMG自己的迭代法求解阶段的实现与hypre相比,为所执行的测试提供了两倍的加速。此外,XAMG还提供了扩展功能来解决具有多个右侧向量的系统。

英文摘要:

This paper presents the XAMG library for solving large sparse systems of linear algebraic equations with multiple right-hand side vectors. The library specializes but is not limited to the solution of linear systems obtained from the discretization of elliptic differential equations. A corresponding set of numerical methods includes Krylov subspace, algebraic multigrid, Jacobi, Gauss-Seidel, and Chebyshev iterative methods. The parallelization is implemented with MPI+POSIX shared memory hybrid programming model, which introduces a three-level hierarchical decomposition using the corresponding per-level synchronization and communication primitives. The code contains a number of optimizations, including the multilevel data segmentation, compression of indices, mixed-precision floating-point calculations, vector status flags, and others. The XAMG library uses the program code of the well-known hypre library to construct the multigrid matrix hierarchy. The XAMG's own implementation for the solve phase of the iterative methods provides up to a twofold speedup compared to hypre for the tests performed. Additionally, XAMG provides extended functionality to solve systems with multiple right-hand side vectors.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑