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

面向AMD Zen架构的基于稀疏性能计数器的可解释端口映射推断

Explainable Port Mapping Inference with Sparse Performance Counters for AMD's Zen Architectures

Fabian Ritter, Sebastian Hack

AI总结:

针对AMD缺乏硬件性能计数器导致难以推断指令端口映射的问题,修改uops.info算法,基于SMT求解器提出可解释推断模型,为CPU建模与软件开发提供见解。

摘要:

性能模型对于优化性能敏感型代码至关重要。在对乱序x86-64 CPU的功能单元使用情况进行建模时,数据的可用性因制造商而异:Intel处理器的指令到端口映射是可用的,而AMD设计的相关信息则缺失。造成这种差异的原因是,推断精确端口映射的标准技术需要硬件性能计数器,而AMD并未提供这些计数器。在这项工作中,我们修改了广泛使用的uops.info项目的端口映射推断算法,使其不再依赖Intel的性能计数器。这些修改基于一个正式的端口映射模型,并采用由SMT求解器驱动的反例引导算法。我们研究了AMD处理器在多大程度上符合该模型,以及在哪些地方意外的性能特征阻碍了准确的端口映射。我们的结果为CPU性能模型的创建者,以及希望在近期AMD CPU上实现峰值性能的软件开发人员提供了有价值的见解。

英文摘要:

Performance models are instrumental for optimizing performance-sensitive code. When modeling the use of functional units of out-of-order x86-64 CPUs, data availability varies by the manufacturer: Instruction-to-port mappings for Intel's processors are available, whereas information for AMD's designs are lacking. The reason for this disparity is that standard techniques to infer exact port mappings require hardware performance counters that AMD does not provide. In this work, we modify the port mapping inference algorithm of the widely used uops.info project to not rely on Intel's performance counters. The modifications are based on a formal port mapping model with a counter-example-guided algorithm powered by an SMT solver. We investigate in how far AMD's processors comply with this model and where unexpected performance characteristics prevent an accurate port mapping. Our results provide valuable insights for creators of CPU performance models as well as for software developers who want to achieve peak performance on recent AMD CPUs.

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

↑