presented by: sameer kulkarni dept of computer & information sciences university of delaware

22
CISC 879 - Machine Learning for Solving Systems Problems Presented by: Sameer Kulkarni Dept of Computer & Information Sciences University of Delaware Improving Both the Performance Benefits and Speed of Optimization Phase Sequence Searches- Kulkarni, Jantz and Whalley

Upload: lieu

Post on 29-Jan-2016

29 views

Category:

Documents


0 download

DESCRIPTION

Presented by: Sameer Kulkarni Dept of Computer & Information Sciences University of Delaware. Improving Both the Performance Benefits and Speed of Optimization Phase Sequence Searches- Kulkarni, Jantz and Whalley. Terms used. Phase Ordering Genetic Algorithms Performance measurements - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Presented by: Sameer Kulkarni Dept of Computer & Information Sciences University of Delaware

CISC 879 - Machine Learning for Solving Systems Problems

Presented by: Sameer KulkarniDept of Computer & Information Sciences

University of Delaware

Improving Both the Performance Benefits and Speed of Optimization

Phase Sequence Searches- Kulkarni, Jantz and Whalley

Page 2: Presented by: Sameer Kulkarni Dept of Computer & Information Sciences University of Delaware

CISC 879 - Machine Learning for Solving Systems Problems

Terms used

• Phase Ordering• Genetic Algorithms• Performance measurements• Benchmarks• Search granularity

Page 3: Presented by: Sameer Kulkarni Dept of Computer & Information Sciences University of Delaware

CISC 879 - Machine Learning for Solving Systems Problems

Introduction

• Function vs. program level Granularity• Embedded Systems

• Emulation• Cost benefits

• Hybrid Search

Page 4: Presented by: Sameer Kulkarni Dept of Computer & Information Sciences University of Delaware

CISC 879 - Machine Learning for Solving Systems Problems

Ideal Solution?

• Oracle Perfect sequence at the very start

• Wise Man Solution Given the present code predict the best optimization solution

Page 5: Presented by: Sameer Kulkarni Dept of Computer & Information Sciences University of Delaware

CISC 879 - Machine Learning for Solving Systems Problems

Wise Man

?• Understand

Compilers

• Optimizations

• Source Code

Page 6: Presented by: Sameer Kulkarni Dept of Computer & Information Sciences University of Delaware

CISC 879 - Machine Learning for Solving Systems Problems

Possible Solutions• Pruning the search space

• Genetic Algorithms

• Estimating running times

• Precompiled choices

Page 7: Presented by: Sameer Kulkarni Dept of Computer & Information Sciences University of Delaware

CISC 879 - Machine Learning for Solving Systems Problems

Genetic Algorithms

Fast Searches for Effective Optimization Phase Sequences, Kulkarni et al. PLDI ‘04

Page 8: Presented by: Sameer Kulkarni Dept of Computer & Information Sciences University of Delaware

CISC 879 - Machine Learning for Solving Systems Problems

Exhaustive vs Heuristic [2]

Page 9: Presented by: Sameer Kulkarni Dept of Computer & Information Sciences University of Delaware

CISC 879 - Machine Learning for Solving Systems Problems

Related Work

• Genetic Algorithms• Other Evolutionary Techniques

• HMMs (CGO 06)• Other Statistical methods

• Optimization Space Exploration

Page 10: Presented by: Sameer Kulkarni Dept of Computer & Information Sciences University of Delaware

CISC 879 - Machine Learning for Solving Systems Problems

Present work

• Granularity• Function Level• File Level• Program Level• Hybrid

Page 11: Presented by: Sameer Kulkarni Dept of Computer & Information Sciences University of Delaware

CISC 879 - Machine Learning for Solving Systems Problems

Experimental Setup

• VPO (Very Portable Optimizer)• Base Genetic Algorithm• Redundancy elimination

Page 12: Presented by: Sameer Kulkarni Dept of Computer & Information Sciences University of Delaware

CISC 879 - Machine Learning for Solving Systems Problems

VPO

• Single IR• Simplified phase ordering• Configurable/modifiable

Page 13: Presented by: Sameer Kulkarni Dept of Computer & Information Sciences University of Delaware

CISC 879 - Machine Learning for Solving Systems Problems

Redundancy Elimination

• Identical Sequence• Identical Active Sequence• Identical Function instance• Equivalent Function

Instance

Page 14: Presented by: Sameer Kulkarni Dept of Computer & Information Sciences University of Delaware

CISC 879 - Machine Learning for Solving Systems Problems

Improvement…?

120 days > 12.5 days

Page 15: Presented by: Sameer Kulkarni Dept of Computer & Information Sciences University of Delaware

CISC 879 - Machine Learning for Solving Systems Problems

Granularities Studied…

• Function Level

• File Level

• Program Level

• Hybrid

…all compared to batch compilation

Page 16: Presented by: Sameer Kulkarni Dept of Computer & Information Sciences University of Delaware

CISC 879 - Machine Learning for Solving Systems Problems

Graphs, graphs and more graphs…

Page 17: Presented by: Sameer Kulkarni Dept of Computer & Information Sciences University of Delaware

CISC 879 - Machine Learning for Solving Systems Problems

Search Requirements

http://www.ittc.ku.edu/~kulkarni/research/papers/lctes59f-preprint.pdf

Page 18: Presented by: Sameer Kulkarni Dept of Computer & Information Sciences University of Delaware

CISC 879 - Machine Learning for Solving Systems Problems

Are they any good?

http://www.ittc.ku.edu/~kulkarni/research/papers/lctes59f-preprint.pdf

Page 19: Presented by: Sameer Kulkarni Dept of Computer & Information Sciences University of Delaware

CISC 879 - Machine Learning for Solving Systems Problems

Performance ??

http://www.ittc.ku.edu/~kulkarni/research/papers/lctes59f-preprint.pdf

Page 20: Presented by: Sameer Kulkarni Dept of Computer & Information Sciences University of Delaware

CISC 879 - Machine Learning for Solving Systems Problems

Future Work• Other machine learning algorithms• Reduce granularity• Use a cluster to reduce search /

learning time

Page 21: Presented by: Sameer Kulkarni Dept of Computer & Information Sciences University of Delaware

CISC 879 - Machine Learning for Solving Systems Problems

Conclusion• Reduced search overhead

Page 22: Presented by: Sameer Kulkarni Dept of Computer & Information Sciences University of Delaware

CISC 879 - Machine Learning for Solving Systems Problems

Questions