uiCA:对最新Intel微体系结构上基本块的精确吞吐量预测
uiCA: Accurate Throughput Prediction of Basic Blocks on Recent Intel Microarchitectures
摘要:
静态预测特定微架构(如IACA、Ithemal、llvm-mca、OSACA或CQA)上基本块的稳态吞吐量的性能模型可以指导优化编译器并帮助手动软件优化。然而,它们的效用在很大程度上取决于其预测的准确性。与实际硬件上的测量相比,现有模型的平均误差已被证明在9%和36%之间。但这有多好?为了回答这个问题,我们提出了一个非常简单的分析吞吐量模型,可以作为一个基线。令人惊讶的是,该模型已经与最先进的技术相竞争,这表明有很大的改进潜力。为了探索这种潜力,我们开发了一个基于模拟的吞吐量预测器。为此,我们提出了一个详细的参数管道模型,支持2011年至2021年期间发布的所有英特尔酷睿微架构。我们评估我们的预测器的改进版本的BHive基准套件,并表明其预测通常是在1%的测量结果,提高了约一个数量级的先前模型。实验评估还表明,在以前的工作中被认为是相当微不足道的几个微结构的细节,实际上是必不可少的准确预测。我们的吞吐量预测器可以在https://github.com/andreas-abel/uiCA上以开源的形式获得。
英文摘要:
Performance models that statically predict the steady-state throughput of basic blocks on particular microarchitectures, such as IACA, Ithemal, llvm-mca, OSACA, or CQA, can guide optimizing compilers and aid manual software optimization. However, their utility heavily depends on the accuracy of their predictions. The average error of existing models compared to measurements on the actual hardware has been shown to lie between 9% and 36%. But how good is this? To answer this question, we propose an extremely simple analytical throughput model that may serve as a baseline. Surprisingly, this model is already competitive with the state of the art, indicating that there is significant potential for improvement. To explore this potential, we develop a simulation-based throughput predictor. To this end, we propose a detailed parametric pipeline model that supports all Intel Core microarchitecture generations released between 2011 and 2021. We evaluate our predictor on an improved version of the BHive benchmark suite and show that its predictions are usually within 1% of measurement results, improving upon prior models by roughly an order of magnitude. The experimental evaluation also demonstrates that several microarchitectural details considered to be rather insignificant in previous work, are in fact essential for accurate prediction. Our throughput predictor is available as open source at https://github.com/andreas-abel/uiCA.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。