The Ohio State University
Automatic Parallelization of Loops with Data Dependent Control Flow and Array Access Patterns
Abstract
dc:descriptionWith the era of increasing clock speeds coming to an end, parallelcomputing architectures have now become main-stream. Due to the widerange of architectures available today that can be used to exploitparallelism, ranging from multicore CPUs, to GPGPUs, to distributedmemory machines; adapting applications for efficient execution on allthese architectures poses a significant challenge.Scientific computing applications exhibit significant coarse-grainedparallelism. Domain experts have exploited this to target distributedmemory machines through the use of Message Passing Interface (MPI)libraries. Many such applications have been shown to scale to hundredsof thousands of processors. While powerful, programming in MPI istedious and error prone, with significant portion of the parallelizedapplication dedicated to managing communication and synchronizationbetween the processes. Developing compiler techniques that canautomatically generate parallel distributed memory versions of suchcodes is challenging due to the presence of data-dependent controlflow and data access patterns. In this thesis we develop compileralgorithms for automatic parallelization of a class of computationscommon to many scientific applications. Underthe inspector/executor paradigm, the generated code partitionsand executes the computation in load-balanced manner, while reducingthe communication costs. This approach is further enhanced bydeveloping a framework capable of expressing both affine andnon-affine parts of the code. This enables the use of polyhedralcompilation tools to analyze parts of the computation which can becompletely characterized statically. The effectiveness of thedeveloped approach is demonstrated on several benchmarks andreal-world applications.Image processing applications on the other hand exhibit significantfine-grained parallelism and are well suited for architectures withSingle-Instruction Multiple Data (SIMD) processing units like thevector processing units on CPUs or special graphics processing unitslike the NVIDIA Kepler GPU kepler. Such architectures can betargeted either through hardware specific intrinsics (like SSE/AVX totarget vector units), or through language support for writingdevice-specific code (like CUDA to target NVIDIA GPUs). State of theart compilers like ICC, Pluto, etc. canautomatically implement architecture specific optimizations forprograms written in low-level languages like C/C++. While effective,these approaches still require significant effort from the applicationdevelopers. Programs written this way are less portable and difficultto maintain. Domain Specific Languages offer a convenient abstraction,allowing programmers to specify the computation at a high-level, whilestill allowing the compiler to use the semantics of operations togenerate efficient code to target multiple architectures. In thisthesis, we develop Forma, a DSL that provides a convenient syntax tospecify many common image processing pipelines in a succinctmanner. The compiler backend can generate code to target bothmulticore CPUs with SIMD units and NVIDIA GPUs, while making use ofdevice specific features like texture units on GPUs. These ease ofprogramming in Forma is demonstrated by porting complex imageprocessing pipelines like Laplacian Pyramids and Exposure Fusion. The performance of the generated code is compared against a state of the art DSL for image processing, Halide.
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
- 2014
Author and committee
dc:creator, dc:contributor.*- Author dc:creator
-
- Ravishankar, Mahesh
- Advisor dc:contributor.advisor
-
- Sadayappan, P
Subjects
dc:subject × 2Rights
dc:rights- Statement dc:rights
-
- unrestricted
- This thesis or dissertation is protected by copyright: all rights reserved. It may not be copied or redistributed beyond the terms of applicable copyright laws.
- Language dc:language
- English
Identifiers
dc:identifier.*- Repository record dc:identifier
- http://rave.ohiolink.edu/etdc/view?acc_num=osu1400085733