MPI语言绑定阻碍了MPI
MPIs Language Bindings are Holding MPI Back
摘要:
在过去的二十年里,C++已经被采用为主要的HPC语言(在很大程度上取代了C,在某种程度上也取代了Fortran)。惯用C++显然是C++现在的使用方式。但是,MPI的语法和语义是用C和Fortran接口定义和扩展的,这些接口与C89和Fortran-77的功能和限制一致。不幸的是,语言独立的规范也清楚地反映了这些语言在1993年开始时在语法和语义上所能管理的东西的交集,而不是真正的语言中立。我们提出了一个现代C++语言接口,以取代C++程序员的C语言绑定,并提供一个向上兼容的体系结构,该体系结构利用了C++11-20在性能、生产率以及与其他流行的C++库和HPC接口的互操作性方面的所有优势。在MPI中对C++语言支持的第二次尝试的需求非常强烈,最初的接口是在MPI-2中添加的,然后被发现缺乏对C绑定的特定好处,因此随后在MPI-3中被删除。由于C++及其惯用用法在最初的C++语言绑定从标准中删除后已经发展,因此这项新的努力对于MPI应用程序来说既及时又重要。此外,许多C++应用程序员通过MPI创建自己的临时shim库,以提供特定项目特有的某种程度的抽象,这意味着许多此类抽象库的设计除了需求之外没有任何特定的共性。
英文摘要:
Over the past two decades, C++ has been adopted as a major HPC language (displacing C to a large extent, andFortran to some degree as well). Idiomatic C++ is clearly how C++ is being used nowadays. But, MPIs syntax and semantics defined and extended with C and Fortran interfaces that align with the capabilities and limitations of C89 and Fortran-77.Unfortunately, the language-independent specification also clearly reflects the intersection of what these languages could syntactically and semantically manage at the outset in 1993, rather than being truly language neutral.In this paper, we propose a modern C++ language interface to replace the C language binding for C++ programmers with an upward-compatible architecture that leverages all the benefits of C++11-20 for performance, productivity, and interoperability with other popular C++ libraries and interfaces for HPC. Demand is demonstrably strong for this second attempt at language support for C++ in MPI after the original interface, which was added in MPI-2, then was found to lack specific benefits over theC binding, and so was subsequently removed in MPI-3. Since C++ and its idiomatic usage have evolved since the original C++ language binding was removed from the standard, this new effort is both timely and important for MPI applications. Also, many C++ application programmers create their own, ad hoc shim libraries over MPI to provide some degree of abstraction unique to their particular project, which means many such abstraction libraries are being devised without any specific commonality other than the demand for such.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。