arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2306.16178cs.SE
收藏

FuzzyFlow:利用数据流查找并消除程序优化错误

FuzzyFlow: Leveraging Dataflow To Find and Squash Program Optimization Bugs

Philipp Schaad, Timo Schneider, Tal Ben-Nun, Alexandru Calotoiu, Alexandros Nikolaos Ziogas, Torsten Hoefler

AI总结:

本文提出FuzzyFlow框架,利用数据流程序表示捕获可复现系统状态和优化影响范围,实现快速语义等价性检查,并通过最小化测试输入算法,在真实应用中实现高达528倍的优化测试和调试加速。

摘要:

当前的硬件环境和应用规模正促使性能工程师编写定制优化。验证此类优化并生成最小失败用例,对于在输入和大小等程序条件变化时保持鲁棒性至关重要。然而,由于主要与数据流相关的系统状态副作用,从现有应用程序中隔离最小测试用例和生成新配置通常很困难。本文介绍了FuzzyFlow:一个用于测试程序优化的故障定位和测试用例提取框架。我们利用数据流程序表示来捕获完全可复现的系统状态和优化的影响范围,以实现快速的语义等价性检查。为了减少测试时间,我们设计了一种最小化测试输入的算法,以内存换取重新计算。我们在真实应用程序的示例用例中展示了FuzzyFlow,与传统方法相比,该方法提供了高达528倍的优化测试和调试速度。

英文摘要:

The current hardware landscape and application scale is driving performance engineers towards writing bespoke optimizations. Verifying such optimizations, and generating minimal failing cases, is important for robustness in the face of changing program conditions, such as inputs and sizes. However, isolation of minimal test-cases from existing applications and generating new configurations are often difficult due to side effects on the system state, mostly related to dataflow. This paper introduces FuzzyFlow: a fault localization and test case extraction framework designed to test program optimizations. We leverage dataflow program representations to capture a fully reproducible system state and area-of-effect for optimizations to enable fast checking for semantic equivalence. To reduce testing time, we design an algorithm for minimizing test inputs, trading off memory for recomputation. We demonstrate FuzzyFlow on example use cases in real-world applications where the approach provides up to 528 times faster optimization testing and debugging compared to traditional approaches.

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

↑