多重网格法中稀疏矩阵三重积的并行存储高效一次性算法
Parallel memory-efficient all-at-once algorithms for the sparse matrix triple products in multigrid methods
摘要:
多层/多重网格方法是求解大型稀疏线性方程组的最流行的方法之一,通常由偏微分方程的离散化产生。多层/多重网格方法的一个关键步骤是通过一系列稀疏矩阵三重积形成粗矩阵。三重积的常用方法明确涉及两个步骤,并且在每个步骤中使用稀疏矩阵-矩阵相乘。这种方法对于许多应用都很好地工作,具有良好的计算效率,但是它具有很高的存储器开销,因为需要临时存储一些辅助矩阵来完成计算。在这项工作中,我们提出了两个新的算法,构造一个粗略的矩阵,通过输入矩阵,而不涉及任何辅助矩阵,以节省内存。新的方法被称为“一次全部”和“一次全部合并”,传统的方法被称为“两步”。作为这项工作的一部分,在PETSc中基于哈希表实现了一次所有和合并的一次所有算法,并仔细考虑了计算时间和内存使用方面的性能。我们数值计算表明,所提出的算法及其实现是完全可扩展的计算时间和内存使用高达32,768处理器内核的模型问题与27十亿个未知数。的可扩展性也证明了一个现实的中子输运问题,超过20亿个未知数的超级计算机与10,000个处理器内核。与传统的两步法相比,All-at-once算法和合并All-at-once算法在保持计算效率的同时,对模型问题和实际中子输运问题的内存消耗都大大减少。
英文摘要:
Multilevel/multigrid methods is one of the most popular approaches for solving a large sparse linear system of equations, typically, arising from the discretization of partial differential equations. One critical step in the multilevel/multigrid methods is to form coarse matrices through a sequence of sparse matrix triple products. A commonly used approach for the triple products explicitly involves two steps, and during each step a sparse matrix-matrix multiplication is employed. This approach works well for many applications with a good computational efficiency, but it has a high memory overhead since some auxiliary matrices need to be temporarily stored for accomplishing the calculations. In this work, we propose two new algorithms that construct a coarse matrix with taking one pass through the input matrices without involving any auxiliary matrices for saving memory. The new approaches are referred to as "all-at-once" and "merged all-at-once", and the traditional method is denoted as "two-step". The all-at-once and the merged all-at-once algorithms are implemented based on hash tables in PETSc as part of this work with a careful consideration on the performance in terms of the compute time and the memory usage. We numerically show that the proposed algorithms and their implementations are perfectly scalable in both the compute time and the memory usage with up to 32,768 processor cores for a model problem with 27 billions of unknowns. The scalability is also demonstrated for a realistic neutron transport problem with over 2 billion unknowns on a supercomputer with 10,000 processor cores. Compared with the traditional two-step method, the all-at-once and the merged all-at-once algorithms consume much less memory for both the model problem and the realistic neutron transport problem meanwhile they are able to maintain the computational efficiency.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。