arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2312.09326cs.PLcs.AR
收藏

WaveCert:基于动态分数权限的异步数据流程序翻译验证

WaveCert: Translation Validation for Asynchronous Dataflow Programs via Dynamic Fractional Permissions

Zhengyao Lin, Joshua Gancher, Bryan Parno

AI总结:

针对数据流编译器转换异步程序易出错的问题,提出基于动态分数权限的翻译验证技术WaveCert,在RipTide CGRA架构的编译器中发现8个漏洞并验证了基准套件程序的编译正确性。

摘要:

粗粒度可重构阵列(CGRAs)近年来因相较于传统冯·诺依曼架构具备可观的能效优势而受到关注。为使用C等通用语言对这些架构编程,数据流编译器必须将原始的顺序命令式程序转换为等效的数据流图,该图由并行运行的数据流算子组成。这种转换极具挑战性,因为数据流图的异步特性允许算子乱序执行,会产生原始命令式程序中不存在的行为。\n 我们通过开发一种面向数据流编译器的翻译验证技术来应对这一挑战,该技术可确保数据流程序在所有可能的输入和执行调度下,与原始命令式程序具有相同的行为。我们将该方法应用于一款面向RipTide CGRA架构的先进数据流编译器。我们的工具发现了8个编译器漏洞,这些漏洞会导致编译器输出错误的数据流图,其中包括一个通过测试难以发现的数据竞争问题。修复这些漏洞后,我们的工具验证了RipTide基准测试套件中所有程序的编译正确性。

英文摘要:

Coarse-grained reconfigurable arrays (CGRAs) have gained attention in recent years due to their promising power efficiency compared to traditional von Neumann architectures. To program these architectures using ordinary languages such as C, a dataflow compiler must transform the original sequential, imperative program into an equivalent dataflow graph, composed of dataflow operators running in parallel. This transformation is challenging since the asynchronous nature of dataflow graphs allows out-of-order execution of operators, leading to behaviors not present in the original imperative programs. We address this challenge by developing a translation validation technique for dataflow compilers to ensure that the dataflow program has the same behavior as the original imperative program on all possible inputs and schedules of execution. We apply this method to a state-of-the-art dataflow compiler targeting the RipTide CGRA architecture. Our tool uncovers 8 compiler bugs where the compiler outputs incorrect dataflow graphs, including a data race that is otherwise hard to discover via testing. After repairing these bugs, our tool verifies the correct compilation of all programs in the RipTide benchmark suite.

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

↑