Claude TADONKI and Pierre-Louis CARUANA Mines ParisTech - - PowerPoint PPT Presentation

claude tadonki and pierre louis caruana mines paristech
SMART_READER_LITE
LIVE PREVIEW

Claude TADONKI and Pierre-Louis CARUANA Mines ParisTech - - PowerPoint PPT Presentation

Claude TADONKI and Pierre-Louis CARUANA Mines ParisTech CRI (Fontainebleau/France) University of Paris-Sud (Orsay/France) Parallel and Distributed Compu3ng


slide-1
SLIDE 1

Parallel ¡and ¡Distributed ¡Compu3ng ¡and ¡Networks ¡(PDCN ¡2014) ¡ February ¡17 ¡– ¡19, ¡2014 ¡ Innsbruck ¡( ¡AUSTRIA) ¡ ¡

Claude ¡TADONKI ¡and ¡Pierre-­‑Louis ¡CARUANA ¡ Mines ¡ParisTech ¡– ¡CRI ¡(Fontainebleau/France) ¡ University ¡of ¡Paris-­‑Sud ¡(Orsay/France) ¡

slide-2
SLIDE 2

Seamless ¡Parallelism ¡in ¡MATLAB ¡by ¡ ¡Claude ¡TADONKI ¡& ¡Pierre-­‑Louis ¡CARUANA ¡ Parallel ¡and ¡Distributed ¡Compu3ng ¡and ¡Networks ¡(PDCN ¡2014) ¡– ¡Feb ¡17-­‑19, ¡Innsbruck ¡(AUSTRIA) ¡ ¡

Motivations MATLAB ¡is ¡widely ¡used ¡for ¡several ¡kinds ¡of ¡applica3on ¡(scien7fic ¡compu7ng, ¡image ¡processing, ¡

…) ¡

MATLAB ¡provides ¡a ¡programming ¡language ¡suitable ¡for ¡ordinary ¡scien3st ¡( ¡not ¡programmers! ¡) ¡ MATLAB ¡is ¡commonly ¡used ¡for ¡heavy ¡computa3ons ¡(simula7ons, ¡image&signal ¡processing) ¡ Mul3core ¡architecture ¡is ¡now ¡a ¡standard, ¡with ¡an ¡increasing ¡number ¡of ¡cores. ¡ Providing ¡a ¡flexible ¡way ¡to ¡consider ¡parallelism ¡in ¡MATLAB ¡ is ¡really ¡useful ¡to ¡easilly ¡take ¡advantage ¡of ¡this ¡possibility. ¡ MATLAB ¡offers ¡a ¡built-­‑in ¡solu3on ¡for ¡parallel ¡compu3ng ¡through ¡addi3onal ¡packages. ¡

slide-3
SLIDE 3

Seamless ¡Parallelism ¡in ¡MATLAB ¡by ¡ ¡Claude ¡TADONKI ¡& ¡Pierre-­‑Louis ¡CARUANA ¡ Parallel ¡and ¡Distributed ¡Compu3ng ¡and ¡Networks ¡(PDCN ¡2014) ¡– ¡Feb ¡17-­‑19, ¡Innsbruck ¡(AUSTRIA) ¡ ¡

MATLAB Solutions for Parallel Computing (Tasks Feature)

slide-4
SLIDE 4

Seamless ¡Parallelism ¡in ¡MATLAB ¡by ¡ ¡Claude ¡TADONKI ¡& ¡Pierre-­‑Louis ¡CARUANA ¡ Parallel ¡and ¡Distributed ¡Compu3ng ¡and ¡Networks ¡(PDCN ¡2014) ¡– ¡Feb ¡17-­‑19, ¡Innsbruck ¡(AUSTRIA) ¡ ¡

MATLAB Solutions for Parallel Computing (Parfor) The ¡parfor ¡construct ¡is ¡used, ¡in ¡place ¡of ¡a ¡standard ¡for ¡statement, ¡to ¡specify ¡that ¡the ¡ ¡

Corresponding ¡loop ¡should ¡be ¡executed ¡in ¡parallel. ¡

Variable ¡kinds ¡within ¡a ¡parfor ¡loop ¡ Mapping ¡a ¡flow ¡of ¡instruc7ons ¡to ¡a ¡parfor ¡ ¡

slide-5
SLIDE 5

Seamless ¡Parallelism ¡in ¡MATLAB ¡by ¡ ¡Claude ¡TADONKI ¡& ¡Pierre-­‑Louis ¡CARUANA ¡ Parallel ¡and ¡Distributed ¡Compu3ng ¡and ¡Networks ¡(PDCN ¡2014) ¡– ¡Feb ¡17-­‑19, ¡Innsbruck ¡(AUSTRIA) ¡ ¡

Our solution (MATLAN engine & Pthread) Each ¡thread ¡call ¡a ¡MATLAB ¡engine ¡which ¡excutes ¡the ¡ associated ¡MATLAB ¡instruc3on ¡. ¡ ¡ On ¡WINDOWS, ¡the ¡/Automa3on ¡mode ¡allow ¡to ¡avoid ¡

  • pening ¡a ¡new ¡MATLAB ¡each ¡3me ¡we ¡call ¡the ¡engine. ¡ ¡

We ¡run ¡a ¡C ¡mex-­‑file ¡which ¡creates ¡and ¡launch ¡the ¡threads ¡ and ¡manages ¡all ¡data ¡transfers. ¡ ¡

slide-6
SLIDE 6

Seamless ¡Parallelism ¡in ¡MATLAB ¡by ¡ ¡Claude ¡TADONKI ¡& ¡Pierre-­‑Louis ¡CARUANA ¡ Parallel ¡and ¡Distributed ¡Compu3ng ¡and ¡Networks ¡(PDCN ¡2014) ¡– ¡Feb ¡17-­‑19, ¡Innsbruck ¡(AUSTRIA) ¡ ¡

Illustrations and Peformances The ¡3me ¡overheads ¡provided ¡do ¡not ¡depend ¡on ¡how ¡heavy ¡is ¡the ¡associated ¡task. ¡ ¡ Pthreads ¡based ¡solu3on ¡has ¡the ¡lowest ¡overhead ¡and ¡is ¡more ¡stable. ¡ ¡ The ¡cost ¡for ¡data ¡import&export ¡suggests ¡that ¡we ¡be^er ¡use ¡them ¡intensively ¡ ¡

slide-7
SLIDE 7

Seamless ¡Parallelism ¡in ¡MATLAB ¡by ¡ ¡Claude ¡TADONKI ¡& ¡Pierre-­‑Louis ¡CARUANA ¡ Parallel ¡and ¡Distributed ¡Compu3ng ¡and ¡Networks ¡(PDCN ¡2014) ¡– ¡Feb ¡17-­‑19, ¡Innsbruck ¡(AUSTRIA) ¡ ¡

Illustrations and Peformances Matrix-­‑Product ¡ SorBng ¡

slide-8
SLIDE 8

Seamless ¡Parallelism ¡in ¡MATLAB ¡by ¡ ¡Claude ¡TADONKI ¡& ¡Pierre-­‑Louis ¡CARUANA ¡ Parallel ¡and ¡Distributed ¡Compu3ng ¡and ¡Networks ¡(PDCN ¡2014) ¡– ¡Feb ¡17-­‑19, ¡Innsbruck ¡(AUSTRIA) ¡ ¡

Introduction

CPU-­‑cores ¡load ¡with ¡Pthread ¡ ¡ CPU-­‑cores ¡load ¡with ¡Tasks ¡ ¡ CPU-­‑cores ¡load ¡with ¡Parfor ¡ ¡

slide-9
SLIDE 9

Seamless ¡Parallelism ¡in ¡MATLAB ¡by ¡ ¡Claude ¡TADONKI ¡& ¡Pierre-­‑Louis ¡CARUANA ¡ Parallel ¡and ¡Distributed ¡Compu3ng ¡and ¡Networks ¡(PDCN ¡2014) ¡– ¡Feb ¡17-­‑19, ¡Innsbruck ¡(AUSTRIA) ¡ ¡

END

THANKS ¡FOR ¡YOUR ¡ATTENTION! ¡ QUESTIONS ¡? ¡