WaSP:在图形工作负载中通过 Warp 调度模拟预取
WaSP: Warp Scheduling to Mimic Prefetching in Graphics Workloads
AI总结:
本文提出轻量级 warp 调度器 WaSP,通过提前启动优先级 warp 模拟预取,在保护局部性和 MSHR 资源的同时提升内存并行性,使图形工作负载性能提高 3.9%。
摘要:
当代 GPU 旨在有效处理长延迟操作;然而,核心占用率(一个核心中 warp 的数量)和流水线宽度等挑战会阻碍其延迟管理。这一点在基于图块的渲染(Tile-Based Rendering,TBR)GPU 中尤为明显,其核心占用率会在较长时间内保持较低水平。为应对这一挑战,我们提出 WaSP,这是一种面向图形应用中 GPU 的轻量级 warp 调度器。WaSP 通过在执行早期启动选定的一部分 warp(称为优先级 warp)来策略性地模拟预取,从而减少后续 warp 的内存延迟。该优化利用了 GPU 核心内部固有但未被充分利用的内存并行性。这种未充分利用源于基线调度器:它将失效访问均匀分布在整个执行过程中,以利用图形工作负载中固有的空间局部性。WaSP 对此加以改进,在为大多数 warp 保持局部性的同时降低平均内存延迟。在最大化内存并行性利用率的同时,WaSP 防止失效访问使缓存饱和,以避免填满 MSHR(Miss Status Holding Registers,失效状态保持寄存器)。该方法减少了会阻止进一步访问缓存的缓存停顿。总体而言,WaSP 带来了显著的 3.9% 性能加速。重要的是,WaSP 以可忽略的开销实现了这些提升,使其成为提升 GPU 管理延迟挑战效率的一种有前景的解决方案。
英文摘要:
Contemporary GPUs are designed to handle long-latency operations effectively; however, challenges such as core occupancy (number of warps in a core) and pipeline width can impede their latency management. This is particularly evident in Tile-Based Rendering (TBR) GPUs, where core occupancy remains low for extended durations. To address this challenge, we introduce WaSP, a lightweight warp scheduler tailored for GPUs in graphics applications. WaSP strategically mimics prefetching by initiating a select subset of warps, termed priority warps, early in execution to reduce memory latency for subsequent warps. This optimization taps into the inherent but underutilized memory parallelism within the GPU core. This underutilization is a consequence of a baseline scheduler that evenly spaces misses throughout execution to exploit the inherent spatial locality in graphics workloads. WaSP improves on this by reducing average memory latency while maintaining locality for the majority of warps. While maximizing memory parallelism utilization, WaSP prevents saturating the caches with misses to avoid filling up the MSHRs (Miss Status Holding Registers). This approach reduces cache stalls that halt further accesses to the cache. Overall, WaSP yields a significant 3.9% performance speedup. Importantly, WaSP accomplishes these enhancements with a negligible overhead, positioning it as a promising solution for enhancing the efficiency of GPUs in managing latency challenges.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。