arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2010.13437cs.DC
收藏

利用MPI RMA优化Cray机器上MONC中的光环交换通信

Leveraging MPI RMA to optimise halo-swapping communications in MONC on Cray machines

Nick Brown, Michael Bareford, Michèle Weiland

摘要:

远程内存访问(RMA),也称为单边通信,提供了一种访问其他进程的内存的方法,而不必发出显式的消息传递风格的通信调用。以前的研究已经得出结论,MPI RMA可以提供比传统MPI点对点(P2P)更高的性能,但这些都是基于合成基准。在这项工作中,我们取代现有的非阻塞P2P通信调用MONC大气模型与MPI RMA。我们详细描述了我们的方法,并讨论了正确性和性能所采取的选项。上的实验表明,通过使用RMA,我们可以获得之间的5%和10%之间的通信时间减少在每个时间步长上多达32768个核心,这在整个运行(许多时间步长)的结果在性能上的显着改善相比,P2P。然而,RMA并不是灵丹妙药,在将RMA集成到现有代码中时存在挑战:重要的优化是实现良好性能所必需的,并且库支持并不普遍成熟。在本文中,我们讨论,在现实世界的代码的背景下,经验教训转换P2P到RMA,探索性能和扩展的挑战,并详细对比替代RMA同步方法。

英文摘要:

Remote Memory Access (RMA), also known as single sided communications, provides a way of accessing the memory of other processes without having to issue explicit message passing style communication calls. Previous studies have concluded that MPI RMA can provide increased performance over traditional MPI Point to Point (P2P) but these are based on synthetic benchmarks. In this work, we replace the existing non-blocking P2P communication calls in the MONC atmospheric model with MPI RMA. We describe our approach in detail and discuss options taken for correctness and performance. Experiments on illustrate that by using RMA we can obtain between a 5\% and 10\% reduction in communication time at each timestep on up to 32768 cores, which over the entirety of a run (of many timesteps) results in a significant improvement in performance compared to P2P. However, RMA is not a silver bullet and there are challenges when integrating RMA into existing codes: important optimisations are necessary to achieve good performance and library support is not universally mature. In this paper we discuss, in the context of a real world code, the lessons learned converting P2P to RMA, explore performance and scaling challenges, and contrast alternative RMA synchronisation approaches in detail.

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

↑