Text OnlyLogin to PAWS Baton Rouge, Louisiana |
CSC Homepage

Master's thesis Defense by Pamela Bhattarcharya


Presentation Title: "MODEL-DRIVEN SEARCH-BASED LOOP FUSION OPTIMIZATION FOR HANDWRITTEN CODE"

Committee:
  • Dr. Gerald Baumgartner
  • Dr. J. Ramanujam
  • Dr. Rahul Shah
Date: June 30th (Monday), 2008
Time: 10:00 AM
Location: Room 256, Coates Hall

Abstract:
The Tensor Contraction Engine (TCE) is a compiler that translates high-level, mathematical tensor contraction expressions into efficient, parallel Fortran code. A pair of optimizations in the TCE, the fusion and tiling optimizations, have proven successful for minimizing disk-to-memory traffic for dense tensor computations. While other optimizations are specific to tensor contraction expressions, these two model-driven search-based optimization algorithms could also be useful for optimizing handwritten dense array computations to minimize disk to memory traffic. In this thesis, we show how to apply the loop fusion algorithm to handwritten code in a procedural language.

While in the TCE the loop fusion algorithm operated on high-level expression trees, in a standard compiler it needs to operate on abstract syntax trees. For simplicity, we use the fusion algorithm only for memory minimization instead of for minimizing disk-to-memory traffic. Also, we limit ourselves to handwritten, dense array computations in which loop bounds expressions are constant, subscript expressions are simple loop variables, and there are no common subexpressions.

After type-checking, we canonicalize the abstract syntax tree to move side effects and loop-invariant code out of larger expressions. Using dataflow analysis, we then compute reaching definitions and add use-def chains to the abstract syntax tree. After undoing any partial loop fusion, a generalized loop fusion algorithm traverses the abstract syntax tree together with the use-def chains. Finally, the abstract syntax tree is rewritten to reflect the loop structure found by the loop fusion algorithm.

We outline how the constraints on loop bounds expressions and array index expressions could be removed in the future using an algebraic cost model and an analysis of the iteration space using a polyhedral model.

All are invited.


"" LSU Home ""
Department of Computer Science
Louisiana State University
298 Coates Hall
Baton Rouge, LA 70803
Phone: (225) 578-1495
Fax : (225) 578-1465

Misson & Vision | Faculty | Staff | Students | Computing Facilities
News | Contact Us | Laboratories | CCT
Admission | Graduate | Undergraduate | Courses | LSU | Home

Send Comments or Questions to webmaster@csc.lsu.edu
Copyright © 2007. All Rights Reserved. Official Webpage of Louisiana State University.