Automated GPU Kernel Transformations in Large-Scale Production Stencil Applications
Authors:
Open Access
- 15 June 2015
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 259-270
Abstract
This paper proposes an end-to-end framework for automatically transforming stencil-based CUDA programs to exploit inter-kernel data locality. The CUDA-to-CUDA transformation collectively replaces the user-written kernels by auto-generated kernels optimized for data reuse. The transformation is based on two basic operations, kernel fusion and fission, and relies on a series of automated steps: gathering metadata, generating graphs expressing dependencies and precedency constraints, searching for optimal kernel fissions/fusions, and generation of optimized code. The framework is modeled to provide the flexibility required for accommodating different applications, allowing the programmer to monitor and amend the intermediate results of different phases of the transformation. We demonstrate the practicality and effectiveness of automatic transformations in exploiting exposed data localities using a variety of real-world applications with large codebases that contain dozens of kernels and data arrays. Experimental results show that the proposed end-to-end automated approach, with minimum intervention from the user, improved performance of six applications with speedups ranging between 1.12x to 1.76x.Keywords
Funding Information
- JST CREST
This publication has 27 references indexed in Scilit:
- Using Compiler Directives to Port Large Scientific Applications to GPUs: An Example from Atmospheric ScienceParallel Processing Letters, 2014
- Inertial coupling for point particle fluctuating hydrodynamicsJournal of Computational Physics, 2013
- Polyhedral parallel code generation for CUDAACM Transactions on Architecture and Code Optimization, 2013
- A script-based autotuning compiler system to generate high-performance CUDA codeACM Transactions on Architecture and Code Optimization, 2013
- B-CALM: AN OPEN-SOURCE MULTI-GPU-BASED 3D-FDTD WITH MULTI-POLE DISPERSION FOR PLASMONICSProgress In Electromagnetics Research, 2013
- Progress towards accelerating HOMME on hybrid multi-core systemsThe International Journal of High Performance Computing Applications, 2012
- Automatic fusions of CUDA-GPU kernels for parallel mapACM SIGARCH Computer Architecture News, 2011
- RooflineCommunications of the ACM, 2009
- Parallel Programmability and the Chapel LanguageThe International Journal of High Performance Computing Applications, 2007
- A Source-To-Source Architecture for User-Defined Optimizations2003