The Ohio State University
Automatic Code Generation for Stencil Computations on GPU Architectures
Abstract
dc:description<p>The development of parallel architectures is now nearly ubiquitous in not onlythe high-performance computing field, but also the commodity electronicsmarket. Even embedded processors found in cell phones and tablet computersare starting to incorporate parallel architectures. These architectures areexploiting both SIMD (Single-Instruction Multiple-Data) and SIMT (Simple-Instruction Multiple-Thread) parallelism to achieve higher levels ofperformance that was previously possible. Additionally, multiprocessors arebecoming increasingly heterogeneous by incorporating different architecturesinto the same die, such as NVIDIA's Tegra and AMD's Fusion APU. As thecomputer hardware industry moves to increasingly parallel and heterogeneousarchitectures, the computer software industry has been forced to make drasticchanges to the way software is designed and developed. This has led to anincreasing burden on software developers to not only write bug-free software,but also to scale software performance with the diverse architectures.</p><p>Multi-processors are increasingly exposing SIMD parallelism as a way toimprove the per-core performance of the hardware without requiring significantclock speed increases. Vector instruction sets are using larger vector widthsto increase the parallelism available. Intel's SSE instruction set on x86 uses128-bit vector and instructions that can operate on 4 single-precision or 2double-precision floating-point numbers at a time. Recently, the AVXinstruction set on x86 extends to 256-bit vectors and instructions that canoperate on 8 single-precision or 4 double-precision floating-point numbers ata time. Exploiting the SIMD parallelism available in modern hardware can be adifficult process for software developers. Vector instruction sets oftenimpose limitations such as alignment restrictions on vector loads/stores and alack of scatter/gather operations that make it a non-trivial process toconvert scalar code into higher-performance vector code. In the first part ofthis dissertation, we present a method for automatically finding sections ofscalar application code that would likely benefit from SIMD vectorization.</p><p>Many-core architectures such as those found in Graphics Processing Units(GPUs) have become good targets for high-performance applications such asthose found in scientific computing. Modern high-end GPUs have a theoreticalfloating-point throughput of over 2 TFlop/s, making them prime targets forscientific computing. Programming environments such as NVIDIA's CUDA,Khronos' OpenCL, and Microsoft's DirectCompute allow application developers towrite software that executes directly on GPU hardware, but their abstractionsare very close to the actual hardware and are complex for developers to use.To take advantage of GPU devices, application developers must first determinewhich parts of their applications would benefit from GPU acceleration, thenport those parts of their application to CUDA, OpenCL, or DirectCompute. Afterporting their code, significant optimization effort is then often required tomaximize performance of the code, separate from any previous effort spent onoptimization of the GPU versions. This makes GPU programming very complex forcomputational scientists and other software writers that do not have abackground in computer architecture and GPU programming models. In the secondpart of this dissertation, we present an automatic code generation frameworkfor stencil computations on GPU devices. Stencil computations are importantparts of many scientific applications, including PDE solvers, grid-basedsimulations, and image processing. Our code generation framework takes a high-level description of the stencil problem and generates high-performance codefor a variety of GPU architectures.</p><p>The performance of GPU programs is often highly dependent on the choice ofthread block and tile size. The optimal choice of block and tile size can bedifferent based on the characteristics of the GPU program. The code generationframework for stencil programs proposed in this work is parameterized on thechoice of block and tile size, and the choice of block and tile size can havea large impact on performance. In the third part of this dissertation, weexplore the effects of the choice of block and tile size on the performance ofstencil programs generated by our code generation framework and propose aperformance model that uses a description of the stencil program and thetarget GPU hardware to automatically select an optimal block and tile size.</p>
Degree
thesis:*- Name thesis:degree_name
- Doctor of Philosophy
- Level thesis:degree_level
- doctoral
- Discipline thesis:degree_discipline
- Computer Science and Engineering
- Grantor dc:publisher
- The Ohio State University
- Year dc:date
- 2012
Author and committee
dc:creator, dc:contributor.*- Author dc:creator
-
- Holewinski, Justin A.
- Contributors dc:contributor
-
- Sadayappan, Ponnuswamy
Subjects
dc:subject × 9Rights
dc:rights- Statement dc:rights
-
- unrestricted
- This thesis or dissertation is protected by copyright: some rights reserved. It is licensed for use under a Creative Commons license. Specific terms and permissions are available from this document's record in the OhioLINK ETD Center.
- Language dc:language
- English
Identifiers
dc:identifier.*- Repository record dc:identifier
- http://rave.ohiolink.edu/etdc/view?acc_num=osu1354545992