Docsity

Introduction to Parallel Computing in CMSC 714 - Prof. Alan L. Sussman, Study notes of Computer Science

Toggle sidebar
bg1
1
CMSC 714
High Performance Computing
Lecture 1- Introduction
http://www.cs.umd.edu/class/fall2005/cmsc714
Alan Sussman
2
CMSC 714 – F05 Alan Sussman& Jeffrey K. Hollingsworth
Introduction
zClass is an introduction to parallel computing
– topics include: hardware, applications, compilers, system
software, and tools
zCounts for Masters/PhD Comp Credit
zWork required
– small programming assignments (two) - MPI/OpenMP
–midterm
– classroom participation
• Everyone will have to present (1 or 2) papers for 1 class
• For each class with readings, everyone has to send me
one question to discuss in class
– group project (2-3 students per group)
zWill be asked to participate in a study of parallel
programming
3
CMSC 714 – F05 Alan Sussman& Jeffrey K. Hollingsworth
What is Parallel Computing?
zDoes it include:
– super-scalar processing (more than one instruction at once)?
– client/server computing?
• what if RPC calls are non-blocking?
– vector processing (same instruction to several values)?
– collection of PC’s not connected to a (fast) network?
zFor this class, parallel computing requires:
– more than one processing element
– nodes connected to a communication network
– nodes working together to solve a single problem
4
CMSC 714 – F05 Alan Sussman& Jeffrey K. Hollingsworth
Why Parallelism
zSpeed
– need to get results faster than possible with sequential
• a weather forecast that is late is useless
– could come from
• more processing elements (P.E.’s)
• more memory (or cache)
• more disks
zCost: cheaper to buy many smaller machines
– this is only relatively recently true due to
•VLSI
• commodity parts
5
CMSC 714 – F05 Alan Sussman& Jeffrey K. Hollingsworth
What Does a Parallel Computer Look
Like?
zHardware
– processors
– communication
–memory
– coordination
zSoftware
– programming model
– communication libraries
– operating system
6
CMSC 714 – F05 Alan Sussman& Jeffrey K. Hollingsworth
Processing Elements (PE)
zKey Processor Choices
– How many?
– How powerful?
– Custom or off-the-shelf?
zMajor Styles of Parallel Computing
– SIMD - Single Instruction Multiple Data
• one master program counter (PC)
– MIMD - Multiple Instruction Multiple Data
• separate code for each processor
– SPMD - Single Program Multiple Data
• same code on each processor, separate PC’s on each
– Dataflow – instruction (or code block) waits for operands
• “automatically” finds parallelism
pf3

Partial preview of the text

Download Introduction to Parallel Computing in CMSC 714 - Prof. Alan L. Sussman and more Study notes Computer Science in PDF only on Docsity!

CMSC 714

High Performance Computing

Lecture 1- Introduction

http://www.cs.umd.edu/class/fall2005/cmsc

Alan Sussman

CMSC 714 – F05 Alan Sussman & Jeffrey K. Hollingsworth 2

Introduction

z Class is an introduction to parallel computing

  • topics include: hardware, applications, compilers, system software, and tools

z Counts for Masters/PhD Comp Credit

z Work required

  • small programming assignments (two) - MPI/OpenMP
  • midterm
  • classroom participation
    • Everyone will have to present (1 or 2) papers for 1 class
    • For each class with readings, everyone has to send me one question to discuss in class
  • group project (2-3 students per group)

z Will be asked to participate in a study of parallel

programming

CMSC 714 – F05 Alan Sussman & Jeffrey K. Hollingsworth^3

What is Parallel Computing?

z Does it include:

  • super-scalar processing (more than one instruction at once)?
  • client/server computing?
    • what if RPC calls are non-blocking?
  • vector processing (same instruction to several values)?
  • collection of PC’s not connected to a (fast) network?

z For this class, parallel computing requires:

  • more than one processing element
  • nodes connected to a communication network
  • nodes working together to solve a single problem

CMSC 714 – F05 Alan Sussman & Jeffrey K. Hollingsworth^4

Why Parallelism

z Speed

  • need to get results faster than possible with sequential
    • a weather forecast that is late is useless
  • could come from
    • more processing elements (P.E.’s)
    • more memory (or cache)
    • more disks

z Cost: cheaper to buy many smaller machines

  • this is only relatively recently true due to
    • VLSI
    • commodity parts

CMSC 714 – F05 Alan Sussman & Jeffrey K. Hollingsworth^5

What Does a Parallel Computer Look Like?

z Hardware

  • processors
  • communication
  • memory
  • coordination

z Software

  • programming model
  • communication libraries
  • operating system

CMSC 714 – F05 Alan Sussman & Jeffrey K. Hollingsworth^6

Processing Elements (PE)

z Key Processor Choices

  • How many?
  • How powerful?
  • Custom or off-the-shelf?

z Major Styles of Parallel Computing

  • SIMD - Single Instruction Multiple Data
    • one master program counter (PC)
  • MIMD - Multiple Instruction Multiple Data
    • separate code for each processor
  • SPMD - Single Program Multiple Data
    • same code on each processor, separate PC’s on each
  • Dataflow – instruction (or code block) waits for operands
    • “automatically” finds parallelism

CMSC 714 – F05 Alan Sussman & Jeffrey K. Hollingsworth 7

SIMD

0 1

1

0 1

Program Counter

Mask Flag

Processors Program CMSC 714 – F05 Alan Sussman & Jeffrey K. Hollingsworth 8

MIMD

Processors

Program Counter Program Counter Program Counter

Program #1 Program #2 Program #

CMSC 714 – F05 Alan Sussman & Jeffrey K. Hollingsworth^9

SPMD

Processors

Program Counter Program Counter Program Counter

Program Program Program

Program

CMSC 714 – F05 Alan Sussman & Jeffrey K. Hollingsworth^10

I1 I2 I

Dataflow

instruction instruction

I

CMSC 714 – F05 Alan Sussman & Jeffrey K. Hollingsworth^11

Communication Networks

z Connect

  • PE’s, memory, I/O

z Key Performance Issues

  • latency: time for first byte
  • throughput: average bytes/second

z Possible Topologies

  • bus - simple, but doesn’t scale
  • ring - orders delivery of messages

PE

MEM MEM

MEM

PE

PE MEM

PE

CMSC 714 – F05 Alan Sussman & Jeffrey K. Hollingsworth^12

Topologies (cont)

  • tree - needs to increase bandwidth near the top

PE PE PE PE

PE

PE

PE

PE PE

PE

PE PE

PE PE

PE

PE

PE PE

PE PE

PE PE

PE PE

–mesh - two or three dimensions

–hypercube - needs a power of number of nodes