Search NASA⌕ Search

DOE OSTI · 1440662

Cache Locality Optimization for Recursive Programs

Abstract

We present an approach to optimize the cache locality for recursive programs by dynamically splicing--recursively interleaving--the execution of distinct function invocations. By utilizing data effect annotations, we identify concurrency and data reuse opportunities across function invocations and interleave them to reduce reuse distance. We present algorithms that efficiently track effects in recursive programs, detect interference and dependencies, and interleave execution of function invocations using user-level (non-kernel) lightweight threads. To enable multi-core execution, a program is parallelized using a nested fork/join programming model. Our cache optimization strategy is designed to work in the context of a random work stealing scheduler. We present an implementation using the MIT Cilk framework that demonstrates significant improvements in sequential and parallel performance, competitive with a state-of-the-art compile-time optimizer for loop programs and a domain- specific optimizer for stencil programs.

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Lifflander, Jonathan, Krishnamoorthy, Sriram. 2017-06-14. Cache Locality Optimization for Recursive Programs. https://doi.org/10.1145/3140587.3062385

Cite the original work for its findings. Save a collection to share your selection of sources.