通过微基准测试和指令级分析揭秘Nvidia Ampere架构
Demystifying the Nvidia Ampere Architecture through Microbenchmarking and Instruction-level Analysis
摘要:
图形处理单元(GPU)现在被认为是加速通用工作负载(如AI、数据分析和HPC)的领先硬件。在过去的十年中,研究人员一直专注于揭开和评估各种GPU架构的微架构功能,而不是供应商所揭示的。这类工作对于更好地了解硬件并构建更高效的工作负载和应用程序是必要的。许多作品研究了最近的Nvidia架构,如Volta和Turing,将它们与其继任者Ampere进行比较。然而,一些微架构的功能,如时钟周期的不同指令,还没有广泛的研究安培架构。在本文中,我们研究了在Nvidia GPU的指令集架构(ISA)中发现的各种数据类型的每条指令的时钟周期。使用微基准测试,我们测量PTX ISA指令和SASS ISA指令对应的时钟周期。我们进一步计算访问每个存储器单元所需的时钟周期。我们还通过使用WMMA API并测量其每个指令的时钟周期和不同数据类型和输入形状的吞吐量,揭开了Ampere架构中新版本的张量核心单元的神秘面纱。在这项工作中发现的结果应该指导软件开发人员和硬件架构师。此外,每个指令的时钟周期被性能建模仿真器和工具广泛用于建模和预测硬件的性能。
英文摘要:
Graphics processing units (GPUs) are now considered the leading hardware to accelerate general-purpose workloads such as AI, data analytics, and HPC. Over the last decade, researchers have focused on demystifying and evaluating the microarchitecture features of various GPU architectures beyond what vendors reveal. This line of work is necessary to understand the hardware better and build more efficient workloads and applications. Many works have studied the recent Nvidia architectures, such as Volta and Turing, comparing them to their successor, Ampere. However, some microarchitecture features, such as the clock cycles for the different instructions, have not been extensively studied for the Ampere architecture. In this paper, we study the clock cycles per instructions with various data types found in the instruction-set architecture (ISA) of Nvidia GPUs. Using microbenchmarks, we measure the clock cycles for PTX ISA instructions and their SASS ISA instructions counterpart. we further calculate the clock cycle needed to access each memory unit. We also demystify the new version of the tensor core unit found in the Ampere architecture by using the WMMA API and measuring its clock cycles per instruction and throughput for the different data types and input shapes. The results found in this work should guide software developers and hardware architects. Furthermore, the clock cycles per instructions are widely used by performance modeling simulators and tools to model and predict the performance of the hardware.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。