Automatically Generating Efficient Simulation Codes on GPUs from Partial Differential Equations
Computer Science, Massey University Albany, North Shore 102-904, Auckland, New Zealand
Technical Report CSTN-087, Massey University, 2010
@article{hawick2010automatically,
title={Automatically Generating Efficient Simulation Codes on GPUs from Partial Differential Equations},
author={Hawick, KA and Playne, DP},
journal={Computer Science, Massey University, Tech. Rep. CSTN-087},
year={2010}
}
We show how compiler technology can generate fast and efficient yet human-readable data-parallel simulation code for solving certain partial differential equation (PDE) based problems. We present a code parser and generator based on an ANTLR grammar and tree walking approach that transforms a mathematical formulation of an equation such as the Cahn-Hilliard family into simulation software in C++ or in NVIDIA’s Compute Unified Device Architecture (CUDA) language for programming Graphical Processing Units (GPUS). We present software architectural ideas, generated specimen code and detailed performance data on modern GPUs. We discuss how code generation techniques can be used to speed up code development and computational run time for related complex system simulation problems.
February 14, 2011 by hgpu