1 Rainer Leupers, University of Dortmund, Computer Science Dept. ISSS ´98 A Uniform Optimization Technique for Offset Assignment Problems Rainer Leupers,

Slides:



Advertisements
Similar presentations
Genetic Algorithms Chapter 3. A.E. Eiben and J.E. Smith, Introduction to Evolutionary Computing Genetic Algorithms GA Quick Overview Developed: USA in.
Advertisements

fakultät für informatik informatik 12 technische universität dortmund Optimizations - Compilation for Embedded Processors - Peter Marwedel TU Dortmund.
Population-based metaheuristics Nature-inspired Initialize a population A new population of solutions is generated Integrate the new population into the.
Genetic Algorithm.
Exact and heuristics algorithms
Genetic Algorithms Contents 1. Basic Concepts 2. Algorithm
1 Wendy Williams Metaheuristic Algorithms Genetic Algorithms: A Tutorial “Genetic Algorithms are good at taking large, potentially huge search spaces and.
Evaluation of Offset Assignment Heuristics Johnny Huynh, Jose Nelson Amaral, Paul Berube University of Alberta, Canada Sid-Ahmed-Ali Touati Universite.
A GENETIC ALGORITHM APPROACH TO SPACE LAYOUT PLANNING OPTIMIZATION Hoda Homayouni.
Non-Linear Problems General approach. Non-linear Optimization Many objective functions, tend to be non-linear. Design problems for which the objective.
COMP305. Part II. Genetic Algorithms. Genetic Algorithms.
A new crossover technique in Genetic Programming Janet Clegg Intelligent Systems Group Electronics Department.
Population New Population Selection Crossover and Mutation Insert When the new population is full repeat Generational Algorithm.
1 Rainer Leupers, University of Dortmund, Computer Science Dept. ISSS ´98 HDL-based Modeling of Embedded Processor Behavior for Ret. Compilation Rainer.
Artificial Intelligence Genetic Algorithms and Applications of Genetic Algorithms in Compilers Prasad A. Kulkarni.
Evolutionary Computation Application Peter Andras peter.andras/lectures.
Genetic Algorithms Nehaya Tayseer 1.Introduction What is a Genetic algorithm? A search technique used in computer science to find approximate solutions.
Chapter 6: Transform and Conquer Genetic Algorithms The Design and Analysis of Algorithms.
Genetic Algorithms: A Tutorial
Genetic Algorithm.
A Budget Constrained Scheduling of Workflow Applications on Utility Grids using Genetic Algorithms Jia Yu and Rajkumar Buyya Grid Computing and Distributed.
SOFT COMPUTING (Optimization Techniques using GA) Dr. N.Uma Maheswari Professor/CSE PSNA CET.
Intro. ANN & Fuzzy Systems Lecture 36 GENETIC ALGORITHM (1)
Zorica Stanimirović Faculty of Mathematics, University of Belgrade
Genetic Algorithms Genetic algorithms imitate a natural optimization process: natural selection in evolution. Developed by John Holland at the University.
Optimal resource assignment to maximize multistate network reliability for a computer network Yi-Kuei Lin, Cheng-Ta Yeh Advisor : Professor Frank Y. S.
More on Heuristics Genetic Algorithms (GA) Terminology Chromosome –candidate solution - {x 1, x 2,...., x n } Gene –variable - x j Allele –numerical.
Introduction to Evolutionary Algorithms Session 4 Jim Smith University of the West of England, UK May/June 2012.
Applying Genetic Algorithm to the Knapsack Problem Qi Su ECE 539 Spring 2001 Course Project.
1 “Genetic Algorithms are good at taking large, potentially huge search spaces and navigating them, looking for optimal combinations of things, solutions.
FINAL EXAM SCHEDULER (FES) Department of Computer Engineering Faculty of Engineering & Architecture Yeditepe University By Ersan ERSOY (Engineering Project)
Genetic Algorithms Siddhartha K. Shakya School of Computing. The Robert Gordon University Aberdeen, UK
Derivative Free Optimization G.Anuradha. Contents Genetic Algorithm Simulated Annealing Random search method Downhill simplex method.
DYNAMIC FACILITY LAYOUT : GENETIC ALGORITHM BASED MODEL
Genetic Algorithms Przemyslaw Pawluk CSE 6111 Advanced Algorithm Design and Analysis
 Genetic Algorithms  A class of evolutionary algorithms  Efficiently solves optimization tasks  Potential Applications in many fields  Challenges.
Genetic Algorithms What is a GA Terms and definitions Basic algorithm.
Genetic Algorithms. 2 Overview Introduction To Genetic Algorithms (GAs) GA Operators and Parameters Genetic Algorithms To Solve The Traveling Salesman.
Chapter 12 FUSION OF FUZZY SYSTEM AND GENETIC ALGORITHMS Chi-Yuan Yeh.
EE749 I ntroduction to Artificial I ntelligence Genetic Algorithms The Simple GA.
Genetic Algorithms. The Basic Genetic Algorithm 1.[Start] Generate random population of n chromosomes (suitable solutions for the problem) 2.[Fitness]
OPTIMIZING DSP SCHEDULING VIA ADDRESS ASSIGNMENT WITH ARRAY AND LOOP TRANSFORMATION Chun Xue, Zili Shao, Ying Chen, Edwin H.-M. Sha Department of Computer.
Solving Function Optimization Problems with Genetic Algorithms September 26, 2001 Cho, Dong-Yeon , Tel:
Genetic Algorithms based Parameter Identification of Yeast Fed-Batch Cultivation Angelova M., Tzonkov St., Pencheva T.
Contribution of second order evolution to evolutionary algorithms Virginie LEFORT July 11 th.
1 Contents 1. Basic Concepts 2. Algorithm 3. Practical considerations Genetic Algorithm (GA)
Genetic Algorithm Dr. Md. Al-amin Bhuiyan Professor, Dept. of CSE Jahangirnagar University.
Agenda  INTRODUCTION  GENETIC ALGORITHMS  GENETIC ALGORITHMS FOR EXPLORING QUERY SPACE  SYSTEM ARCHITECTURE  THE EFFECT OF DIFFERENT MUTATION RATES.
Artificial Intelligence By Mr. Ejaz CIIT Sahiwal Evolutionary Computation.
Genetic Algorithms. Solution Search in Problem Space.
Genetic Algorithm(GA)
Genetic Algorithm. Outline Motivation Genetic algorithms An illustrative example Hypothesis space search.
Hirophysics.com The Genetic Algorithm vs. Simulated Annealing Charles Barnes PHY 327.
Genetic (Evolutionary) Algorithms CEE 6410 David Rosenberg “Natural Selection or the Survival of the Fittest.” -- Charles Darwin.
1 Genetic Algorithms Contents 1. Basic Concepts 2. Algorithm 3. Practical considerations.
Using GA’s to Solve Problems
Genetic Algorithms.
Evolutionary Algorithms Jim Whitehead
Comparing Genetic Algorithm and Guided Local Search Methods
Genetic Algorithms CPSC 212 Spring 2004.
CS621: Artificial Intelligence
Genetic Algorithms: A Tutorial
Metaheuristic methods and their applications. Optimization Problems Strategies for Solving NP-hard Optimization Problems What is a Metaheuristic Method?
Genetic Algorithms Chapter 3.
EE368 Soft Computing Genetic Algorithms.
Genetic algorithms: case study
Traveling Salesman Problem by Genetic Algorithm
Population Based Metaheuristics
Genetic Algorithms: A Tutorial
Presentation transcript:

1 Rainer Leupers, University of Dortmund, Computer Science Dept. ISSS ´98 A Uniform Optimization Technique for Offset Assignment Problems Rainer Leupers, Fabian David University of Dortmund, Germany Dept. of Computer Science 12

2 Rainer Leupers, University of Dortmund, Computer Science Dept. ISSS ´98 Overview Offset assignment problem Related work Genetic algorithm approach Exploitation of modify registers Results & conclusions

3 Rainer Leupers, University of Dortmund, Computer Science Dept. ISSS ´98 Offset assignment problem Context: Code generation for DSPs Given: DSP address generation unit (AGU) with # address registers (ARs): k # modify registers (MRs): m auto-increment range (AIR): r Auto-increment capabilities: AR[i] += d, d <= r AR[i] += MR[j] Other address computations cause extra code ! Problem: Assign program variables to memory addresses and ARs, such that the use of auto-increment address computations is maximized !

4 Rainer Leupers, University of Dortmund, Computer Science Dept. ISSS ´98 Offset assignment: example variables: { a, b, c, d } access sequence: (b, d, a, c, d, a, c, b, a, d, a, c, d) AR = 1 AR += 2 AR -= 3 AR += 2 AR ++ AR -= 3 AR += 2 AR - - AR += 3 AR -= 3 AR += 2 AR ++ AR = 3 AR - - AR += 2 AR - - AR += 3 AR -= 2 AR ++ AR - - AR += 2 c a d b a b c d Layout 1Layout 2 cost: 9cost: 5 Simple Offset Assignment: k = 1 m = 0 r = 1

5 Rainer Leupers, University of Dortmund, Computer Science Dept. ISSS ´98 Related work #ARs#MRsAIR [Bartley92] [Liao95] k - 1 [Leupers96] k m 1 [Wess97] [Sudarsanam97] k - r this work k m r Offset assignment for different AGU models: Further work on address optimization for fixed layout

6 Rainer Leupers, University of Dortmund, Computer Science Dept. ISSS ´98 Genetic algorithm approach (1) Chromosomal representation: n variables, k address registers each individual is a permutation of { 1,..., n + k - 1} example: n = 6, k = offset mapping switch to next AR Fitness function: F(I) = # transitions (v,w) in access sequence, such that v, w assigned to different ARs, or |off(v) - off(w) | <= r AR[1]AR[2]

7 Rainer Leupers, University of Dortmund, Computer Science Dept. ISSS ´98 Genetic algorithm approach (2) Mutation: exchange two gene values x yy x Crossover: standard order crossover operation Optimization procedure: form initial population for N generations do: select parent individuals generate offspring mutate offspring emit best individual

8 Rainer Leupers, University of Dortmund, Computer Science Dept. ISSS ´98 Exploitation of modify registers (1) [Leupers96]: Modification of Belady‘s optimal page replacement algorithm can be used for optimal exploitation of m MRs for a fixed offset assignment (only postpass optimization) PRA(I) = # address computations that can be saved by exploiting MRs for a given offset assignment modified fitness function: F´(I) = F(I) + PRA(I) => exploitation of MRs included into GA !

9 Rainer Leupers, University of Dortmund, Computer Science Dept. ISSS ´98 Exploitation of modify registers (2) AR = 2 AR - - AR += 3 AR ++ AR -= 2 AR - - AR += 3 AR -= 3 AR += 2 AR - - AR += 0 AR -= 2 AR ++ AR - - AR += 0 AR += 3 AR = 2 AR - - MR = 3 AR += MR AR ++ AR -= 2 AR - - AR ++ AR - - AR += MR AR -= MR MR = 2 AR += MR AR - - AR += 0 AR -= MR AR ++ AR - - AR ++ AR += 0 AR += 3 AR = 4 AR ++ MR = 2 AR -= MR AR ++ AR += MR AR -= MR AR += MR MR = 3 AR -= MR AR += MR AR - - AR += 0 AR += MR AR - - AR ++ AR - - AR += 0 AR -= MR v4 v0 v2 v1 v3 v4 v0 v2 v1 v3 v2 v1 v0 v heuristic OA + PRA genetic algorithm

10 Rainer Leupers, University of Dortmund, Computer Science Dept. ISSS ´98 Results & conclusions Statistical evaluation: ! 32 % improvement over OA heuristic with postpass MR optimization ! 32 % improvement over Wess‘ simulated annealing technique ! Runtime: typically 10 CPU seconds (Pentium II) Main contributions: ! First uniform offset assignment technique, arbitrary k, m, r values ! Significant improvements in code quality over previous techniques, largely due to better exploitation of MRs