Docsity

Understanding Parallel Computing: Macroarchitecture and Microarchitecture - Prof. Gehring, Study notes of Electrical and Electronics Engineering

Toggle sidebar
bg1
Macroarchitecture vs. microarchitecture
Microarchitecture is concerned with how processors and other
components are put together. Macroarchitecture is concerned with
how processors and other components can be connected to do
useful work.
This is a course in macroarchitecture.
Why parallel architecture?
In the early days of computing, the best way to increase the speed of
a computer was to use faster logic devices.
However, the time is long past when we could rely on this approach
to making computers faster.
As device-switching times grow shorter, propagation delay becomes
significant.
Logic signals travel at the speed of light, approximately 30 cm./nsec.
in a vacuum. If two devices are one meter apart, the propagation
delay is approximately
In 1960, switching speed was 10-100 nsec.
Î
Nowadays, switching speed is typically measured in picoseconds
Î
Then how can we build faster computers?
The performance of highly integrated, single-chip CMOS
microprocessors is steadily increasing.
Lecture 1 Architecture of Parallel Computers 1
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download Understanding Parallel Computing: Macroarchitecture and Microarchitecture - Prof. Gehring and more Study notes Electrical and Electronics Engineering in PDF only on Docsity!

Macroarchitecture vs. microarchitecture

Microarchitecture is concerned with how processors and other components are put together. Macroarchitecture is concerned with how processors and other components can be connected to do useful work.

This is a course in macroarchitecture.

Why parallel architecture?

In the early days of computing, the best way to increase the speed of a computer was to use faster logic devices.

However, the time is long past when we could rely on this approach to making computers faster.

As device-switching times grow shorter, propagation delay becomes significant.

Logic signals travel at the speed of light, approximately 30 cm./nsec. in a vacuum. If two devices are one meter apart, the propagation delay is approximately

In 1960, switching speed was 10-100 nsec.

Î

Nowadays, switching speed is typically measured in picoseconds Î

Then how can we build faster computers?

The performance of highly integrated, single-chip CMOS microprocessors is steadily increasing.

Lecture 1 Architecture of Parallel Computers 1

In fact, these fast processors are now the best building blocks for multiprocessors.

So, to get performance better than that provided by the fastest single processor, we should figure out how to hook those processors together rather than rely on exotic circuit technologies and unconventional machine organizations.

Application trends

Given a serial program, it is usually not easy to transform it into an effective parallel program.

The measure of whether a parallel program is effective is how much better it performs than the serial version. This is usually measured by speedup.

Given a fixed problem, the speedup is measured by—

Speedup ( p processors ) ≡ Time (1 processor ) / Time ( p processors ).

What kinds of programs require the performance only multiprocessors can deliver?

A lot of these programs are simulations:

  • Weather forecasting over several days
  • Ocean circulation
  • Evolution of galaxies
  • Human genome analysis
  • Superconductor modeling

Parallel architectures are now the mainstay of scientific computing— chemistry, biology, physics, materials science, etc.

Visualization is an important aspect of scientific computing, as well as entertainment.

© 2003 Edward F. Gehringer CSC/ECE 506 Lecture Notes, Spring 2003 2

Clock rates have been increasing by about 30%/yr., while the number of transistors has been increasing by about 40%.

However, memory speed has lagged far behind. From 1980 to 1995,

  • the capacity of a DRAM chip increased 1000 times,
  • but the memory cycle time fell by only a factor of two.

This has led designers to use multilevel caches.

Microprocessor design trends

The history of computer architecture is usually divided into four generations:

  • Vacuum tubes
  • Transistors
  • Integrated circuits
  • VLSI

Within the fourth generation, there have been several subgenerations, based on the kind of parallelism that is exploited.

  • The period up to ≈ 1986 is dominated by advancements in bit-level parallelism.

However, this trend has slowed considerably.

How did this trend help performance?

Why did this trend slow?

© 2003 Edward F. Gehringer CSC/ECE 506 Lecture Notes, Spring 2003 4

  • The period from the mid-1980s to mid-1990s is dominated by advancements in instruction-level parallelism. Pipelines (which we will describe in a few minutes) made it possible to start an instruction in nearly every cycle, even though some instructions took much longer than this to finish.
  • Today, efforts are focused on “tolerating latency.” Some operations, e.g., memory operations, take a long time to complete. What can the processor do to keep busy in the meantime?

The Flynn taxonomy of parallel machines

Traditionally, parallel computers have been classified according to how many instruction and data streams they can handle simultaneously.

  • Single or multiple instruction streams.
  • Single or multiple data streams.

SISD machine

An ordinary serial computer.

Control unit

Instruction stream

Data ALU stream

At any given time, at most one instruction is being executed, and the instruction affects at most one set of operands (data).

Lecture 1 Architecture of Parallel Computers 5

MIMD machine

Several complete processors connected together to form a multiprocessor.

  • The processors are connected together via an interconnection network to provide a means of cooperating during the computation.

Control unit 2 ALU 2

ALU 1

ALU n

Instruction stream 1

stream 2

stream n

Instruction

Instruction

Control unit 1

Control unit (^) n

Data

Data

Data

stream 1

stream 2

stream n

  • The processors need not be identical.
  • Can handle a greater variety of tasks than an array processor.

The MOMS taxonomy of parallel machines

The SIMD/MIMD taxonomy leaves something to be desired, since there are many subclasses of MIMD that do not appear in the model, and one class (MISD) that appears in the model but not in real life.

Gustafson (1990) proposes the following taxonomy.

MO

DO

MS

DS

Operations Storage

Monolithic Distributed

This yields the following classifications:

  • MOMS (Monolithic operations, monolithic storage)

“Apple-pie computing.”

P

M

  • MODS (Monolithic operations, distributed data).

Lecture 1 Architecture of Parallel Computers 7

PE

M

PE

M

PE

M

…

Control processor

Examples: Connection Machine (CM-1, CM-2), MassPar.

  • DOMS (Distributed operations, monolithic storage)

P P (^) … P

Shared M

Examples: Sequent Balance and Symmetry, BBN Butterfly, Cray Y-MP.

  • DODS (Distributed operations, distributed storage)

P

M

P

M

P

M

P

M

Examples: N-CUBE, Intel iPSC, Meiko Computing Surface.

In addition to these methods of obtaining parallelism among processors, there is this important approach to achieving parallelism within a processor.

© 2003 Edward F. Gehringer CSC/ECE 506 Lecture Notes, Spring 2003 8

Time (pipeline cycles)

Pipeline stages

Execute Operand fetch Instruction decode Instruction fetch I^^1 I^^2 I^^3 I^^4 I^^5

I (^) 1 I (^) 2 I (^) 3 I (^) 4 I (^) 5

I (^) 1 I (^) 2 I (^) 3 I (^) 4 I (^) 5

I (^) 1 I (^) 2 I (^) 3 I (^) 4 I (^) 5

  • The type of pipelining described above achieves instruction-level parallelism —execution of multiple instructions in parallel.
  • It is also possible to use pipelining to achieve data parallelism. A vector processor usually has a long pipeline, and allows a large number of the same operations to take place concurrently. (Same operations, different data =
  • A single “processor” may possess multiple pipelines, allowing different operations to use different pipelines (e.g., there might be a specialized addition pipeline, and another load pipeline). For example, the CDC 6600 had ten separate functional units , with a scoreboard to keep track of which was in use at any time.

© 2003 Edward F. Gehringer CSC/ECE 506 Lecture Notes, Spring 2003 10

PP PP PP PP PP PP PP PP PP PP

12 peripheral channels

Main memory

Peripheral processors

24 registers

Instruction stack

Add Multiply Multiply Divide Fixed add Increment Increment Boolean Shift Branch

Scoreboard

I/O Subsystem Memory Central processor

10 functional units

  • Branches are a problem for pipelined computers.

Execution of some instructions may take longer than others. If there are two (or more) units capable of performing a given function (e.g., multiplication), then two operations of that type may be performed at once, providing that —

Lecture 1 Architecture of Parallel Computers 11