r/ComputerEngineering • u/EngrToday Performance Architect • Aug 17 '19
Computer Architecture Highlights: Week 5
Hi all! I'm an architecture PhD student, and I wanted to start posting a brief summary of an influential research paper (either old or new) every week! Here's one from 2014 on improving the performance of massively parallel processors with a memory hierarchy optimization!
Title: MRPB: Memory Request Prioritization for Massively Parallel Processors
Conference: HPCA 2014
Paper Link: Link
Problem: Writing functionally correct code for GPUs is difficult, and writing high performance code is even harder. While caches can be good for performance, they can be ineffective, or even harmful in GPUs. Furthermore, programming guides for GPUs even suggest that the whether or not the L1 cache is enabled, or the size used should be experimentally determined by the programmer.
Many of these difficulties come down to resources. While CPU threads typically have a capacity of 8-16 kilobytes per thread, the threads in accelerators like GPUs typically only have a few 8-16 bytes. Thousands of threads are also accessing memory at the same time, which means hardware resources like MSHRs can be filled quickly, leading to stalls.
Solution: This paper introduces a Memory Request Prioritization Buffer (MRPB) for improving the performance of GPU applications without programmer intervention. The MRPB introduces request re-ordering to re-arrange memory references so that related threads are sent to the cache together. This technique also uses cache bypassing to selectively allow requests to bypass the cache, and prevent thrashing and stalls.
The paper shows that MRPB either improves performance, or leaves it unchanged for a variety of benchmarks from the Rodinia and PolyBench benchmark suites. Furthermore, they show that this technique not only handles cross-warp contention, targeted by past work like Cache Conscious Wavefront Scheduling, but intra-warp contention as well!
Major Impact: This paper showed some great insights into GPU caches, and how some deliberate changes to make them more throughput (instead of latency) oriented can lead to improvements in both performance and programmability. Furthermore, this work inspired numerous later works for warp scheduling and cache management in GPUs.
That's all for this week! Check out their paper linked above for more details on the design space exploration for the MRPB, and the great characterization they did on cache misses in GPU applications! As always, the devil is in the details!
--Nick
Last Week's: Link -->
My YouTube channel with similar teaching content.
My GitHub where I post all my teaching code.