Optimizing Indirect Memory References with milk

Vladimir Kiriansky, Yunming Zhang, Saman Amarasinghe
2016 Proceedings of the 2016 International Conference on Parallel Architectures and Compilation - PACT '16  
Modern applications such as graph and data analytics, when operating on real world data, have working sets much larger than cache capacity and are bottlenecked by DRAM. To make matters worse, DRAM bandwidth is increasing much slower than per CPU core count, while DRAM latency has been virtually stagnant. Parallel applications that are bound by memory bandwidth fail to scale, while applications bound by memory latency draw a small fraction of much-needed bandwidth. While expert programmers may
more » ... able to tune important applications by hand through heroic effort, traditional compiler cache optimizations have not been sufficiently aggressive to overcome the growing DRAM gap. In this paper, we introduce milk -a C/C++ language extension that allows programmers to annotate memorybound loops concisely. Using optimized intermediate data structures, random indirect memory references are transformed into batches of efficient sequential DRAM accesses. A simple semantic model enhances programmer productivity for efficient parallelization with OpenMP. We evaluate the Milk compiler on parallel implementations of traditional graph applications, demonstrating performance gains of up to 3×.
doi:10.1145/2967938.2967948 dblp:conf/IEEEpact/KirianskyZA16 fatcat:qcyof77l4nfmboitbocuxtamfe