Docsity

Parallel Computing: Understanding Parallel Processors and Architectures, Slides of Parallel Computing and Programming

Partial preview of the text

Download Parallel Computing: Understanding Parallel Processors and Architectures and more Slides Parallel Computing and Programming in PDF only on Docsity!

Parallel Processing Architectures

Parallel Computers

  • Definition: “A parallel computer is a collection of

processing elements that cooperate and communicate to solve large problems fast.” Almasi and Gottlieb, Highly Parallel Computing , 1989

  • Questions about parallel computers:
    • How large a collection?
    • How powerful are processing elements?
    • How do they cooperate and communicate?
    • How are data transmitted?
    • What type of interconnection?
    • What are HW and SW primitives for programmer?
    • Does it translate into performance?

What level Parallelism?

  • Bit level parallelism: 1970 to ~
    • 4 bits, 8 bit, 16 bit, 32 bit microprocessors
  • Instruction level parallelism (ILP): ~1985 through today - Pipelining - Superscalar - VLIW - Out-of-Order execution - Limits to benefits of ILP?
  • Process Level or Thread level parallelism; mainstream for general purpose computing? - Servers are parallel - High-end Desktop dual processor PC soon?? (or just the sell the socket?)

Why Multiprocessors?

  1. Microprocessors as the fastest CPUs
    • Collecting several much easier than redesigning 1
  2. Complexity of current microprocessors
    • Do we have enough ideas to sustain 2X/1.5yr?
    • Can we deliver such complexity on schedule?
  3. Slow (but steady) improvement in parallel software (scientific apps, databases, OS)
  4. Emergence of embedded and server markets driving microprocessors in addition to desktops
    • Embedded functional parallelism
    • Network processors exploiting packet-level parallelism
    • SMP Servers and cluster of workstations for multiple users – Less demand for parallel computing

Popular Flynn Categories

  • SISD (Single Instruction Single Data)
    • Uniprocessors
  • MISD (Multiple Instruction Single Data)
    • ???; multiple processors on a single data stream
  • SIMD (Single Instruction Multiple Data)
    • Examples: Illiac-IV, CM-
      • Simple programming model
      • Low overhead
      • Flexibility
      • All custom integrated circuits
    • (Phrase reused by Intel marketing for media instructions ~ vector)
  • MIMD (Multiple Instruction Multiple Data)
    • Examples: Sun Enterprise 5000, Cray T3D, SGI Origin
      • Flexible
      • Use off-the-shelf micros
  • MIMD current winner: Concentrate on major design emphasis <= 128 processor MIMD machines

More Message passing Computers

  • Cluster: Computers connected over high-

bandwidth local area network (Ethernet or

Myrinet) used as a parallel computer

  • Network of Workstations (NOW):

Homogeneous cluster – same type

computers

  • Grid: Computers connected over wide area

network

Another Classification for MIMD

Computers

  • Centralized Memory: Shared memory located at centralized location – may consist of several interleaved modules – same distance from any processor – Symmetric Multiprocessor (SMP) – Uniform Memory Access (UMA)
  • Distributed Memory: Memory is distributed to each processor – improves scalability (a) Message passing architectures – No processor can directly access another processor’s memory (b) Hardware Distributed Shared Memory (DSM) Multiprocessor – Memory is distributed, but the address space is shared – Non-Uniform Memory Access (NUMA) (c) Software DSM – A level of o/s built on top of message passing multiprocessor to give a shared memory view to the programmer.

Data Parallel Model

  • Operations can be performed in parallel on each element of a large regular data structure, such as an array
  • 1 Control Processor (CP) broadcasts to many PEs. The CP reads an instruction from the control memory, decodes the instruction, and broadcasts control signals to all PEs.
  • Condition flag per PE so that can skip
  • Data distributed in each memory
  • Early 1980s VLSI => SIMD rebirth: 32 1-bit PEs + memory on a chip was the PE
  • Data parallel programming languages lay out data to processor

Data Parallel Model

  • Vector processors have similar ISAs, but no data placement restriction
  • SIMD led to Data Parallel Programming languages
  • Advancing VLSI led to single chip FPUs and whole fast μProcs (SIMD less attractive)
  • SIMD programming model led to Single Program Multiple Data (SPMD) model - All processors execute identical program
  • Data parallel programming languages still useful, do communication all at once: “Bulk Synchronous” phases in which all communicate after a global barrier

Major MIMD Styles

1. Centralized shared memory ("Uniform

Memory Access" time or "Shared Memory

Processor")

2. Decentralized memory (memory module

with CPU)

  • Advantages: Scalability, get more memory bandwidth, lower local memory latency
  • Drawback: Longer remote communication latency, Software model more complex
  • Two types: Shared Memory and Message passing

Symmetric Multiprocessor (SMP)

  • Memory: centralized with uniform access

time (“uma”) and bus interconnect

  • Examples: Sun Enterprise 5000 , SGI

Challenge, Intel SystemPro

Distributed Directory MPs

Communication Models

  • Shared Memory
    • Processors communicate with shared address space
    • Easy on small-scale machines
    • Advantages:
      • Model of choice for uniprocessors, small-scale MPs
      • Ease of programming
      • Lower latency
      • Easier to use hardware controlled caching
  • Message passing
    • Processors have private memories, communicate via messages
    • Advantages:
      • Less hardware, easier to design
      • Good scalability
      • Focuses attention on costly non-local operations
  • Virtual Shared Memory (VSM)