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

现代NVIDIA GPU核心分析

Analyzing Modern NVIDIA GPU cores

Universitat Politècnica de Catalunya(加泰罗尼亚理工大学)

Rodrigo Huerta, Mojtaba Abaie Shoushtary, José-Lorenzo Cruz, Antonio González

AI总结:

本文通过逆向工程揭示现代NVIDIA GPU核心的微架构细节,构建更精准的仿真模型,相较现有最优仿真器执行周期MAPE降低18.24%,且适配多代架构,验证了软件依赖管理机制的优势。

摘要:

GPU是加速人工智能、科学模拟等高性能计算(HPC)工作负载最主流的平台。但学术界的大多数微体系结构研究仍依赖基于15年以上架构的GPU核心流水线设计。\n本文对现代NVIDIA GPU核心进行逆向工程,揭示了其设计的诸多关键方面,并阐释了GPU如何利用硬件-编译器技术(即编译器在执行过程中引导硬件)。具体而言,本文揭示了发射逻辑的工作机制,包括发射调度器的策略、寄存器文件及其关联缓存的结构,以及存储流水线的多项特性。此外,本文分析了基于流缓冲区的简单指令预取器如何与现代NVIDIA GPU良好适配且很可能已被采用。我们还进一步研究了寄存器文件缓存以及寄存器文件读端口数量对仿真精度和性能的影响。\n通过对所有这些新发现的微体系结构细节进行建模,我们在执行周期方面的平均绝对百分比误差(MAPE)比此前的最优仿真器低18.24%,相对于真实硬件(NVIDIA RTX A6000)的平均MAPE为13.98%。同时,我们证明该新模型也适用于其他NVIDIA架构,例如Turing。最后,我们表明现代NVIDIA GPU中包含的基于软件的依赖管理机制在性能和面积方面均优于基于记分板的硬件机制。

英文摘要:

GPUs are the most popular platform for accelerating HPC workloads, such as artificial intelligence and science simulations. However, most microarchitectural research in academia relies on GPU core pipeline designs based on architectures that are more than 15 years old. This paper reverse engineers modern NVIDIA GPU cores, unveiling many key aspects of its design and explaining how GPUs leverage hardware-compiler techniques where the compiler guides hardware during execution. In particular, it reveals how the issue logic works including the policy of the issue scheduler, the structure of the register file and its associated cache, and multiple features of the memory pipeline. Moreover, it analyses how a simple instruction prefetcher based on a stream buffer fits well with modern NVIDIA GPUs and is likely to be used. Furthermore, we investigate the impact of the register file cache and the number of register file read ports on both simulation accuracy and performance. By modeling all these new discovered microarchitectural details, we achieve 18.24% lower mean absolute percentage error (MAPE) in execution cycles than previous state-of-the-art simulators, resulting in an average of 13.98% MAPE with respect to real hardware (NVIDIA RTX A6000). Also, we demonstrate that this new model stands for other NVIDIA architectures, such as Turing. Finally, we show that the software-based dependence management mechanism included in modern NVIDIA GPUs outperforms a hardware mechanism based on scoreboards in terms of performance and area.

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

↑