arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2602.15995cs.DC
收藏

多线程程序高效记录和回放的分布式顺序记录技术

Distributed Order Recording Techniques for Efficient Record-and-Replay of Multi-threaded Programs

Nanchang Hangkong University(南昌航空大学);Pacific Northwest National Laboratory(太平洋西北国家实验室);RIKEN R-CCS(理化学研究所计算科学研究中心);NVIDIA(英伟达);Lawrence Livermore National Laboratory(劳伦斯利弗莫尔国家实验室);Technical University of Munich(慕尼黑工业大学)

Xiang Fu, Shiman Meng, Weiping Zhang, Luanzheng Guo, Kento Sato, Dong H. Ahn, Ignacio Laguna, Gregory L. Lee, Martin Schulz

AI总结:

本文提出基于分布式时钟和纪元的记录回放技术,提升多线程程序的回放效率,并可与 MPI 工具结合处理复杂混合编程应用。

摘要:

经过这么多年和各种其他共享内存编程框架,OpenMP 仍然是最受欢迎的。然而,其更高层次的非确定性执行使调试和测试更具挑战性。能够记录并确定性回放程序执行的能力是解决这一挑战的关键。然而,可扩展地回放 OpenMP 程序仍然是一个未解决的问题。在本文中,我们提出了两种新颖的技术,利用分布式时钟(DC)和分布式纪元(DE)记录方案,以消除 OpenMP 记录和回放中的过多线程同步。我们对代表性 HPC 应用进行评估,使用 ReOMP 实现 DC 和 DE 记录,结果表明我们的方法比传统在每次共享内存访问上同步的方法效率提高了 2-5 倍。此外,我们证明我们的方法可以轻松地与 MPI 级别的回放工具结合,回放非平凡的 MPI+OpenMP 应用。我们通过将 \toolname 集成到现有的可扩展 MPI 记录和回放工具 ReMPI 中,仅引入了少量的 MPI 无关运行时开销,实现了这一目标。

英文摘要:

After all these years and all these other shared memory programming frameworks, OpenMP is still the most popular one. However, its greater levels of non-deterministic execution makes debugging and testing more challenging. The ability to record and deterministically replay the program execution is key to address this challenge. However, scalably replaying OpenMP programs is still an unresolved problem. In this paper, we propose two novel techniques that use Distributed Clock (DC) and Distributed Epoch (DE) recording schemes to eliminate excessive thread synchronization for OpenMP record and replay. Our evaluation on representative HPC applications with ReOMP, which we used to realize DC and DE recording, shows that our approach is 2-5x more efficient than traditional approaches that synchronize on every shared-memory access. Furthermore, we demonstrate that our approach can be easily combined with MPI-level replay tools to replay non-trivial MPI+OpenMP applications. We achieve this by integrating \toolname into ReMPI, an existing scalable MPI record-and-replay tool, with only a small MPI-scale-independent runtime overhead.

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

↑