AnICA:在微架构代码分析器中分析Increment
AnICA: Analyzing Inconsistencies in Microarchitectural Code Analyzers
摘要:
微架构代码分析器,即,估计机器码基本块吞吐量的工具是性能工程师工具带中的重要器具。最近的工具,如llvm-mca、uiCA和Ithemal,使用各种技术和不同的模型来预测吞吐量。当进行测试时,通常会看到这些最先进的工具给出非常不同的结果。这些不一致性要么是错误,要么是工具设计者做出的不同且很少记录的假设。在本文中,我们提出了AnICA,从差分测试和抽象解释的启发,系统地分析这些代码分析器之间的不一致性的工具。我们的评估表明,AnICA可以在几十个描述中总结出数千个不一致的地方,这些描述直接导致对工具不同行为的高层次洞察。在几个案例研究中,我们进一步展示了AnICA如何自动发现和表征llvm-mca中的已知和未知错误,以及AMD Zen微架构中的一个怪癖。
英文摘要:
Microarchitectural code analyzers, i.e., tools that estimate the throughput of machine code basic blocks, are important utensils in the tool belt of performance engineers. Recent tools like llvm-mca, uiCA, and Ithemal use a variety of techniques and different models for their throughput predictions. When put to the test, it is common to see these state-of-the-art tools give very different results. These inconsistencies are either errors, or they point to different and rarely documented assumptions made by the tool designers. In this paper, we present AnICA, a tool taking inspiration from differential testing and abstract interpretation to systematically analyze inconsistencies among these code analyzers. Our evaluation shows that AnICA can summarize thousands of inconsistencies in a few dozen descriptions that directly lead to high-level insights into the different behavior of the tools. In several case studies, we further demonstrate how AnICA automatically finds and characterizes known and unknown bugs in llvm-mca, as well as a quirk in AMD's Zen microarchitectures.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。