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

Intel和AMD微体系结构的自动指令流吞吐量预测

Automated Instruction Stream Throughput Prediction for Intel and AMD Microarchitectures

Jan Laukemann, Julian Hammer, Johannes Hofmann, Georg Hager, Gerhard Wellein

摘要:

准确预测指令流的调度和执行是预测乱序处理器架构上吞吐量受限循环内核的核内性能行为的必要前提。这种预测是分析性能模型(如Roofline和Execution-Cache-Memory(ECM)模型)不可或缺的组成部分,并允许深入了解硬件架构和循环代码之间与性能相关的交互。我们提出了开源架构代码分析器(OSACA),一个静态分析工具,用于预测的执行时间的顺序循环,包括x86指令的假设下,一个无限的一级缓存和完美的无序调度。我们展示了从可用文档和半自动基准测试构建机器模型的过程,并针对最新的Intel Skylake和AMD Zen微架构进行了测试。为了验证构建的模型,我们将它们应用于几个汇编内核,并将运行时预测与实际测量进行比较。最后,我们给出了一个展望,该方法可以推广到新的架构。

英文摘要:

An accurate prediction of scheduling and execution of instruction streams is a necessary prerequisite for predicting the in-core performance behavior of throughput-bound loop kernels on out-of-order processor architectures. Such predictions are an indispensable component of analytical performance models, such as the Roofline and the Execution-Cache-Memory (ECM) model, and allow a deep understanding of the performance-relevant interactions between hardware architecture and loop code. We present the Open Source Architecture Code Analyzer (OSACA), a static analysis tool for predicting the execution time of sequential loops comprising x86 instructions under the assumption of an infinite first-level cache and perfect out-of-order scheduling. We show the process of building a machine model from available documentation and semi-automatic benchmarking, and carry it out for the latest Intel Skylake and AMD Zen micro-architectures. To validate the constructed models, we apply them to several assembly kernels and compare runtime predictions with actual measurements. Finally we give an outlook on how the method may be generalized to new architectures.

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

↑