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

x86和ARM装配核的自动装配和关键路线分析

Automatic Throughput and Critical Path Analysis of x86 and ARM Assembly Kernels

Jan Laukemann, Julian Hammer, Georg Hager, Gerhard Wellein

摘要:

乱序架构上循环内核运行时的有用模型需要分析指令及其依赖关系的核内性能行为。当指令吞吐量预测为内核运行时设置下限时,关键路线定义上限。这种预测是分析的重要组成部分(即,白盒)性能模型,如Roofline和执行高速缓存存储器(ECM)模型。它们可以更好地理解硬件架构和循环代码之间与性能相关的交互。开源架构代码分析器(OSACA)是一个用于预测顺序循环执行时间的静态分析工具。它以前只支持x86(Intel和AMD)架构和简单、乐观的全吞吐量执行。我们对OSACA进行了大量扩展,使其支持ARM指令和关键路线预测,包括循环依赖的检测,从而使其成为一个通用的跨架构建模工具。我们展示了基于可用文档和半自动基准测试的机器模型的英特尔Cascade Lake、AMD Zen和Marvell ThunderX2微架构上的代码的运行时预测。将预测结果与实际测量结果进行了比较。

英文摘要:

Useful models of loop kernel runtimes on out-of-order architectures require an analysis of the in-core performance behavior of instructions and their dependencies. While an instruction throughput prediction sets a lower bound to the kernel runtime, the critical path defines an upper bound. Such predictions are an essential part of analytic (i.e., white-box) performance models like the Roofline and Execution-Cache-Memory (ECM) models. They enable a better understanding of the performance-relevant interactions between hardware architecture and loop code. The Open Source Architecture Code Analyzer (OSACA) is a static analysis tool for predicting the execution time of sequential loops. It previously supported only x86 (Intel and AMD) architectures and simple, optimistic full-throughput execution. We have heavily extended OSACA to support ARM instructions and critical path prediction including the detection of loop-carried dependencies, which turns it into a versatile cross-architecture modeling tool. We show runtime predictions for code on Intel Cascade Lake, AMD Zen, and Marvell ThunderX2 micro-architectures based on machine models from available documentation and semi-automatic benchmarking. The predictions are compared with actual measurements.

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

↑