NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Holistic Management of the GPGPU Memory Hierarchy to Manage Warp-level Latency Tolerance

Rachata Ausavarungnirun, Saugata Ghose, Onur Kayiran, Gabriel H. Loh, Chita R. Das, Mahmut T. Kandemir, Onur MutluarXiv 2018

Introduction

Modern GPGPUs rely on Single Instruction, Multiple Data (SIMD) execution, where threads are grouped into "warps" that execute in lockstep. While this model provides massive parallelism, it is highly sensitive to memory divergence. A single thread missing the cache can stall the entire warp for hundreds of cycles, negating the benefits of hits by other threads. This paper introduces Memory Divergence Correction (MeDiC), a framework designed to mitigate these bottlenecks by holistically managing the memory hierarchy based on warp-level behavior.

The Challenge of Memory Divergence

Memory divergence occurs when threads within a warp exhibit heterogeneous cache behavior. In a "mostly-hit" warp, a few cache misses act as "stragglers," forcing the entire warp to wait for slow main memory access. Conversely, "mostly-miss" warps often thrash the cache, evicting useful data for other warps while gaining little benefit themselves.

L2 cache hit ratio distribution across different warps in representative GPGPU applications.

As shown in the figure above, different applications exhibit widely varying warp-level hit ratios. For instance, in BFS, a significant fraction of warps are either very low-hit (0-10%) or perfect-hit (100%), highlighting the opportunity for differentiated management.

The MeDiC Framework

MeDiC employs a four-pronged approach to correct memory divergence:

  1. Warp Type Identification: The system dynamically classifies warps into five categories—all-hit, mostly-hit, balanced, mostly-miss, and all-miss—based on periodic hit-ratio sampling.
  2. Warp-aware Cache Bypassing: To reduce congestion and prevent cache thrashing, MeDiC forces "mostly-miss" and "all-miss" warps to bypass the L2 cache. This alleviates queuing delays, which can otherwise reach hundreds of cycles.
  3. Warp-aware Cache Insertion: Data from "mostly-hit" warps is prioritized by being placed in the Most Recently Used (MRU) position, while data from "mostly-miss" warps is placed near the Least Recently Used (LRU) position to facilitate quick eviction.
  4. Warp-aware Memory Scheduling: The DRAM controller prioritizes the rare misses from "mostly-hit" warps. By resolving these stragglers quickly, the entire warp can resume execution sooner.

Key Insights: The "All-or-Nothing" Strategy

The fundamental philosophy of MeDiC is to polarize warp behavior. By providing more resources to "mostly-hit" warps, it converts them into "all-hit" warps. Simultaneously, by bypassing the cache for "mostly-miss" warps, it converts them into "all-miss" warps that do not penalize the rest of the system.

MeDiC's strategy to reduce stall cycles by converting mostly-hit/miss warps into all-hit/miss states.

This strategy effectively reduces the total stall cycles. As illustrated, prioritizing the few misses in a mostly-hit warp (transition from 'a' to 'c') saves significant cycles, while deprioritizing mostly-miss requests (transition from 'b' to 'd') ensures no extra penalty is incurred by the cache hierarchy.

Results and Impact

Evaluated using GPGPU-Sim 3.2.1 across 15 applications, MeDiC demonstrates significant improvements:

  • Performance: An average speedup of 21.8% over existing state-of-the-art cache management.
  • Energy Efficiency: A 20.1% improvement in energy efficiency due to reduced stall times and more effective cache utilization.
  • Congestion Relief: Significant reduction in tail latency for memory requests, particularly in irregular workloads like BFS.

Conclusion

MeDiC demonstrates that a holistic, warp-aware approach to the memory hierarchy can significantly improve GPGPU performance. By identifying stable memory behaviors and applying differentiated policies for bypassing, insertion, and scheduling, MeDiC effectively manages the latency tolerance of the SIMD execution model.

Summary updated

BibTeX
@misc{ausavarungnirun2018holistic,
  author = {Rachata Ausavarungnirun and Saugata Ghose and Onur Kayiran and Gabriel H. Loh and Chita R. Das and Mahmut T. Kandemir and Onur Mutlu},
  title = {{Holistic Management of the GPGPU Memory Hierarchy to Manage Warp-level Latency Tolerance}},
  year = {2018},
  eprint = {1804.11038},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1804.11038},
}
Figure