skip to main content
Department of Computer Science University of Colorado Boulder
cu: home | engineering | mycuinfo | about | cu a-z | search cu | contact cu cs: about | calendar | directory | catalog | schedules | mobile | contact cs
home · events · thesis defenses · 1997-1998 · 
 

Thesis Defense - Vajracharya

 
11/24/1997
10:00am-12:00pm
ECOT 831

Runtime Loop Optimization for Locality and Parallelism
Suvas Vajracharya
Computer Science PhD Candidate

The complexity of contemporary high-performance computers with deep memory hierarchies and multiple processors make it essential for system optimizations to help programmers make effective utilization of all the resources. Without optimization, simple programs written in the more intuitive high level constructs of a programming language are not likely to fully realize the potential of high-performance computers. These optimizations are normally thought of as a task to be done at compile-time because the compiler can analyze the source code to un-ravel application-specific information that is not available at architecture design time. However, a problem with optimizations performed strictly at compile-time is that compile-time optimization do not have much information about runtime conditions such as the values of variables and work load imbalances in a multiprocessor. Without knowing the runtime conditions, compilers must make conservative assumptions to ensure the correctness of the program under all runtime conditions. This limits the kinds of optimizations that a compiler can make.

This thesis presents a runtime loop optimization that out-performs existing optimizations for locality and parallelism. We focus on loops because loops constitute a majority of the computational time in scientific and engineering applications. While loop restructuring for locality and loop scheduling for parallelism are conventionally thought of as two distinct optimizations, we present a single runtime method for both of these optimizations. Furthermore, the optimization is not limited to a single perfectly nested loop; the runtime optimization we are presenting here can be applied to more complex loops and loop structures. Given that the compiler is rich in applications-specific knowledge and the runtime system is rich in knowledge of the runtime environment, we have taken the view that the compiler should describe what the computation is, while the runtime system should listen and execute, adapting to dynamic changes during the execution of the program. This requires that the compiler communicate application-specific information to the runtime system and that the runtime system maintains the data-structures to hold this information during execution.

Static description and runtime representation of loops is the fundamental challenge this thesis addresses. We have designed a runtime system called DUDE (Def-Use Descriptor Environment) in which the compiler/programmer describes the static loop structure (loop bounds, loop body, nesting structure) and the dependencies between iterations in the iteration spaces. The runtime system uses this information to effect what we call a dependence-driven execution. In a dependence-driven execution, we begin with a pool of work consisting of unconstrained loop iterations. When different processors pick up chunks of iterations from the work queues and execute an operation on them, their completion can enable new iterations if these iteration satisfy dependencies specified by the compiler. Dependence-driven execution has the desirable property that local actions have global effects. This leads to a reduction in global communications (improves locality) and global synchronization (improves parallelism). The same idea also leads to better performance in multi-programmed environments. Furthermore, the Def-User Descriptor Environment is an elegant method to achieve both task/data parallelism.

Committee: Dirk Grunwald, Associate Professor (Chair)
Elizabeth Jessup, Assistant Professor
Gary Nutt, Professor
Robert (Bobby) Schnabel, Professor
Andrew Pleszkun, Department of Electrical and Computer Engineering

 
See also:
Department of Computer Science
College of Engineering and Applied Science
University of Colorado Boulder
Boulder, CO 80309-0430 USA
Questions/Comments?
Send email to

Engineering Center Office Tower
ECOT 717
+1-303-492-7514
FAX +1-303-492-2844
XHTML 1.0/CSS2 ©2012 Regents of the University of Colorado
Privacy · Legal · Trademarks
May 5, 2012 (13:40)
 
.