通过混合并行提升经典线性代数迭代方法的性能
Improving the performance of classical linear algebra iterative methods via hybrid parallelism
AI总结:
本文提出四种经典线性代数迭代方法的混合并行实现,实验表明基于任务的混合并行在弱可扩展性及适中资源的强可扩展性场景下优于纯MPI等方法。
摘要:
我们提出了四种经典线性代数迭代方法(Jacobi、Gauss-Seidel、共轭梯度及双共轭梯度稳定化)及其变体的 fork-join 和基于任务的混合实现。算法已妥善记录,相应源代码已公开以供复现。我们进行了弱和强可扩展性基准测试,以统计分析它们的相对效率。弱可扩展性结果证实了基于任务的混合并行优于纯 MPI 和 fork-join 混合实现。实际上,根据所用数值方法和计算资源,基于任务的模型能实现比纯 MPI 对应方案高达 25% 的加速。对于强可扩展性场景,在数据局部性不起重要作用且计算资源适中的情况下,基于任务的混合方法仍更高效。Fork-join 混合化通常产生好坏参半的结果,因此相比简单得多的 MPI 方法不具备竞争优势。
英文摘要:
We propose fork-join and task-based hybrid implementations of four classical linear algebra iterative methods (Jacobi, Gauss-Seidel, conjugate gradient and biconjugate gradient stabilised) as well as variations of them. Algorithms are duly documented and the corresponding source code is made publicly available for reproducibility. Both weak and strong scalability benchmarks are conducted to statistically analyse their relative efficiencies. The weak scalability results assert the superiority of a task-based hybrid parallelisation over MPI-only and fork-join hybrid implementations. Indeed, the task-based model is able to achieve speedups of up to 25% larger than its MPI-only counterpart depending on the numerical method and the computational resources used. For strong scalability scenarios, hybrid methods based on tasks remain more efficient with moderate computational resources where data locality does not play an important role. Fork-join hybridisation often yields mixed results and hence does not present a competitive advantage over a much simpler MPI approach.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。