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

分块全局地址空间理论

A Theory of Partitioned Global Address Spaces

Georgel Calin, Egor Derevenetc, Rupak Majumdar, Roland Meyer

摘要:

分区全局地址空间(PGAS)是一种用于在集群上开发应用程序的并行编程模型。它提供在群集节点之间分区的全局地址空间,并通过API在C、C++和Fortran等程序设计语言中得到支持。在本文中,我们提供了一个正式的模型,单指令,多数据程序使用PGAS API的语义。我们的模型反映了流行的现实世界的API,如SHMEM,ARMCI,GASNet,GPI和GASPI的主要功能。PGAS的一个关键特性是支持单边通信:节点可以直接读写位于远程节点的内存,而无需与远程端运行的进程显式同步。单边通信通过将进程同步与数据传输解耦来提高性能,但要求程序员推理读写之间的适当同步。作为第二个贡献,我们提出并研究鲁棒性,正确的PGAS程序同步的标准。鲁棒性对应于在PGAS计算上定义的合适的happens-before关系的非循环性。该要求比经典的数据竞争自由更精细,并排除了大多数错误报告。我们的主要结果是一个算法检查的PGAS程序的鲁棒性。该算法利用了两种见解。使用组合参数,我们首先表明,如果一个PGAS程序是不强大的,那么有计算在一定的范式,违反发生前的无环性。直观的范式计算以有序的方式延迟远程访问。然后,我们设计了一个算法,检查循环范式计算。从本质上讲,该算法是一种新型自动机模型的空性检查,该模型以流式方式接受范式计算。总之,我们证明了鲁棒性问题是PSpace完全的。

英文摘要:

Partitioned global address space (PGAS) is a parallel programming model for the development of applications on clusters. It provides a global address space partitioned among the cluster nodes, and is supported in programming languages like C, C++, and Fortran by means of APIs. In this paper we provide a formal model for the semantics of single instruction, multiple data programs using PGAS APIs. Our model reflects the main features of popular real-world APIs such as SHMEM, ARMCI, GASNet, GPI, and GASPI. A key feature of PGAS is the support for one-sided communication: a node may directly read and write the memory located at a remote node, without explicit synchronization with the processes running on the remote side. One-sided communication increases performance by decoupling process synchronization from data transfer, but requires the programmer to reason about appropriate synchronizations between reads and writes. As a second contribution, we propose and investigate robustness, a criterion for correct synchronization of PGAS programs. Robustness corresponds to acyclicity of a suitable happens-before relation defined on PGAS computations. The requirement is finer than the classical data race freedom and rules out most false error reports. Our main result is an algorithm for checking robustness of PGAS programs. The algorithm makes use of two insights. Using combinatorial arguments we first show that, if a PGAS program is not robust, then there are computations in a certain normal form that violate happens-before acyclicity. Intuitively, normal-form computations delay remote accesses in an ordered way. We then devise an algorithm that checks for cyclic normal-form computations. Essentially, the algorithm is an emptiness check for a novel automaton model that accepts normal-form computations in streaming fashion. Altogether, we prove the robustness problem is PSpace-complete.

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

↑