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

利用模型中的访问模式声明实现异构系统中的存储器一致性

Leveraging access mode declarations in a model for memory consistency in heterogeneous systems

Ludovic Henrio, Christoph Kessler, Lu Li

摘要:

在向软件公开不相交内存空间的系统上,程序必须解决内存一致性问题并执行数据传输,以便始终访问有效数据。存在几种方法来确保所访问的存储器的一致性。在这里,我们感兴趣的声明性方法的验证,其中计算的每个组件都注释有一个访问模式,声明该组件读取或写入内存的哪一部分。编程框架使用组件注释来保证内存访问的有效性。这是VectorPU中使用的机制,VectorPU是一个用于编程CPU-GPU异构系统的C++库。本文证明了VectorPU中采用的软件缓存一致性机制的正确性。在VectorPU的范围之外,本文提供了一种简单有效的内存一致性机制的形式化,该机制基于每个组件对每个内存空间的影响的显式声明。我们提出的形式主义也考虑到数组的一个单一的有效性状态存储在整个数组;处理重叠数组的其他机制也进行了研究。

英文摘要:

On a system that exposes disjoint memory spaces to the software, a program has to address memory consistency issues and perform data transfers so that it always accesses valid data. Several approaches exist to ensure the consistency of the memory accessed. Here we are interested in the verification of a declarative approach where each component of a computation is annotated with an access mode declaring which part of the memory is read or written by the component. The programming framework uses the component annotations to guarantee the validity of the memory accesses. This is the mechanism used in VectorPU, a C++ library for programming CPU-GPU heterogeneous systems. This article proves the correctness of the software cache-coherence mechanism used in VectorPU. Beyond the scope of VectorPU, this article provides a simple and effective formalisation of memory consistency mechanisms based on the explicit declaration of the effect of each component on each memory space. The formalism we propose also takes into account arrays for which a single validity status is stored for the whole array; additional mechanisms for dealing with overlapping arrays are also studied.

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

↑