cours-zendra
76 pages
Latin
Le téléchargement nécessite un accès à la bibliothèque YouScribe
Tout savoir sur nos offres
76 pages
Latin
Le téléchargement nécessite un accès à la bibliothèque YouScribe
Tout savoir sur nos offres

Description

An introduction tomemory and compiler optimizations for low­ power and energyOlivier ZendraINRIA Nancy Grand Est / LORIA(Nancy, FRANCE)Olivier.Zendra@inria.frhttp://www.loria.fr/~zendraECOFAC 2010, Plestin les Grèves Olivier ZENDRA, INRIA Nancy Grand Est / LORIA 1Special thanks to• Organizers  for  rescheduling  my  lecture  and travel arrangements as late as last Friday– Esp. Arnaud Tisserand– Esp. ana­Bela Leconte– ...• Olivier  Sentieys  for  switching  its  time­slot  with mineECOFAC 2010, Plestin les Grèves Olivier ZENDRA, INRIA Nancy Grand Est / LORIA 2Aim of this lecture• Give a taste of what exists: survey• Give pointers to some interesting works to make digging deeper possible and easier• Software point of view (compiler, application)• At compilation levelStatic–– Dynamic (i.e in VMs)– Not specific in some casesAt memory management level•ECOFAC 2010, Plestin les Grèves Olivier ZENDRA, INRIA Nancy Grand Est / LORIA 3Introduction: compilation• Translating source code into executable– With optimization• Static (off line): cc, gcc• Dynamic (on line)– «Beginning» of runtime: Just In Time (JVMs)• As a whole• Step by step– At  runtime,  with  recompilations:  optimizing  JVMs    (à  la HotSpot)ECOFAC 2010, Plestin les Grèves Olivier ZENDRA, INRIA Nancy Grand Est / LORIA 4Introduction: compilation• Fixed architecture• Unknown programs  a priori– Optimize to better executeHardware optimization•– On­line logic– ...

Informations

Publié par
Nombre de lectures 36
Langue Latin

Extrait

An introduction to
memory and compiler optimizations for 
low­ power and energy
Olivier Zendra
INRIA Nancy Grand Est / LORIA
(Nancy, FRANCE)
Olivier.Zendra@inria.fr
http://www.loria.fr/~zendra
ECOFAC 2010, Plestin les Grèves Olivier ZENDRA, INRIA Nancy Grand Est / LORIA 1Special thanks to
• Organizers  for  rescheduling  my  lecture  and 
travel arrangements as late as last Friday
– Esp. Arnaud Tisserand
– Esp. ana­Bela Leconte
– ...
• Olivier  Sentieys  for  switching  its  time­slot  with 
mine
ECOFAC 2010, Plestin les Grèves Olivier ZENDRA, INRIA Nancy Grand Est / LORIA 2Aim of this lecture
• Give a taste of what exists: survey
• Give pointers to some interesting works to make 
digging deeper possible and easier
• Software point of view (compiler, application)
• At compilation level
Static–
– Dynamic (i.e in VMs)
– Not specific in some cases
At memory management level•
ECOFAC 2010, Plestin les Grèves Olivier ZENDRA, INRIA Nancy Grand Est / LORIA 3Introduction: compilation
• Translating source code into executable
– With optimization
• Static (off line): cc, gcc
• Dynamic (on line)
– «Beginning» of runtime: Just In Time (JVMs)
• As a whole
• Step by step
– At  runtime,  with  recompilations:  optimizing  JVMs    (à  la 
HotSpot)
ECOFAC 2010, Plestin les Grèves Olivier ZENDRA, INRIA Nancy Grand Est / LORIA 4Introduction: compilation
• Fixed architecture
• Unknown programs  a priori
– Optimize to better execute
Hardware optimization•
– On­line logic
– Dedicated circuits
– Overhead at runtime (Power/Energy and Time)
ECOFAC 2010, Plestin les Grèves Olivier ZENDRA, INRIA Nancy Grand Est / LORIA 5Introduction: compilation
• Software optimization (at compile­time, static)
– Off­line logic
– No overhead at runtime
– More resources available (Time, RAM)
– Much larger context possible
– Exact runtime behavior much harder to catch
ECOFAC 2010, Plestin les Grèves Olivier ZENDRA, INRIA Nancy Grand Est / LORIA 6Introduction: compilation
• Energy: new wrt. compilation. Historically, size & 
speed.
• Optimizations for speed and energy
– Often related [Lee1997]
– Not always: moving out of critical path is good for time, 
but is it for energy ? 
• Optimizing  for  energy  !=  for  power  density  (hot 
spots)
ECOFAC 2010, Plestin les Grèves Olivier ZENDRA, INRIA Nancy Grand Est / LORIA 7Introduction
• Low level then high level
• «low»  and  «high»  levels  depend  from  point  of 
view
– High  level  optimizations  take  a  larger  context  into 
account
ECOFAC 2010, Plestin les Grèves Olivier ZENDRA, INRIA Nancy Grand Est / LORIA 8Transitions and commutations
• Transitions  between  successive  instructions:  cost 
energy
• Compiler reschedule instructions to  minimize this 
cost [Graybill2002 p193]
0000 0000
Better !1111 0011
0011 1111
ECOFAC 2010, Plestin les Grèves Olivier ZENDRA, INRIA Nancy Grand Est / LORIA 9Transitions and commutations
• Register  renaming  to  decrease    commutations 
for the register name
– Commutation activity on this field ­11% [Kandemir2000]
• Global impact  ?
ECOFAC 2010, Plestin les Grèves Olivier ZENDRA, INRIA Nancy Grand Est / LORIA 10

  • Univers Univers
  • Ebooks Ebooks
  • Livres audio Livres audio
  • Presse Presse
  • Podcasts Podcasts
  • BD BD
  • Documents Documents