通过软硬件协同实现大容量、延迟容忍和高并发GPU寄存器文件
Enabling High-Capacity, Latency-Tolerant, and Highly-Concurrent GPU Register Files via Software/Hardware Cooperation
摘要:
图形处理单元(GPU)采用大型寄存器文件来容纳所有活动线程并加速上下文切换。不幸的是,寄存器文件是未来GPU的可扩展性瓶颈,这是由于长访问延迟、高功耗和大硅面积供应。先前的工作提出了分层寄存器文件,以减少寄存器文件的功耗,通过缓存寄存器在一个较小的寄存器文件缓存。不幸的是,由于寄存器堆高速缓存中的低命中率,这种方法并没有改善寄存器访问延迟。在本文中,我们提出了延迟容忍寄存器文件(LTRF)架构,以实现低延迟的两级分层结构,同时保持低功耗。我们观察到,编译时间间隔分析使我们能够将GPU程序执行划分为间隔,并准确估计每个间隔内的线程束聚合寄存器工作集。LTRF的关键思想是在软件控制下,在每个时间间隔的开始,将估计的寄存器工作集从主寄存器堆预取到寄存器堆缓存,并将预取延迟与其他线程束的执行重叠。我们观察到,寄存器库冲突,而预取寄存器可以大大降低LTRF的有效性。因此,我们设计了一个编译时寄存器重新编号技术,以减少寄存器库冲突的可能性。我们的实验结果表明,LTRF能够实现高容量但长延迟的主GPU寄存器文件,为各种优化铺平了道路。作为一个优化示例,我们使用新兴的高密度高延迟内存技术实现了主寄存器文件,实现了8倍的容量,并将整体GPU性能提高了34%。
英文摘要:
Graphics Processing Units (GPUs) employ large register files to accommodate all active threads and accelerate context switching. Unfortunately, register files are a scalability bottleneck for future GPUs due to long access latency, high power consumption, and large silicon area provisioning. Prior work proposes hierarchical register file to reduce the register file power consumption by caching registers in a smaller register file cache. Unfortunately, this approach does not improve register access latency due to the low hit rate in the register file cache. In this paper, we propose the Latency-Tolerant Register File (LTRF) architecture to achieve low latency in a two-level hierarchical structure while keeping power consumption low. We observe that compile-time interval analysis enables us to divide GPU program execution into intervals with an accurate estimate of a warp's aggregate register working-set within each interval. The key idea of LTRF is to prefetch the estimated register working-set from the main register file to the register file cache under software control, at the beginning of each interval, and overlap the prefetch latency with the execution of other warps. We observe that register bank conflicts while prefetching the registers could greatly reduce the effectiveness of LTRF. Therefore, we devise a compile-time register renumbering technique to reduce the likelihood of register bank conflicts. Our experimental results show that LTRF enables high-capacity yet long-latency main GPU register files, paving the way for various optimizations. As an example optimization, we implement the main register file with emerging high-density high-latency memory technologies, enabling 8X larger capacity and improving overall GPU performance by 34%.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。