Hercules: A Compiler for Productive Programming of Heterogeneous Systems
Preprint
Abstract
Modern computing systems increasingly rely on composing heterogeneous devices to improve performance and efficiency. Programming these systems is often unproductive: algorithm implementations must be coupled to system-specific logic, including device-specific optimizations, partitioning, and inter-device communication and synchronization, which requires developing different programs for different system configurations. We propose the Juno language, which represents general purpose applications in an imperative form that can be transformed into parallel, optimized, system-specific code using an expressive and granular imperative scheduling language. We also introduce the Hercules compiler, which uses a novel intermediate representation to represent general and device-specific parallel code in a manner that is easy to analyze and manipulate using schedules. Our system achieves competitive performance with hand-optimized device-specific code (geomean speedups of $1.25\times$ and $1.48\times$ on the CPU and GPU) and significantly outperforms a prior general purpose heterogeneous programming system (geomean speedups of $9.31\times$ and $16.18\times$ on the CPU and GPU).
Keywords
All Related Versions
This publication has 18 references indexed in Scilit:
- HPVM2FPGA: Enabling True Hardware-Agnostic FPGA Programming2022
- HPVM: Hardware-Agnostic Programming for Heterogeneous Parallel SystemsIEEE Micro, 2022
- HalideACM SIGPLAN Notices, 2013
- A domain-specific approach to heterogeneous parallelismACM SIGPLAN Notices, 2011
- A characterization of the Rodinia benchmark suite with comparison to contemporary CMP workloads2010
- Rodinia: A benchmark suite for heterogeneous computing2009
- Graphviz and Dynagraph — Static and Dynamic Graph Drawing Tools2004
- OpenMP: an industry standard API for shared-memory programmingIEEE Computational Science and Engineering, 1998
- Global code motion/global value numberingACM SIGPLAN Notices, 1995
- A simple graph-based intermediate representationACM SIGPLAN Notices, 1995