SlideShare a Scribd company logo
1 of 29
Introduction Background Methodology Experimental results
Optimizing Code using Parallel Genetic Algorithm93/3/5
An overview
โ€ข Introduction
โ€ข Background
โ€ข Methodology
โ€ข Experimental results
โ€ข Conclusion
2/22
Introduction Background Methodology Experimental results
Optimizing Code using Parallel Genetic Algorithm93/3/5
Compiler optimization
โ€ข Compiler optimization is the technique of minimizing or maximizing some
features of an executable code by tuning the output of a compiler.
โ€ข Modern compilers support many different optimization phases and these phases
should analyze the code and should produce semantically equivalent
performance enhanced code.
โ€ข The three vital parameters defining enhancement of the performance are:
Executiontime
Sizeofcode
Introduction
4/22
Introduction Background Methodology Experimental results
Optimizing Code using Parallel Genetic Algorithm93/3/5
โ€ข The compiler optimization phase ordering not only possesses challenges to
compiler developer but also for multithreaded programmer to enhance the
performance of Multicore systems.
โ€ข Many compilers have numerous optimization techniques which are applied in
predetermined ordering.
โ€ข These ordering of optimization techniques may not always give an optimal code.
CODE
Search Space
Introduction
The phase ordering
4/22
Introduction Background Methodology Experimental results
Optimizing Code using Parallel Genetic Algorithm93/3/5
Optimization flags
โ€ข The variation in optimization phase ordering depends on the application that is
compiled, the architecture of the machine on which it runs and the compiler
implementation.
โ€ข Many compilers allow optimization flags to be set by the users.
โ€ข Turning on optimization flags makes the compiler attempt to improve the
performance and code size at the expense of compilation time.
Introduction
5/22
Introduction Background Methodology Experimental results
Optimizing Code using Parallel Genetic Algorithm93/3/5
GNU compiler collection
โ€ข The GNU Compiler Collection (GCC) includes front ends for C, C++, Objective C,
Fortran, Java, Ada, and Go, as well as libraries for these languages
โ€ข In order to control compilation-time and compiler memory usage, and
the trade-offs between speed and space for the resulting executable, GCC
provides a range of general optimization levels, numbered from 0โ€“3, as
well as individual options for specific types of optimization.
O3
O2
O1
Background
6/22
Introduction Background Methodology Experimental results
Optimizing Code using Parallel Genetic Algorithm93/3/5
Optimization levels
โ€ข The impact of the different optimization levels on the input code is as described
below:
-O0 or no-O
(default)
Optimization
Easy bug
elimination
Background
7/22
Introduction Background Methodology Experimental results
Optimizing Code using Parallel Genetic Algorithm93/3/5
Optimization levels
1. Less compile time.
2. smaller and faster
executable code.
A lot of simple
optimizations
eliminates
redundancy
-O1 or -O
Background
8/22
Introduction Background Methodology Experimental results
Optimizing Code using Parallel Genetic Algorithm93/3/5
Optimization levels
โ€ข Only optimizations that do not require any speed-space tradeoffs
are used, so the executable should not increase in size.
-O2
1. maximum
optimization without
increasing the
executable size
O1+ additional
optimizations
instruction
scheduling
1. More compile time.
2. More memory usage.the best choice
for deployment of a program
Background
8/22
Introduction Background Methodology Experimental results
Optimizing Code using Parallel Genetic Algorithm93/3/5
Optimization levels
-O3
1. faster executable
code
2. Maximum Loop
optimization
O1+ O2+
more expensive
optimizations
function
inlining
1. Bulky code
Background
8/22
Introduction Background Methodology Experimental results
Optimizing Code using Parallel Genetic Algorithm93/3/5
Optimization level
Background
9/22
Introduction Background Methodology Experimental results
Optimizing Code using Parallel Genetic Algorithm93/3/5
The challenge
sequential quick sort Parallel quick sort
Which optimization level??
overhead of inter-process communication
Background
10/22
Introduction Background Methodology Experimental results
Optimizing Code using Parallel Genetic Algorithm93/3/5
Genetic algorithm
Initial population
Selection
Crossover & mutation
Intermediate population
(mating pool)
Replacement
Next population
Background
11/22
Introduction Background Methodology Experimental results
Optimizing Code using Parallel Genetic Algorithm93/3/5
PGA for Compiler Optimization
โ€ข The work in this research uses GCC 4.8 compiler on Ubuntu 12.04 with OpenMP
3.0 library.
Methodology
12/22
Introduction Background Methodology Experimental results
Optimizing Code using Parallel Genetic Algorithm93/3/5
The master-slave model
โ€ข In the master-slave model the
master runs the evolutionary
algorithm, controls the slaves
and distributes the work.
โ€ข The Slaves take batches of
individuals from the master
and evaluate them. Finally
send the calculated fitness
value back to master.
Methodology
13/22
Introduction Background Methodology Experimental results
Optimizing Code using Parallel Genetic Algorithm93/3/5
Encoding
1101011101
Methodology
14/22
Introduction Background Methodology Experimental results
Optimizing Code using Parallel Genetic Algorithm93/3/5
Fitness function
โ€ข In the proposed system the PGA works with a population of six Chromosomes on
eight core machine and fitness function is computed at the Master core.
Fitness=|(exe_with_flagi-exe_without_flagi)|
iโˆˆ {1, 2, โ€ฆ . , 12}
Master Node
Generate
random
population
evaluates all
individuals
Slave nodes
algorithm
After 200 generations
Methodology
15/22
Introduction Background Methodology Experimental results
Optimizing Code using Parallel Genetic Algorithm93/3/5
Algorithm for Slave Nodes
Receives all the chromosomes from the master node with the fitness values.
The slave cores apply the roulette wheel, Stochastic Universal Sampling and Elitism
methods respectively for selection process in parallel
Create next generation applying two point crossover.
Applies mutations using method, two position interchange and produce two new
offspring/chromosomes.
Sends both the chromosomes back to the master-node. (The master collects chromosomes
from all slaves.)
Step 1
Step 2
Step 3
Step 4
Step 5
Methodology
16/22
Introduction Background Methodology Experimental results
Optimizing Code using Parallel Genetic Algorithm93/3/5
Selection
Methodology
17/22
Introduction Background Methodology Experimental results
Optimizing Code using Parallel Genetic Algorithm93/3/5
Crossover and mutation
Two point
crossover
Swap mutation
Methodology
18/22
Introduction Background Methodology Experimental results
Optimizing Code using Parallel Genetic Algorithm93/3/5
Benchmarks
โ€ข All the Bench mark programs are parallelized using OpenMP library to reap the
benefits of PGA.
Experimental results
19/22
Introduction Background Methodology Experimental results
Optimizing Code using Parallel Genetic Algorithm93/3/5
Performance analysis
โ€ข As one sees the Figures, the results after applying PGA (WGAO) presents a major
improvement with respect to the random optimization (WRO) and compiling
code without applying optimization (WOO).
Experimental results
20/22
Introduction Background Methodology Experimental results
Optimizing Code using Parallel Genetic Algorithm93/3/5
Performance analysis
Experimental results
21/22
Introduction Background Methodology Experimental results
Optimizing Code using Parallel Genetic Algorithm93/3/5
Performance analysis
Experimental results
21/22
Introduction Background Methodology Experimental results
Optimizing Code using Parallel Genetic Algorithm93/3/5
Performance analysis
Experimental results
21/22
Introduction Background Methodology Experimental results
Optimizing Code using Parallel Genetic Algorithm93/3/5
Performance analysis
Experimental results
21/22
Introduction Background Methodology Experimental results
Optimizing Code using Parallel Genetic Algorithm93/3/5
Conclusion
โ€ข In Compiler Optimization research, the phase ordering is an important
performance enhancement problem.
โ€ข This study indicates that by increasing the number of cores the performance of
the benchmark program increases along with the usage of PGA.
โ€ข The major concern in the experiment is the master core waiting time collect
values from slaves which is primarily due to the usage of Synchronized
communication between the Master-Slave cores in the system.
โ€ข Further it may be explicitly noted that apart from PRIMS algorithm for core-8
system all other Bench marks exhibit better average performance.
22/22
Introduction Background Methodology Experimental results
Optimizing Code using Parallel Genetic Algorithm93/3/5
Thanks for
your attention.
Introduction Background Methodology Experimental results
Optimizing Code using Parallel Genetic Algorithm93/3/5
References
[1] Satish Kumar T., Sakthivel S. and Sushil Kumar S., โ€œOptimizing Code by Selecting Compiler Flags
using Parallel Genetic Algorithm on Multicore CPUs,โ€ International Journal of Engineering and
Technology, Vol. 32, No. 5, 2014.
[2] Prathibha B., Sarojadevi H., Harsha P., โ€œCompiler Optimization: A Genetic Algorithm Approach,โ€
International Journal of Computer Applications, Vol. 112, No.10, 2015.

More Related Content

What's hot

extreme programming
extreme programmingextreme programming
extreme programming
himanshumunjal
ย 
Extreme programming
Extreme programmingExtreme programming
Extreme programming
aaina_katyal
ย 
Extreme programming
Extreme programmingExtreme programming
Extreme programming
Mr SMAK
ย 

What's hot (20)

Agile Practices - eXtreme Programming
Agile Practices - eXtreme ProgrammingAgile Practices - eXtreme Programming
Agile Practices - eXtreme Programming
ย 
Extreme Programming ppt
Extreme Programming pptExtreme Programming ppt
Extreme Programming ppt
ย 
eXtreme programming (XP) - An Overview
eXtreme programming (XP) - An OvervieweXtreme programming (XP) - An Overview
eXtreme programming (XP) - An Overview
ย 
Extreme Programming (XP) for Dummies
Extreme Programming (XP) for DummiesExtreme Programming (XP) for Dummies
Extreme Programming (XP) for Dummies
ย 
Introduction to Extreme Programming
Introduction to Extreme ProgrammingIntroduction to Extreme Programming
Introduction to Extreme Programming
ย 
XP Explained
XP ExplainedXP Explained
XP Explained
ย 
Xp(Xtreme Programming) presentation
Xp(Xtreme Programming) presentationXp(Xtreme Programming) presentation
Xp(Xtreme Programming) presentation
ย 
extreme programming
extreme programmingextreme programming
extreme programming
ย 
Extreme programming
Extreme programmingExtreme programming
Extreme programming
ย 
extreme Programming
extreme Programmingextreme Programming
extreme Programming
ย 
Audrys Kaลพukauskas - Introduction into Extreme Programming
Audrys Kaลพukauskas - Introduction into Extreme ProgrammingAudrys Kaลพukauskas - Introduction into Extreme Programming
Audrys Kaลพukauskas - Introduction into Extreme Programming
ย 
ABC of Agile (Scrum & Extreme Programming)
ABC of Agile (Scrum & Extreme Programming)ABC of Agile (Scrum & Extreme Programming)
ABC of Agile (Scrum & Extreme Programming)
ย 
Extreme Programming
Extreme ProgrammingExtreme Programming
Extreme Programming
ย 
Extreme programming - a quick and agile overview !
Extreme programming - a quick and agile overview !Extreme programming - a quick and agile overview !
Extreme programming - a quick and agile overview !
ย 
Extreme programming
Extreme programmingExtreme programming
Extreme programming
ย 
Going extreme-with-extreme-programming
Going extreme-with-extreme-programmingGoing extreme-with-extreme-programming
Going extreme-with-extreme-programming
ย 
Extreme Programming
Extreme ProgrammingExtreme Programming
Extreme Programming
ย 
Extreme programming
Extreme programmingExtreme programming
Extreme programming
ย 
Xtreme Programming
Xtreme ProgrammingXtreme Programming
Xtreme Programming
ย 
Introduction to Software Engineering
Introduction to Software EngineeringIntroduction to Software Engineering
Introduction to Software Engineering
ย 

Viewers also liked

Art exibition
Art exibitionArt exibition
Art exibition
maleemoha
ย 
Paginas libres
Paginas libresPaginas libres
Paginas libres
INGRID
ย 
Data Structures by Yaman Singhania
Data Structures by Yaman SinghaniaData Structures by Yaman Singhania
Data Structures by Yaman Singhania
Yaman Singhania
ย 
WhoIsFrancisFairley
WhoIsFrancisFairleyWhoIsFrancisFairley
WhoIsFrancisFairley
Francis Fairley
ย 
Clarke slideshare
Clarke slideshareClarke slideshare
Clarke slideshare
mleigh7
ย 
Kerajaankalingga
KerajaankalinggaKerajaankalingga
Kerajaankalingga
Pak Yayak
ย 

Viewers also liked (20)

Genetic Algorithm
Genetic AlgorithmGenetic Algorithm
Genetic Algorithm
ย 
Clustering using GA and Hill-climbing
Clustering using GA and Hill-climbingClustering using GA and Hill-climbing
Clustering using GA and Hill-climbing
ย 
An OpenCL Method of Parallel Sorting Algorithms for GPU Architecture
An OpenCL Method of Parallel Sorting Algorithms for GPU ArchitectureAn OpenCL Method of Parallel Sorting Algorithms for GPU Architecture
An OpenCL Method of Parallel Sorting Algorithms for GPU Architecture
ย 
24 Multithreaded Algorithms
24 Multithreaded Algorithms24 Multithreaded Algorithms
24 Multithreaded Algorithms
ย 
University Assignment Literacy Assessment
University Assignment Literacy AssessmentUniversity Assignment Literacy Assessment
University Assignment Literacy Assessment
ย 
Art exibition
Art exibitionArt exibition
Art exibition
ย 
Powerpoint Presentation
Powerpoint PresentationPowerpoint Presentation
Powerpoint Presentation
ย 
Paginas libres
Paginas libresPaginas libres
Paginas libres
ย 
Data Structures by Yaman Singhania
Data Structures by Yaman SinghaniaData Structures by Yaman Singhania
Data Structures by Yaman Singhania
ย 
Menupra1
Menupra1Menupra1
Menupra1
ย 
huruf prasekolah
huruf prasekolahhuruf prasekolah
huruf prasekolah
ย 
The Sleeping Beauty
The Sleeping BeautyThe Sleeping Beauty
The Sleeping Beauty
ย 
WhoIsFrancisFairley
WhoIsFrancisFairleyWhoIsFrancisFairley
WhoIsFrancisFairley
ย 
POWER POINT PRESENTATION
POWER POINT PRESENTATIONPOWER POINT PRESENTATION
POWER POINT PRESENTATION
ย 
POWR POINT PRESENTATION
POWR POINT PRESENTATIONPOWR POINT PRESENTATION
POWR POINT PRESENTATION
ย 
Clarke slideshare
Clarke slideshareClarke slideshare
Clarke slideshare
ย 
EFFECTS OF SOCIAL MEDIA ON YOUTH
EFFECTS OF SOCIAL MEDIA ON YOUTHEFFECTS OF SOCIAL MEDIA ON YOUTH
EFFECTS OF SOCIAL MEDIA ON YOUTH
ย 
Getting Started with MongoDB
Getting Started with MongoDBGetting Started with MongoDB
Getting Started with MongoDB
ย 
Kerajaankalingga
KerajaankalinggaKerajaankalingga
Kerajaankalingga
ย 
Power point Presentation
Power point PresentationPower point Presentation
Power point Presentation
ย 

Similar to optimizing code in compilers using parallel genetic algorithm

Compiler Optimization-Space Exploration
Compiler Optimization-Space ExplorationCompiler Optimization-Space Exploration
Compiler Optimization-Space Exploration
tmusabbir
ย 
UVM_Full_Print_n.pptx
UVM_Full_Print_n.pptxUVM_Full_Print_n.pptx
UVM_Full_Print_n.pptx
nikitha992646
ย 
Performance of Go on Multicore Systems
Performance of Go on Multicore SystemsPerformance of Go on Multicore Systems
Performance of Go on Multicore Systems
No J
ย 

Similar to optimizing code in compilers using parallel genetic algorithm (20)

Code Optimization
Code OptimizationCode Optimization
Code Optimization
ย 
Gate-Level Simulation Methodology Improving Gate-Level Simulation Performance
Gate-Level Simulation Methodology Improving Gate-Level Simulation PerformanceGate-Level Simulation Methodology Improving Gate-Level Simulation Performance
Gate-Level Simulation Methodology Improving Gate-Level Simulation Performance
ย 
Compiler Optimization-Space Exploration
Compiler Optimization-Space ExplorationCompiler Optimization-Space Exploration
Compiler Optimization-Space Exploration
ย 
Microcontroller Based Testing of Digital IP-Core
Microcontroller Based Testing of Digital IP-CoreMicrocontroller Based Testing of Digital IP-Core
Microcontroller Based Testing of Digital IP-Core
ย 
Performance_Programming
Performance_ProgrammingPerformance_Programming
Performance_Programming
ย 
Post compiler software optimization for reducing energy
Post compiler software optimization for reducing energyPost compiler software optimization for reducing energy
Post compiler software optimization for reducing energy
ย 
UVM_Full_Print_n.pptx
UVM_Full_Print_n.pptxUVM_Full_Print_n.pptx
UVM_Full_Print_n.pptx
ย 
Generating test cases using UML Communication Diagram
Generating test cases using UML Communication Diagram Generating test cases using UML Communication Diagram
Generating test cases using UML Communication Diagram
ย 
JavaMicroBenchmarkpptm
JavaMicroBenchmarkpptmJavaMicroBenchmarkpptm
JavaMicroBenchmarkpptm
ย 
RPG Program for Unit Testing RPG
RPG Program for Unit Testing RPG RPG Program for Unit Testing RPG
RPG Program for Unit Testing RPG
ย 
Testing of Object-Oriented Software
Testing of Object-Oriented SoftwareTesting of Object-Oriented Software
Testing of Object-Oriented Software
ย 
Performance of Go on Multicore Systems
Performance of Go on Multicore SystemsPerformance of Go on Multicore Systems
Performance of Go on Multicore Systems
ย 
A Framework for Scene Recognition Using Convolutional Neural Network as Featu...
A Framework for Scene Recognition Using Convolutional Neural Network as Featu...A Framework for Scene Recognition Using Convolutional Neural Network as Featu...
A Framework for Scene Recognition Using Convolutional Neural Network as Featu...
ย 
Peephole optimization techniques
Peephole optimization techniquesPeephole optimization techniques
Peephole optimization techniques
ย 
Optimica Compiler Toolkit - Overview
Optimica Compiler Toolkit - OverviewOptimica Compiler Toolkit - Overview
Optimica Compiler Toolkit - Overview
ย 
Parallelization of Coupled Cluster Code with OpenMP
Parallelization of Coupled Cluster Code with OpenMPParallelization of Coupled Cluster Code with OpenMP
Parallelization of Coupled Cluster Code with OpenMP
ย 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
ย 
AMGLAB A COMMUNITY PROBLEM SOLVING ENVIRONMENT FOR ALGEBRAIC MULTIGRID METHODS
AMGLAB  A COMMUNITY PROBLEM SOLVING ENVIRONMENT FOR ALGEBRAIC MULTIGRID METHODSAMGLAB  A COMMUNITY PROBLEM SOLVING ENVIRONMENT FOR ALGEBRAIC MULTIGRID METHODS
AMGLAB A COMMUNITY PROBLEM SOLVING ENVIRONMENT FOR ALGEBRAIC MULTIGRID METHODS
ย 
Software Testing Project: Testing csmap program
Software Testing Project: Testing csmap programSoftware Testing Project: Testing csmap program
Software Testing Project: Testing csmap program
ย 
Software coding & testing, software engineering
Software coding & testing, software engineeringSoftware coding & testing, software engineering
Software coding & testing, software engineering
ย 

Recently uploaded

notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.ppt
MsecMca
ย 
Call Now โ‰ฝ 9953056974 โ‰ผ๐Ÿ” Call Girls In New Ashok Nagar โ‰ผ๐Ÿ” Delhi door step de...
Call Now โ‰ฝ 9953056974 โ‰ผ๐Ÿ” Call Girls In New Ashok Nagar  โ‰ผ๐Ÿ” Delhi door step de...Call Now โ‰ฝ 9953056974 โ‰ผ๐Ÿ” Call Girls In New Ashok Nagar  โ‰ผ๐Ÿ” Delhi door step de...
Call Now โ‰ฝ 9953056974 โ‰ผ๐Ÿ” Call Girls In New Ashok Nagar โ‰ผ๐Ÿ” Delhi door step de...
9953056974 Low Rate Call Girls In Saket, Delhi NCR
ย 
Call Girls In Bangalore โ˜Ž 7737669865 ๐Ÿฅต Book Your One night Stand
Call Girls In Bangalore โ˜Ž 7737669865 ๐Ÿฅต Book Your One night StandCall Girls In Bangalore โ˜Ž 7737669865 ๐Ÿฅต Book Your One night Stand
Call Girls In Bangalore โ˜Ž 7737669865 ๐Ÿฅต Book Your One night Stand
amitlee9823
ย 
Call Girls in Ramesh Nagar Delhi ๐Ÿ’ฏ Call Us ๐Ÿ”9953056974 ๐Ÿ” Escort Service
Call Girls in Ramesh Nagar Delhi ๐Ÿ’ฏ Call Us ๐Ÿ”9953056974 ๐Ÿ” Escort ServiceCall Girls in Ramesh Nagar Delhi ๐Ÿ’ฏ Call Us ๐Ÿ”9953056974 ๐Ÿ” Escort Service
Call Girls in Ramesh Nagar Delhi ๐Ÿ’ฏ Call Us ๐Ÿ”9953056974 ๐Ÿ” Escort Service
9953056974 Low Rate Call Girls In Saket, Delhi NCR
ย 
Call Girls in Netaji Nagar, Delhi ๐Ÿ’ฏ Call Us ๐Ÿ”9953056974 ๐Ÿ” Escort Service
Call Girls in Netaji Nagar, Delhi ๐Ÿ’ฏ Call Us ๐Ÿ”9953056974 ๐Ÿ” Escort ServiceCall Girls in Netaji Nagar, Delhi ๐Ÿ’ฏ Call Us ๐Ÿ”9953056974 ๐Ÿ” Escort Service
Call Girls in Netaji Nagar, Delhi ๐Ÿ’ฏ Call Us ๐Ÿ”9953056974 ๐Ÿ” Escort Service
9953056974 Low Rate Call Girls In Saket, Delhi NCR
ย 
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
SUHANI PANDEY
ย 

Recently uploaded (20)

Design For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startDesign For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the start
ย 
notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.ppt
ย 
Call Now โ‰ฝ 9953056974 โ‰ผ๐Ÿ” Call Girls In New Ashok Nagar โ‰ผ๐Ÿ” Delhi door step de...
Call Now โ‰ฝ 9953056974 โ‰ผ๐Ÿ” Call Girls In New Ashok Nagar  โ‰ผ๐Ÿ” Delhi door step de...Call Now โ‰ฝ 9953056974 โ‰ผ๐Ÿ” Call Girls In New Ashok Nagar  โ‰ผ๐Ÿ” Delhi door step de...
Call Now โ‰ฝ 9953056974 โ‰ผ๐Ÿ” Call Girls In New Ashok Nagar โ‰ผ๐Ÿ” Delhi door step de...
ย 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPT
ย 
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
ย 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
ย 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
ย 
Unit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdfUnit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdf
ย 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
ย 
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
ย 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
ย 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
ย 
Call Girls In Bangalore โ˜Ž 7737669865 ๐Ÿฅต Book Your One night Stand
Call Girls In Bangalore โ˜Ž 7737669865 ๐Ÿฅต Book Your One night StandCall Girls In Bangalore โ˜Ž 7737669865 ๐Ÿฅต Book Your One night Stand
Call Girls In Bangalore โ˜Ž 7737669865 ๐Ÿฅต Book Your One night Stand
ย 
Call Girls in Ramesh Nagar Delhi ๐Ÿ’ฏ Call Us ๐Ÿ”9953056974 ๐Ÿ” Escort Service
Call Girls in Ramesh Nagar Delhi ๐Ÿ’ฏ Call Us ๐Ÿ”9953056974 ๐Ÿ” Escort ServiceCall Girls in Ramesh Nagar Delhi ๐Ÿ’ฏ Call Us ๐Ÿ”9953056974 ๐Ÿ” Escort Service
Call Girls in Ramesh Nagar Delhi ๐Ÿ’ฏ Call Us ๐Ÿ”9953056974 ๐Ÿ” Escort Service
ย 
Call Girls in Netaji Nagar, Delhi ๐Ÿ’ฏ Call Us ๐Ÿ”9953056974 ๐Ÿ” Escort Service
Call Girls in Netaji Nagar, Delhi ๐Ÿ’ฏ Call Us ๐Ÿ”9953056974 ๐Ÿ” Escort ServiceCall Girls in Netaji Nagar, Delhi ๐Ÿ’ฏ Call Us ๐Ÿ”9953056974 ๐Ÿ” Escort Service
Call Girls in Netaji Nagar, Delhi ๐Ÿ’ฏ Call Us ๐Ÿ”9953056974 ๐Ÿ” Escort Service
ย 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
ย 
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
ย 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
ย 
Work-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxWork-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptx
ย 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ย 

optimizing code in compilers using parallel genetic algorithm

  • 1.
  • 2. Introduction Background Methodology Experimental results Optimizing Code using Parallel Genetic Algorithm93/3/5 An overview โ€ข Introduction โ€ข Background โ€ข Methodology โ€ข Experimental results โ€ข Conclusion 2/22
  • 3. Introduction Background Methodology Experimental results Optimizing Code using Parallel Genetic Algorithm93/3/5 Compiler optimization โ€ข Compiler optimization is the technique of minimizing or maximizing some features of an executable code by tuning the output of a compiler. โ€ข Modern compilers support many different optimization phases and these phases should analyze the code and should produce semantically equivalent performance enhanced code. โ€ข The three vital parameters defining enhancement of the performance are: Executiontime Sizeofcode Introduction 4/22
  • 4. Introduction Background Methodology Experimental results Optimizing Code using Parallel Genetic Algorithm93/3/5 โ€ข The compiler optimization phase ordering not only possesses challenges to compiler developer but also for multithreaded programmer to enhance the performance of Multicore systems. โ€ข Many compilers have numerous optimization techniques which are applied in predetermined ordering. โ€ข These ordering of optimization techniques may not always give an optimal code. CODE Search Space Introduction The phase ordering 4/22
  • 5. Introduction Background Methodology Experimental results Optimizing Code using Parallel Genetic Algorithm93/3/5 Optimization flags โ€ข The variation in optimization phase ordering depends on the application that is compiled, the architecture of the machine on which it runs and the compiler implementation. โ€ข Many compilers allow optimization flags to be set by the users. โ€ข Turning on optimization flags makes the compiler attempt to improve the performance and code size at the expense of compilation time. Introduction 5/22
  • 6. Introduction Background Methodology Experimental results Optimizing Code using Parallel Genetic Algorithm93/3/5 GNU compiler collection โ€ข The GNU Compiler Collection (GCC) includes front ends for C, C++, Objective C, Fortran, Java, Ada, and Go, as well as libraries for these languages โ€ข In order to control compilation-time and compiler memory usage, and the trade-offs between speed and space for the resulting executable, GCC provides a range of general optimization levels, numbered from 0โ€“3, as well as individual options for specific types of optimization. O3 O2 O1 Background 6/22
  • 7. Introduction Background Methodology Experimental results Optimizing Code using Parallel Genetic Algorithm93/3/5 Optimization levels โ€ข The impact of the different optimization levels on the input code is as described below: -O0 or no-O (default) Optimization Easy bug elimination Background 7/22
  • 8. Introduction Background Methodology Experimental results Optimizing Code using Parallel Genetic Algorithm93/3/5 Optimization levels 1. Less compile time. 2. smaller and faster executable code. A lot of simple optimizations eliminates redundancy -O1 or -O Background 8/22
  • 9. Introduction Background Methodology Experimental results Optimizing Code using Parallel Genetic Algorithm93/3/5 Optimization levels โ€ข Only optimizations that do not require any speed-space tradeoffs are used, so the executable should not increase in size. -O2 1. maximum optimization without increasing the executable size O1+ additional optimizations instruction scheduling 1. More compile time. 2. More memory usage.the best choice for deployment of a program Background 8/22
  • 10. Introduction Background Methodology Experimental results Optimizing Code using Parallel Genetic Algorithm93/3/5 Optimization levels -O3 1. faster executable code 2. Maximum Loop optimization O1+ O2+ more expensive optimizations function inlining 1. Bulky code Background 8/22
  • 11. Introduction Background Methodology Experimental results Optimizing Code using Parallel Genetic Algorithm93/3/5 Optimization level Background 9/22
  • 12. Introduction Background Methodology Experimental results Optimizing Code using Parallel Genetic Algorithm93/3/5 The challenge sequential quick sort Parallel quick sort Which optimization level?? overhead of inter-process communication Background 10/22
  • 13. Introduction Background Methodology Experimental results Optimizing Code using Parallel Genetic Algorithm93/3/5 Genetic algorithm Initial population Selection Crossover & mutation Intermediate population (mating pool) Replacement Next population Background 11/22
  • 14. Introduction Background Methodology Experimental results Optimizing Code using Parallel Genetic Algorithm93/3/5 PGA for Compiler Optimization โ€ข The work in this research uses GCC 4.8 compiler on Ubuntu 12.04 with OpenMP 3.0 library. Methodology 12/22
  • 15. Introduction Background Methodology Experimental results Optimizing Code using Parallel Genetic Algorithm93/3/5 The master-slave model โ€ข In the master-slave model the master runs the evolutionary algorithm, controls the slaves and distributes the work. โ€ข The Slaves take batches of individuals from the master and evaluate them. Finally send the calculated fitness value back to master. Methodology 13/22
  • 16. Introduction Background Methodology Experimental results Optimizing Code using Parallel Genetic Algorithm93/3/5 Encoding 1101011101 Methodology 14/22
  • 17. Introduction Background Methodology Experimental results Optimizing Code using Parallel Genetic Algorithm93/3/5 Fitness function โ€ข In the proposed system the PGA works with a population of six Chromosomes on eight core machine and fitness function is computed at the Master core. Fitness=|(exe_with_flagi-exe_without_flagi)| iโˆˆ {1, 2, โ€ฆ . , 12} Master Node Generate random population evaluates all individuals Slave nodes algorithm After 200 generations Methodology 15/22
  • 18. Introduction Background Methodology Experimental results Optimizing Code using Parallel Genetic Algorithm93/3/5 Algorithm for Slave Nodes Receives all the chromosomes from the master node with the fitness values. The slave cores apply the roulette wheel, Stochastic Universal Sampling and Elitism methods respectively for selection process in parallel Create next generation applying two point crossover. Applies mutations using method, two position interchange and produce two new offspring/chromosomes. Sends both the chromosomes back to the master-node. (The master collects chromosomes from all slaves.) Step 1 Step 2 Step 3 Step 4 Step 5 Methodology 16/22
  • 19. Introduction Background Methodology Experimental results Optimizing Code using Parallel Genetic Algorithm93/3/5 Selection Methodology 17/22
  • 20. Introduction Background Methodology Experimental results Optimizing Code using Parallel Genetic Algorithm93/3/5 Crossover and mutation Two point crossover Swap mutation Methodology 18/22
  • 21. Introduction Background Methodology Experimental results Optimizing Code using Parallel Genetic Algorithm93/3/5 Benchmarks โ€ข All the Bench mark programs are parallelized using OpenMP library to reap the benefits of PGA. Experimental results 19/22
  • 22. Introduction Background Methodology Experimental results Optimizing Code using Parallel Genetic Algorithm93/3/5 Performance analysis โ€ข As one sees the Figures, the results after applying PGA (WGAO) presents a major improvement with respect to the random optimization (WRO) and compiling code without applying optimization (WOO). Experimental results 20/22
  • 23. Introduction Background Methodology Experimental results Optimizing Code using Parallel Genetic Algorithm93/3/5 Performance analysis Experimental results 21/22
  • 24. Introduction Background Methodology Experimental results Optimizing Code using Parallel Genetic Algorithm93/3/5 Performance analysis Experimental results 21/22
  • 25. Introduction Background Methodology Experimental results Optimizing Code using Parallel Genetic Algorithm93/3/5 Performance analysis Experimental results 21/22
  • 26. Introduction Background Methodology Experimental results Optimizing Code using Parallel Genetic Algorithm93/3/5 Performance analysis Experimental results 21/22
  • 27. Introduction Background Methodology Experimental results Optimizing Code using Parallel Genetic Algorithm93/3/5 Conclusion โ€ข In Compiler Optimization research, the phase ordering is an important performance enhancement problem. โ€ข This study indicates that by increasing the number of cores the performance of the benchmark program increases along with the usage of PGA. โ€ข The major concern in the experiment is the master core waiting time collect values from slaves which is primarily due to the usage of Synchronized communication between the Master-Slave cores in the system. โ€ข Further it may be explicitly noted that apart from PRIMS algorithm for core-8 system all other Bench marks exhibit better average performance. 22/22
  • 28. Introduction Background Methodology Experimental results Optimizing Code using Parallel Genetic Algorithm93/3/5 Thanks for your attention.
  • 29. Introduction Background Methodology Experimental results Optimizing Code using Parallel Genetic Algorithm93/3/5 References [1] Satish Kumar T., Sakthivel S. and Sushil Kumar S., โ€œOptimizing Code by Selecting Compiler Flags using Parallel Genetic Algorithm on Multicore CPUs,โ€ International Journal of Engineering and Technology, Vol. 32, No. 5, 2014. [2] Prathibha B., Sarojadevi H., Harsha P., โ€œCompiler Optimization: A Genetic Algorithm Approach,โ€ International Journal of Computer Applications, Vol. 112, No.10, 2015.

Editor's Notes

  1. search space for attempting optimization phase sequences is