SlideShare a Scribd company logo
Parallel & Distributed
Computer Systems


Dr. Mohammad Ansari
Course Details
   Delivery
    ◦ Lectures/discussions: English
    ◦ Assessments: English
    ◦ Ask questions in class if you don’t understand
    ◦ Email me after class if you do not want to ask in
      class
    ◦ DO NOT LEAVE QUESTIONS TILL THE DAY BEFORE THE
      EXAM!!!
   Assessments (this may change)
    ◦ Homework (~1 per week): 10%
    ◦ Midterm: 20%
    ◦ 1 project + final exam OR 2 projects: 35%+35%
Course Details
   Textbook
    ◦ Principles of Parallel Programming, Lin & Snyder
   Other sources of information:
    ◦ COMP 322, Rice University
    ◦ CS 194, UC Berkeley
    ◦ Cilk lectures, MIT
   Many sources of information on the
    internet for writing parallelized code
Teaching Materials & Assignments
   Everything is on Jusur
    ◦ Lectures
    ◦ Homeworks
 Submit homework through Jusur
 Homework is given out on Saturday
 Homework due following Saturday
 You lose 10% for each day late
 No homework this week! 
Outline
   This lecture:
    ◦ Why study parallel computing?
    ◦ Topics covered on this course
   Next lecture:
    ◦ Discuss an example problem
Why study parallel computing?
   First, WHAT is parallel computing?
    ◦ Using multiple processors (in parallel) to solve a
      problem faster than a single processor
   Why is this important?
    ◦ Science/research is usually has two parts.
      Theory, and experimentation.
    ◦ Some experiments just take too long on a single
      processor (days, months, or even years)
    ◦ We do not want to wait for so long
    ◦ Need to execute experiments faster
Why study parallel computing
   BUT, parallel computing very
    specialized
    ◦   Few computers in the world with many procs.
    ◦   Most software not (very) parallelized
    ◦   Typically parallel programming is hard
    ◦   Result: parallel computing taught at Masters
        level
   Why study it during undergraduate?
    ◦ The entire computing industry has shifted to
      parallel computing. Intel, AMD, IBM, Sun, …
Why study parallel computing?
   Today:
    ◦   All computers are multi-core, even laptops
    ◦   Mobile phones will also be multi-core
    ◦   Number of cores keeps going up
    ◦   Intel/AMD:
         ~2004: 2 cores per processor
         ~2006: 4 cores per processor
         ~2009: 6 cores per processor
   If you want your software to use all
    those cores, you need to parallelize it.
   BUT, why did this happen?
Why did this happen?
 We need to look at history of
  processor architectures
 All processors made of transistors
    ◦ Moore’s Law: number of transistors per chip
      doubles every 18-24 months
    ◦ Fabrication process (manufacture of chips)
      improvements made transistors smaller
    ◦ Allows more transistors to be placed in the
      same space (transistor density increasing).
Transistor Counts
                                                             Intel 80286
2,000,000,000                                                Intel 80386
                                                             Intel 80486
                                                             Pentium
 200,000,000                                                 AMD K5
                                                             Pentium II
                                                             Pentium III
  20,000,000
                                                             AMD Athlon
                                                             Pentium 4
   2,000,000                                                 AMD Athlon 64
                                                             AMD Athlon X2
                                                             Cell
     200,000                                                 Core 2 Duo
                                                             Core i7 (Quad)
                                                             Six-Core Opteron 2400
      20,000                                                 Six-Core Xeon 7400
            1980   1985   1990   1995   2000   2005   2010
Why did this happen?
   What did engineers do with so many
    transistors?
    ◦ Added advanced hardware that made your code
      faster automatically
       MMX, SSE, superscalar, out-of-order execution
   Smaller transistors change state faster
    ◦ Smaller transistors enables higher speeds
   Old view:
    ◦   “Want more performance? Get new processor.”
    ◦   New processor more advanced, and higher speed.
    ◦   Makes your software run faster.
    ◦   No effort from programmer for this extra speed.
         Don’t have to change the software.
Why did this happen?
   But now, there are problems
    ◦ Engineers have run out of ideas for advanced
      hardware.
    ◦ Cannot use extra transistors to automatically
      improve performance of code
   OK, but we can still increase the
    speed, right?
Why did this happen?
   But now, there are problems
    ◦ Engineers have run out of ideas for advanced
      hardware.
    ◦ Cannot use extra transistors to automatically
      improve performance of code
   OK, but we can still increase the
    speed, right? WRONG!
Why did this happen?
   But now, there are problems
    ◦ Higher speed processors consume more power
       Big problem for large servers: need their own
        power plant
    ◦ Higher speed processors generate more heat
       Dissipating (removing) the heat is requiring
        more and more sophisticated equipment, heat
        sinks cannot do it anymore
    ◦ Result: not possible to keep increasing speed
   Let’s look at some heat sinks
Intel 386 (25 MHz) Heatsink
 The 386 had no heatsink!
 It did not generate much heat
 Because it has very slow speed
486 (~50Mhz) Heatsink
Pentium 2 Heatsink
Pentium 3 Heatsink
Pentium 4 Heatsink
Why study parallel computing?
   Old view:
    ◦ “Want more performance? Get new processor.”
    ◦ New processor will have higher speed, more
      advanced. Makes your software run faster.
    ◦ No effort from programmer for this extra speed.
   New view:
    ◦ Processors will not be more advanced
    ◦ Processors will not have higher speed
    ◦ Industry/academia: Use extra transistors for
      multiple processors (cores) on the same chip
    ◦ This is called a multi-core processor
       E.g., Core 2 Duo, Core 2 Quad, Athlon X2, X4
Quotes
 ◦ “We are dedicating all of our future product
   development to multicore designs. … This is a
   sea change in computing”
     Paul Otellini, President, Intel (2005)


 ◦ Number of cores will ~double every 2 years
Why study parallel computing?
   What are the benefits of multi-core?
    ◦ Continue to increase theoretical performance:
       Quad-core processor, with each core at 2GHz
        is like 4x2GHz = 8GHz processor
    ◦ Decrease speed to reduce temperature, power
       16-core at 0.5GHz = 16*0.5 = 8GHz
       8GHz, but at lower temperature, lower power
 Multi-core is attractive, because it
  removes existing problems
 No limit (yet) to number of cores
Affects on Programming
   Before:
    ◦ Write sequential (non-parallel) program.
    ◦ It becomes faster with newer processor
       Higher speed, more advanced
   Now:
    ◦ New processor has more cores, but each is slower
    ◦ Sequential programs will run slower on new proc
       They can only use one core
    ◦ What will run faster?
       Parallel program that can use all the cores!!!
Why study parallel computing?
   You need knowledge of parallelism
    ◦ Future processors will have many cores
    ◦ Each core will become slower (speed)
    ◦ Your software will only achieve high
      performance if it is parallelized
   Parallel programming is not easy
    ◦ Many factors affect performance
    ◦ Not easy to find source of bad performance
    ◦ Usually requires deeper understanding of
      processor architectures
    ◦ This is why there is a whole course for it
Course Topics
   Foundations of parallel algorithms
    ◦ How do we make a parallel algorithm?
    ◦ How do we measure its performance?
   Foundations of parallel programming
    ◦ Parallel processor architectures
    ◦ Threads/tasks, synchronization, performance
    ◦ What are the trade-offs, and overheads?
   Experiment with real hardware
    ◦ 8-way distributed supercomputer
    ◦ 24-core shared memory supercomputer
   If we have time:
    ◦ GPGPUs / CUDA
Skills You Need
   Basic understanding of processor
    architectures
    ◦ Pipelines, registers, caches, memory
   Programming in C and/or Java
Summary
 Processor technology cannot continue
  as before. Changed to multi-cores.
 Multi-cores require programs to be
  parallelized for high performance
 This course will cover core theory
  and practice of parallel computing

More Related Content

What's hot

High–Performance Computing
High–Performance ComputingHigh–Performance Computing
High–Performance Computing
BRAC University Computer Club
 
Distributed Computing system
Distributed Computing system Distributed Computing system
Distributed Computing system
Sarvesh Meena
 
Underlying principles of parallel and distributed computing
Underlying principles of parallel and distributed computingUnderlying principles of parallel and distributed computing
Underlying principles of parallel and distributed computing
GOVERNMENT COLLEGE OF ENGINEERING,TIRUNELVELI
 
Software Reuse
Software ReuseSoftware Reuse
Software Reuse
prince mukherjee
 
On demand provisioning
On demand provisioningOn demand provisioning
Process management os concept
Process management os conceptProcess management os concept
Process management os concept
priyadeosarkar91
 
Unit 4
Unit 4Unit 4
Unit 4
Ravi Kumar
 
Introduction to Distributed System
Introduction to Distributed SystemIntroduction to Distributed System
Introduction to Distributed System
RKGhosh3
 
OS - Process Concepts
OS - Process ConceptsOS - Process Concepts
OS - Process Concepts
Mukesh Chinta
 
Windows Architecture Explained by Stacksol
Windows Architecture Explained by StacksolWindows Architecture Explained by Stacksol
Windows Architecture Explained by Stacksol
Stacksol
 
Cloud Computing & Distributed Computing
Cloud Computing & Distributed ComputingCloud Computing & Distributed Computing
Parallel computing
Parallel computingParallel computing
Parallel computing
Engr Zardari Saddam
 
Distributed Computing ppt
Distributed Computing pptDistributed Computing ppt
Scheduling algorithms
Scheduling algorithmsScheduling algorithms
Scheduling algorithms
Chankey Pathak
 
Embedded os
Embedded osEmbedded os
Embedded oschian417
 
Multiprocessor Architecture (Advanced computer architecture)
Multiprocessor Architecture  (Advanced computer architecture)Multiprocessor Architecture  (Advanced computer architecture)
Multiprocessor Architecture (Advanced computer architecture)
vani261
 
Legal issues in cloud computing
Legal issues in cloud computingLegal issues in cloud computing
Legal issues in cloud computing
movinghats
 
Operating system
Operating systemOperating system
Operating system
yogitamore3
 
Operating Systems - "Chapter 4: Multithreaded Programming"
Operating Systems - "Chapter 4:  Multithreaded Programming"Operating Systems - "Chapter 4:  Multithreaded Programming"
Operating Systems - "Chapter 4: Multithreaded Programming"
Ra'Fat Al-Msie'deen
 

What's hot (20)

High–Performance Computing
High–Performance ComputingHigh–Performance Computing
High–Performance Computing
 
Distributed Computing system
Distributed Computing system Distributed Computing system
Distributed Computing system
 
Underlying principles of parallel and distributed computing
Underlying principles of parallel and distributed computingUnderlying principles of parallel and distributed computing
Underlying principles of parallel and distributed computing
 
Software Reuse
Software ReuseSoftware Reuse
Software Reuse
 
On demand provisioning
On demand provisioningOn demand provisioning
On demand provisioning
 
Process management os concept
Process management os conceptProcess management os concept
Process management os concept
 
Unit 4
Unit 4Unit 4
Unit 4
 
Introduction to Distributed System
Introduction to Distributed SystemIntroduction to Distributed System
Introduction to Distributed System
 
OS - Process Concepts
OS - Process ConceptsOS - Process Concepts
OS - Process Concepts
 
Windows Architecture Explained by Stacksol
Windows Architecture Explained by StacksolWindows Architecture Explained by Stacksol
Windows Architecture Explained by Stacksol
 
operating system structure
operating system structureoperating system structure
operating system structure
 
Cloud Computing & Distributed Computing
Cloud Computing & Distributed ComputingCloud Computing & Distributed Computing
Cloud Computing & Distributed Computing
 
Parallel computing
Parallel computingParallel computing
Parallel computing
 
Distributed Computing ppt
Distributed Computing pptDistributed Computing ppt
Distributed Computing ppt
 
Scheduling algorithms
Scheduling algorithmsScheduling algorithms
Scheduling algorithms
 
Embedded os
Embedded osEmbedded os
Embedded os
 
Multiprocessor Architecture (Advanced computer architecture)
Multiprocessor Architecture  (Advanced computer architecture)Multiprocessor Architecture  (Advanced computer architecture)
Multiprocessor Architecture (Advanced computer architecture)
 
Legal issues in cloud computing
Legal issues in cloud computingLegal issues in cloud computing
Legal issues in cloud computing
 
Operating system
Operating systemOperating system
Operating system
 
Operating Systems - "Chapter 4: Multithreaded Programming"
Operating Systems - "Chapter 4:  Multithreaded Programming"Operating Systems - "Chapter 4:  Multithreaded Programming"
Operating Systems - "Chapter 4: Multithreaded Programming"
 

Similar to Introduction to Parallel Distributed Computer Systems

Multi core processors
Multi core processorsMulti core processors
Multi core processors
Adithya Bhat
 
processors
processorsprocessors
processors
Parul Gupta
 
Intel new processors
Intel new processorsIntel new processors
Intel new processors
zaid_b
 
Ashutosh kumar ( JAMIA HAMDARD )
Ashutosh kumar ( JAMIA HAMDARD )Ashutosh kumar ( JAMIA HAMDARD )
Ashutosh kumar ( JAMIA HAMDARD )
Ashutosh Kumar
 
Microprocessors and controllers
Microprocessors and controllersMicroprocessors and controllers
Microprocessors and controllers
Wendy Hemo
 
Microprocessors and controllers
Microprocessors and controllersMicroprocessors and controllers
Microprocessors and controllers
Wendy Hemo
 
Computer Hardware & Software Lab Manual 3
Computer Hardware & Software Lab Manual 3Computer Hardware & Software Lab Manual 3
Computer Hardware & Software Lab Manual 3
senayteklay
 
4th generation intel core processoer
4th generation intel core processoer4th generation intel core processoer
4th generation intel core processoer
Aanamika Nath
 
trends of microprocessor field
trends of microprocessor fieldtrends of microprocessor field
trends of microprocessor field
Ramya SK
 
Computer hard ware - CENTRAL PROCESSING UNIT.pptx
Computer hard ware -  CENTRAL PROCESSING UNIT.pptxComputer hard ware -  CENTRAL PROCESSING UNIT.pptx
Computer hard ware - CENTRAL PROCESSING UNIT.pptx
JoshuaAnnan5
 
Processors with Advanced Technologies
Processors with Advanced TechnologiesProcessors with Advanced Technologies
Processors with Advanced Technologies
CherukuriGopikrishna
 
Intel
IntelIntel
Intel Processors
Intel ProcessorsIntel Processors
Intel Processors
home
 
Processor
ProcessorProcessor
Manufacturingofmicroprocessor 120813121945-phpapp02
Manufacturingofmicroprocessor 120813121945-phpapp02Manufacturingofmicroprocessor 120813121945-phpapp02
Manufacturingofmicroprocessor 120813121945-phpapp02Waqar Mughal
 
Multicore Processor Technology
Multicore Processor TechnologyMulticore Processor Technology
Multicore Processor Technology
Venkata Raja Paruchuru
 
29092013042656 multicore-processor-technology
29092013042656 multicore-processor-technology29092013042656 multicore-processor-technology
29092013042656 multicore-processor-technologySindhu Nathan
 
Webinaron muticoreprocessors
Webinaron muticoreprocessorsWebinaron muticoreprocessors
Webinaron muticoreprocessors
Nagasuri Bala Venkateswarlu
 
Intel core i3, i5, i7 , core2 duo and atom processors
Intel core i3, i5, i7 , core2 duo and atom processorsIntel core i3, i5, i7 , core2 duo and atom processors
Intel core i3, i5, i7 , core2 duo and atom processorsFadyMorris
 

Similar to Introduction to Parallel Distributed Computer Systems (20)

Multi core processors
Multi core processorsMulti core processors
Multi core processors
 
processors
processorsprocessors
processors
 
Intel new processors
Intel new processorsIntel new processors
Intel new processors
 
Ashutosh kumar ( JAMIA HAMDARD )
Ashutosh kumar ( JAMIA HAMDARD )Ashutosh kumar ( JAMIA HAMDARD )
Ashutosh kumar ( JAMIA HAMDARD )
 
Microprocessors and controllers
Microprocessors and controllersMicroprocessors and controllers
Microprocessors and controllers
 
Microprocessors and controllers
Microprocessors and controllersMicroprocessors and controllers
Microprocessors and controllers
 
Computer Hardware & Software Lab Manual 3
Computer Hardware & Software Lab Manual 3Computer Hardware & Software Lab Manual 3
Computer Hardware & Software Lab Manual 3
 
4th generation intel core processoer
4th generation intel core processoer4th generation intel core processoer
4th generation intel core processoer
 
trends of microprocessor field
trends of microprocessor fieldtrends of microprocessor field
trends of microprocessor field
 
Computer hard ware - CENTRAL PROCESSING UNIT.pptx
Computer hard ware -  CENTRAL PROCESSING UNIT.pptxComputer hard ware -  CENTRAL PROCESSING UNIT.pptx
Computer hard ware - CENTRAL PROCESSING UNIT.pptx
 
Processors with Advanced Technologies
Processors with Advanced TechnologiesProcessors with Advanced Technologies
Processors with Advanced Technologies
 
Intel
IntelIntel
Intel
 
Intel Processors
Intel ProcessorsIntel Processors
Intel Processors
 
Processor
ProcessorProcessor
Processor
 
Manufacturingofmicroprocessor 120813121945-phpapp02
Manufacturingofmicroprocessor 120813121945-phpapp02Manufacturingofmicroprocessor 120813121945-phpapp02
Manufacturingofmicroprocessor 120813121945-phpapp02
 
Multicore Processor Technology
Multicore Processor TechnologyMulticore Processor Technology
Multicore Processor Technology
 
29092013042656 multicore-processor-technology
29092013042656 multicore-processor-technology29092013042656 multicore-processor-technology
29092013042656 multicore-processor-technology
 
Webinaron muticoreprocessors
Webinaron muticoreprocessorsWebinaron muticoreprocessors
Webinaron muticoreprocessors
 
Processors
ProcessorsProcessors
Processors
 
Intel core i3, i5, i7 , core2 duo and atom processors
Intel core i3, i5, i7 , core2 duo and atom processorsIntel core i3, i5, i7 , core2 duo and atom processors
Intel core i3, i5, i7 , core2 duo and atom processors
 

Recently uploaded

The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
GeoBlogs
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
Delapenabediema
 
PART A. Introduction to Costumer Service
PART A. Introduction to Costumer ServicePART A. Introduction to Costumer Service
PART A. Introduction to Costumer Service
PedroFerreira53928
 
Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)
rosedainty
 
Introduction to Quality Improvement Essentials
Introduction to Quality Improvement EssentialsIntroduction to Quality Improvement Essentials
Introduction to Quality Improvement Essentials
Excellence Foundation for South Sudan
 
Basic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumersBasic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumers
PedroFerreira53928
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
joachimlavalley1
 
How to Break the cycle of negative Thoughts
How to Break the cycle of negative ThoughtsHow to Break the cycle of negative Thoughts
How to Break the cycle of negative Thoughts
Col Mukteshwar Prasad
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
MIRIAMSALINAS13
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
Tamralipta Mahavidyalaya
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
Celine George
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
Atul Kumar Singh
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
Balvir Singh
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
Celine George
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
siemaillard
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptxStudents, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
EduSkills OECD
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
siemaillard
 
Cambridge International AS A Level Biology Coursebook - EBook (MaryFosbery J...
Cambridge International AS  A Level Biology Coursebook - EBook (MaryFosbery J...Cambridge International AS  A Level Biology Coursebook - EBook (MaryFosbery J...
Cambridge International AS A Level Biology Coursebook - EBook (MaryFosbery J...
AzmatAli747758
 
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCECLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
BhavyaRajput3
 

Recently uploaded (20)

The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
 
PART A. Introduction to Costumer Service
PART A. Introduction to Costumer ServicePART A. Introduction to Costumer Service
PART A. Introduction to Costumer Service
 
Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)
 
Introduction to Quality Improvement Essentials
Introduction to Quality Improvement EssentialsIntroduction to Quality Improvement Essentials
Introduction to Quality Improvement Essentials
 
Basic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumersBasic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumers
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
 
How to Break the cycle of negative Thoughts
How to Break the cycle of negative ThoughtsHow to Break the cycle of negative Thoughts
How to Break the cycle of negative Thoughts
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
 
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptxStudents, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
Cambridge International AS A Level Biology Coursebook - EBook (MaryFosbery J...
Cambridge International AS  A Level Biology Coursebook - EBook (MaryFosbery J...Cambridge International AS  A Level Biology Coursebook - EBook (MaryFosbery J...
Cambridge International AS A Level Biology Coursebook - EBook (MaryFosbery J...
 
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCECLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
 

Introduction to Parallel Distributed Computer Systems

  • 1. Parallel & Distributed Computer Systems Dr. Mohammad Ansari
  • 2. Course Details  Delivery ◦ Lectures/discussions: English ◦ Assessments: English ◦ Ask questions in class if you don’t understand ◦ Email me after class if you do not want to ask in class ◦ DO NOT LEAVE QUESTIONS TILL THE DAY BEFORE THE EXAM!!!  Assessments (this may change) ◦ Homework (~1 per week): 10% ◦ Midterm: 20% ◦ 1 project + final exam OR 2 projects: 35%+35%
  • 3. Course Details  Textbook ◦ Principles of Parallel Programming, Lin & Snyder  Other sources of information: ◦ COMP 322, Rice University ◦ CS 194, UC Berkeley ◦ Cilk lectures, MIT  Many sources of information on the internet for writing parallelized code
  • 4. Teaching Materials & Assignments  Everything is on Jusur ◦ Lectures ◦ Homeworks  Submit homework through Jusur  Homework is given out on Saturday  Homework due following Saturday  You lose 10% for each day late  No homework this week! 
  • 5. Outline  This lecture: ◦ Why study parallel computing? ◦ Topics covered on this course  Next lecture: ◦ Discuss an example problem
  • 6. Why study parallel computing?  First, WHAT is parallel computing? ◦ Using multiple processors (in parallel) to solve a problem faster than a single processor  Why is this important? ◦ Science/research is usually has two parts. Theory, and experimentation. ◦ Some experiments just take too long on a single processor (days, months, or even years) ◦ We do not want to wait for so long ◦ Need to execute experiments faster
  • 7. Why study parallel computing  BUT, parallel computing very specialized ◦ Few computers in the world with many procs. ◦ Most software not (very) parallelized ◦ Typically parallel programming is hard ◦ Result: parallel computing taught at Masters level  Why study it during undergraduate? ◦ The entire computing industry has shifted to parallel computing. Intel, AMD, IBM, Sun, …
  • 8. Why study parallel computing?  Today: ◦ All computers are multi-core, even laptops ◦ Mobile phones will also be multi-core ◦ Number of cores keeps going up ◦ Intel/AMD:  ~2004: 2 cores per processor  ~2006: 4 cores per processor  ~2009: 6 cores per processor  If you want your software to use all those cores, you need to parallelize it.  BUT, why did this happen?
  • 9. Why did this happen?  We need to look at history of processor architectures  All processors made of transistors ◦ Moore’s Law: number of transistors per chip doubles every 18-24 months ◦ Fabrication process (manufacture of chips) improvements made transistors smaller ◦ Allows more transistors to be placed in the same space (transistor density increasing).
  • 10. Transistor Counts Intel 80286 2,000,000,000 Intel 80386 Intel 80486 Pentium 200,000,000 AMD K5 Pentium II Pentium III 20,000,000 AMD Athlon Pentium 4 2,000,000 AMD Athlon 64 AMD Athlon X2 Cell 200,000 Core 2 Duo Core i7 (Quad) Six-Core Opteron 2400 20,000 Six-Core Xeon 7400 1980 1985 1990 1995 2000 2005 2010
  • 11. Why did this happen?  What did engineers do with so many transistors? ◦ Added advanced hardware that made your code faster automatically  MMX, SSE, superscalar, out-of-order execution  Smaller transistors change state faster ◦ Smaller transistors enables higher speeds  Old view: ◦ “Want more performance? Get new processor.” ◦ New processor more advanced, and higher speed. ◦ Makes your software run faster. ◦ No effort from programmer for this extra speed.  Don’t have to change the software.
  • 12. Why did this happen?  But now, there are problems ◦ Engineers have run out of ideas for advanced hardware. ◦ Cannot use extra transistors to automatically improve performance of code  OK, but we can still increase the speed, right?
  • 13. Why did this happen?  But now, there are problems ◦ Engineers have run out of ideas for advanced hardware. ◦ Cannot use extra transistors to automatically improve performance of code  OK, but we can still increase the speed, right? WRONG!
  • 14. Why did this happen?  But now, there are problems ◦ Higher speed processors consume more power  Big problem for large servers: need their own power plant ◦ Higher speed processors generate more heat  Dissipating (removing) the heat is requiring more and more sophisticated equipment, heat sinks cannot do it anymore ◦ Result: not possible to keep increasing speed  Let’s look at some heat sinks
  • 15. Intel 386 (25 MHz) Heatsink  The 386 had no heatsink!  It did not generate much heat  Because it has very slow speed
  • 20. Why study parallel computing?  Old view: ◦ “Want more performance? Get new processor.” ◦ New processor will have higher speed, more advanced. Makes your software run faster. ◦ No effort from programmer for this extra speed.  New view: ◦ Processors will not be more advanced ◦ Processors will not have higher speed ◦ Industry/academia: Use extra transistors for multiple processors (cores) on the same chip ◦ This is called a multi-core processor  E.g., Core 2 Duo, Core 2 Quad, Athlon X2, X4
  • 21. Quotes ◦ “We are dedicating all of our future product development to multicore designs. … This is a sea change in computing”  Paul Otellini, President, Intel (2005) ◦ Number of cores will ~double every 2 years
  • 22. Why study parallel computing?  What are the benefits of multi-core? ◦ Continue to increase theoretical performance:  Quad-core processor, with each core at 2GHz is like 4x2GHz = 8GHz processor ◦ Decrease speed to reduce temperature, power  16-core at 0.5GHz = 16*0.5 = 8GHz  8GHz, but at lower temperature, lower power  Multi-core is attractive, because it removes existing problems  No limit (yet) to number of cores
  • 23. Affects on Programming  Before: ◦ Write sequential (non-parallel) program. ◦ It becomes faster with newer processor  Higher speed, more advanced  Now: ◦ New processor has more cores, but each is slower ◦ Sequential programs will run slower on new proc  They can only use one core ◦ What will run faster?  Parallel program that can use all the cores!!!
  • 24. Why study parallel computing?  You need knowledge of parallelism ◦ Future processors will have many cores ◦ Each core will become slower (speed) ◦ Your software will only achieve high performance if it is parallelized  Parallel programming is not easy ◦ Many factors affect performance ◦ Not easy to find source of bad performance ◦ Usually requires deeper understanding of processor architectures ◦ This is why there is a whole course for it
  • 25. Course Topics  Foundations of parallel algorithms ◦ How do we make a parallel algorithm? ◦ How do we measure its performance?  Foundations of parallel programming ◦ Parallel processor architectures ◦ Threads/tasks, synchronization, performance ◦ What are the trade-offs, and overheads?  Experiment with real hardware ◦ 8-way distributed supercomputer ◦ 24-core shared memory supercomputer  If we have time: ◦ GPGPUs / CUDA
  • 26. Skills You Need  Basic understanding of processor architectures ◦ Pipelines, registers, caches, memory  Programming in C and/or Java
  • 27. Summary  Processor technology cannot continue as before. Changed to multi-cores.  Multi-cores require programs to be parallelized for high performance  This course will cover core theory and practice of parallel computing