Docsity

Parallel Computing: Flynn's Taxonomy and Parallel Architectures, Study notes of Computer Science

Partial preview of the text

Download Parallel Computing: Flynn's Taxonomy and Parallel Architectures and more Study notes Computer Science in PDF only on Docsity!

COSC 4397 – Parallel ComputationEdgar Gabriel

COSC 4397

Parallel ComputationParallel Computer Architectures

Some slides on network topologies based on a similar presentation

by Michael ReschEdgar Gabriel

Spring 2006

2

COSC 4397 – Parallel ComputationEdgar Gabriel

Flynn’s Taxonomy

•^

SISD: Single instruction single data– Classical von Neumann architecture

-^

SIMD: Single instruction multiple data

-^

MISD: Multiple instructions single data– Non existent, just listed for completeness

-^

MIMD: Multiple instructions multiple data– Most common and general parallel machine

4

Single Instruction Multiple Data (II)^ COSC 4397 – Parallel ComputationEdgar Gabriel

•^

Interesting detail: handling of if-conditions– First all processors, for which the if-condition is true

execute the according code-section, other processorsare on hold

  • Second, all processors for the if-condition is not true

execute the according code-section, other processorsare on hold

•^

Some architectures in the early 90s used SIMD (MasPar,Thinking Machines)

-^

No SIMD machines available today

-^

SIMD concept used in processors of your graphics card

5

COSC 4397 – Parallel ComputationEdgar Gabriel

Multiple Instructions Multiple Data (I)

•^

Each processor has its own instruction stream and inputdata

-^

Most general case – every other scenario can bemapped to MIMD

-^

Further breakdown of MIMD usually based on thememory organization– Shared memory systems– Distributed memory systems

7

Symmetric multi-processors (SMPs)^ COSC 4397 – Parallel ComputationEdgar Gabriel

•^

All processors share the same physical main memory

-^

Memory bandwidth per processor is limiting factor forthis type of architecture

-^

Typical size: 2-16 processors

Memory CPU

CPU

CPU

CPU

8

COSC 4397 – Parallel ComputationEdgar Gabriel

NUMA architectures (I)

•^

Some memory is closer to a certain processor than othermemory– The whole memory is still addressable from all

processors

  • Depending on what data item a processor retrieves,

the access time might vary strongly

Memory CPU

CPU

Memory CPU

CPU

Memory CPU

CPU

Memory CPU

CPU

10

COSC 4397 – Parallel ComputationEdgar Gabriel

Distributed memory machines (I)

•^

Each processor has its own address space

-^

Communication between processes by explicit dataexchange– Sockets– Message passing– Remote procedure call / remote method invocation

CPU

 CPU



Network interconnect

^ CPU

^ CPU

^ CPU

11

Distributed memory machines (II) COSC 4397 – Parallel ComputationEdgar Gabriel

•^

Performance of a distributed memory machine stronglydepends on the quality of the network interconnect andthe topology of the network interconnect– Of-the-shelf technology: e.g. fast-Ethernet, gigabit-

Ethernet

  • Specialized interconnects: Myrinet, Infiniband,

Quadrics, …

13

COSC 4397 – Parallel ComputationEdgar Gabriel

Hybrid systems

•^

E.g. clusters of multi-processor nodes

CPU

CPU



Network interconnect

CPU

CPU



CPU

CPU



CPU

CPU



CPU

CPU



CPU

CPU



14

COSC 4397 – Parallel ComputationEdgar Gabriel

Grids

•^

Further evaluation of distributed memory machines

-^

Several (parallel) machines connected by wide-arealinks (typically the internet)– Machines are in different administrative domains

16

COSC 4397 – Parallel ComputationEdgar Gabriel

Network topologies (II)

Small (costs)

Number of links required to create anetwork topology

Complexity

Small (costs)

Number of procs to be added to keepthe properties of a topology

Increment

Large (reliability)

Minimum number of links that have tobe cut to separate the network

Connectivity

Small (costs) /Large (redundancy)

Number of links that connect to aprocessor

Degree

Small

Maximum distance in a network

Diameter

Small

Minimum length of a path between twoprocessors

Distance

As many as possible

A route between two processors

Path

A direct connection between twoprocessors

Link

Optimal parameter

Description

Metric

17

COSC 4397 – Parallel ComputationEdgar Gabriel

Bus-Based Network (I)

•^

All nodes are connected to the same (shared)communication medium

-^

Only one communication at a time possible– Does not scale

-^

Examples: Ethernet, SCSI, Token Ring, Memory bus

-^

Main advantages:– simple broadcast– cheap

CPU

CPU

CPU

….

CPU

19

COSC 4397 – Parallel ComputationEdgar Gabriel

Crossbar Networks (I)

•^

A grid of switches connecting n

x m ports

•^

a connection from one process to another does notprevent communication between other process pairs

-^

Scales from the technical perspective

-^

Does not scale from the financial perspective

-^

Aggregated Bandwidth of a crossbar: sum of thebandwidth of all possible connections at the same time

20

COSC 4397 – Parallel ComputationEdgar Gabriel

Crossbar networks (II)

•^

Overcoming the financial problem by introducing multi-stage networks