Ocelot: A Dynamic Compiler for Bulk-Synchronous Applications in Heterogeneous Systems

Ocelot: A Dynamic Compiler for Bulk-Synchronous Applications in Heterogeneous Systems

Gregory Diamos, Andrew Kerr, Sudhakar Yalamanchili, and Nathan Clark. “Ocelot: A Dynamic Compiler for Bulk-Synchronous Applications in Heterogeneous Systems.” The Nineteenth International Conference on Parallel Architectures and Compilation Techniques. September 2010.

Abstract

Ocelot is a dynamic compilation framework designed to map the explicitly data parallel execution model used by NVIDIA CUDA applications onto diverse multithreaded platforms. Ocelot includes a dynamic binary translator from Parallel Thread eXecution ISA (PTX) to many-core processors that leverages the Low Level Virtual Machine (LLVM) code generator to target x86 and other ISAs. The dynamic compiler is able to execute existing CUDA binaries without recompilation from source and supports switching between execution on an NVIDIA GPU and a many-core CPU at runtime. It has been validated against over 130 applications taken from the CUDA SDK, the UIUC Parboil benchmarks~\cite{ref:parboil}, the Virginia Rodinia benchmarks~\cite{ref:rodinia}, the GPU-VSIPL signal and image processing library~\cite{ref:gpu-vsipl}, the Thrust library~\cite{ref:thrust}, and several domain specific applications.

This paper presents a high level overview of the implementation of the Ocelot dynamic compiler highlighting design decisions and trade-offs, and showcasing their effect on application performance. Several novel code transformations are explored that are applicable only when compiling explicitly parallel applications and traditional dynamic compiler optimizations are revisited for this new class of applications. This study is expected to inform the design of compilation tools for explicitly parallel programming models (such as OpenCL) as well as future CPU and GPU architectures.

Download

Ocelot: A Dynamic Compiler for Bulk-Synchronous Applications in Heterogeneous Systems [PDF]

Citation

@inproceedings{Diamos:2010:ODO:1854273.1854318,
author = {Diamos, Gregory Frederick and Kerr, Andrew Robert and Yalamanchili, Sudhakar and Clark, Nathan},
title = {Ocelot: a dynamic optimization framework for bulk-synchronous applications in heterogeneous systems},
booktitle = {Proceedings of the 19th international conference on Parallel architectures and compilation techniques},
series = {PACT ’10},
year = {2010},
isbn = {978-1-4503-0178-7},
location = {Vienna, Austria},
pages = {353–364},
numpages = {12},
url = {http://doi.acm.org/10.1145/1854273.1854318},
doi = {10.1145/1854273.1854318},
acmid = {1854318},
publisher = {ACM},
address = {New York, NY, USA},
keywords = {cuda, ocelot, ptx},
}