Portable parallel performance from sequential, productive, embedded domain-specific languages

  • Authors:
  • Shoaib Kamil;Derrick Coetzee;Scott Beamer;Henry Cook;Ekaterina Gonina;Jonathan Harper;Jeffrey Morlan;Armando Fox

  • Affiliations:
  • University of California, Berkeley, CA, USA;University of California, Berkeley, CA, USA;University of California, Berkeley, CA, USA;University of California, Berkeley, CA, USA;University of California, Berkeley, CA, USA;Mississippi State University, Mississippi, MS, USA;University of California, Berkeley, CA, USA;University of California, Berkeley, CA, USA

  • Venue:
  • Proceedings of the 17th ACM SIGPLAN symposium on Principles and Practice of Parallel Programming
  • Year:
  • 2012

Quantified Score

Hi-index 0.00

Visualization

Abstract

Domain-expert productivity programmers desire scalable application performance, but usually must rely on efficiency programmers who are experts in explicit parallel programming to achieve it. Since such programmers are rare, to maximize reuse of their work we propose encapsulating their strategies in mini-compilers for domain-specific embedded languages (DSELs) glued together by a common high-level host language familiar to productivity programmers. The nontrivial applications that use these DSELs perform up to 98% of peak attainable performance, and comparable to or better than existing hand-coded implementations. Our approach is unique in that each mini-compiler not only performs conventional compiler transformations and optimizations, but includes imperative procedural code that captures an efficiency expert's strategy for mapping a narrow domain onto a specific type of hardware. The result is source- and performance-portability for productivity programmers and parallel performance that rivals that of hand-coded efficiency-language implementations of the same applications. We describe a framework that supports our methodology and five implemented DSELs supporting common computation kernels. Our results demonstrate that for several interesting classes of problems, efficiency-level parallel performance can be achieved by packaging efficiency programmers' expertise in a reusable framework that is easy to use for both productivity programmers and efficiency programmers.