arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2305.09438cs.DCcs.CLcs.LG
收藏

MPI-rical:基于Transformer的数据驱动MPI分布式并行辅助工具

MPI-rical: Data-Driven MPI Distributed Parallelism Assistance with Transformers

Ben-Gurion University(本-古里安大学);Israel Atomic Energy Commission(以色列原子能委员会);Intel Labs(英特尔实验室);Nuclear Research Center – Negev(内盖夫核研究中心);Technion – Israel Institute of Technology(以色列理工学院)

Nadav Schneider, Tal Kadosh, Niranjan Hasabnis, Timothy Mattson, Yuval Pinter, Gal Oren

AI总结:

针对手动编写MPI并行代码易出错的问题,本文提出数据驱动的编程辅助工具MPI-RICAL,利用监督语言模型实时建议MPI函数及位置,并构建了MPICodeCorpus语料库,在真实科学计算基准上达到0.87-0.91的F1分数。

摘要:

消息传递接口(MPI)在多节点间的分布式内存并行化中扮演着关键角色。然而,手动并行化MPI代码,特别是执行域分解,是一项具有挑战性且容易出错的任务。在本文中,我们通过开发MPI-RICAL来解决这一问题,这是一种新颖的数据驱动的编程辅助工具,可协助程序员编写基于域分解的分布式内存并行化代码。具体来说,我们训练了一个监督语言模型,以实时建议MPI函数及其在代码中的适当位置。我们还引入了MPICodeCorpus,这是第一个公开可用的基于MPI的并行程序语料库,通过挖掘GitHub上超过15,000个开源存储库创建。实验结果已在MPICodeCorpus上进行,更重要的是,在一个针对数值计算的基于MPI的并行程序编译基准上进行了测试,该基准代表了真实世界的科学应用。MPI-RICAL在这些程序上取得了0.87至0.91之间的F1分数,展示了其在适当代码位置建议正确MPI函数的准确性。本工作中使用的源代码以及其他相关资源可在以下网址获取:https://github.com/Scientific-Computing-Lab-NRCN/MPI-rical

英文摘要:

Message Passing Interface (MPI) plays a crucial role in distributed memory parallelization across multiple nodes. However, parallelizing MPI code manually, and specifically, performing domain decomposition, is a challenging, error-prone task. In this paper, we address this problem by developing MPI-RICAL, a novel data-driven, programming-assistance tool that assists programmers in writing domain decomposition based distributed memory parallelization code. Specifically, we train a supervised language model to suggest MPI functions and their proper locations in the code on the fly. We also introduce MPICodeCorpus, the first publicly available corpus of MPI-based parallel programs that is created by mining more than 15,000 open-source repositories on GitHub. Experimental results have been done on MPICodeCorpus and more importantly, on a compiled benchmark of MPI-based parallel programs for numerical computations that represent real-world scientific applications. MPI-RICAL achieves F1 scores between 0.87-0.91 on these programs, demonstrating its accuracy in suggesting correct MPI functions at appropriate code locations.. The source code used in this work, as well as other relevant sources, are available at: https://github.com/Scientific-Computing-Lab-NRCN/MPI-rical

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

↑