arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2310.17501cs.AR
收藏

一种面向GPGPU的轻量级编译器辅助寄存器文件缓存

A Lightweight, Compiler-Assisted Register File Cache for GPGPU

Mojtaba Abaie Shoushtary, Jose Maria Arnau, Jordi Tubella Murgadas, Antonio Gonzalez

AI总结:

本文提出Malekeh,通过复用GPU寄存器文件现有组件实现轻量级RF缓存,并利用编译器分析的重用距离动态调整发射策略,在仅增加0.78%存储开销的情况下将RF读取减少46.4%、动态能耗降低28.3%、性能提升6.1%。

摘要:

现代GPU需要庞大的寄存器文件(RF)来存储数千个活跃线程的上下文。它消耗大量能量,并包含多个大型存储体以提供足够的吞吐量。因此,RF缓存机制可以通过避免从消耗显著能量并可能引起端口冲突的大型存储体读取数据,从而显著改善GPU的性能和能耗。本文介绍了一种名为Malekeh的高能效RF缓存机制,该机制将GPU寄存器文件中的一个现有组件重新利用,使其在原有功能之外还作为缓存运行。通过这种方式,Malekeh最大限度地减少了向GPU添加RF缓存的开销。此外,Malekeh利用一种发射调度策略,该策略利用RF缓存中值的重用距离,并由一个动态算法控制。其目标是使发射策略适应运行时程序特征,以最大化GPU性能和RF缓存的命中率。重用距离由编译器通过性能分析近似得到,并在运行时由所提出的缓存方案使用。我们表明,Malekeh将对RF存储体的读取次数减少了46.4%,并将RF的动态能量降低了28.3%。此外,它将性能提高了6.1%,同时仅在256KB的基线RF上为每个核心增加了2KB的额外存储,这代表了0.78%的可忽略开销。

英文摘要:

Modern GPUs require an enormous register file (RF) to store the context of thousands of active threads. It consumes considerable energy and contains multiple large banks to provide enough throughput. Thus, a RF caching mechanism can significantly improve the performance and energy consumption of the GPUs by avoiding reads from the large banks that consume significant energy and may cause port conflicts. This paper introduces an energy-efficient RF caching mechanism called Malekeh that repurposes an existing component in GPUs' RF to operate as a cache in addition to its original functionality. In this way, Malekeh minimizes the overhead of adding a RF cache to GPUs. Besides, Malekeh leverages an issue scheduling policy that utilizes the reuse distance of the values in the RF cache and is controlled by a dynamic algorithm. The goal is to adapt the issue policy to the runtime program characteristics to maximize the GPU's performance and the hit ratio of the RF cache. The reuse distance is approximated by the compiler using profiling and is used at run time by the proposed caching scheme. We show that Malekeh reduces the number of reads to the RF banks by 46.4% and the dynamic energy of the RF by 28.3%. Besides, it improves performance by 6.1% while adding only 2KB of extra storage per core to the baseline RF of 256KB, which represents a negligible overhead of 0.78%.

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

↑