Docsity

Parallel Processing-Advance Computer Architecture-Lecture Slides, Slides of Advanced Computer Architecture

Partial preview of the text

Download Parallel Processing-Advance Computer Architecture-Lecture Slides and more Slides Advanced Computer Architecture in PDF only on Docsity!

Today’s Topics

Recap:

Parallel Processing

Parallel Processing Architectures

  • Symmetric Shared Memory
  • Distributed Shared Memory

Performance of Parallel Architectures

Summary

Recap

So far our focus have been to study the performance of a single instruction stream computers; and methodologies to enhance the performance of such machines

We studied how

  • the Instruction Level Parallelism is exploited among the instructions of a stream; and
  • the control, data and memory dependencies are resolved

Parallel Processing and Parallel

Architecture

However, further improvements in the performance may be achieved by exploiting parallelism among multiple instruction streams, which uses:

  • Multithreading, i.e., number of instruction streams running on one CPU
  • Multiprocessing, i.e., streams running on multiple CPUs where each CPU can itself be multithreaded

Parallel Computers Performance

Amdahl’s Law

Furthermore, while evaluating the performance enhancement due to parallel processing two important challenges are to be taken into consideration

  • Limited parallelism available in program
  • High cost of communication These limitations make it difficult to achieve good speedup in any parallel processor

Parallel Computers Performance

Here, the fraction enhanced is the fraction in parallel, therefore speedup can be expressed as

80 = 1 / [(Fraction (^) parallel/100 + (1-Fractionparallel )]

Simplifying the expression, we get

0.8Fraction (^) parallel + 80(1-Fraction (^) parallel) = 1

80 - 79.2* Fraction (^) parallel = 1

Fraction (^) parallel = (80-1)/79.2 = 0.

i.e., to achieve speedup of 80 with 100 processors only 0.25% sequential allowed!

Parallel Computers Performance

The second major challenge in parallel processing is the communication cost that involves the latency of remote access

Now let us consider another example to explain the impact of communication cost on the performance of parallel computers

Example: Consider an application running on 32-processors multiprocessor, with 40 nsec. time to handle remote memory reference

Introduction to Parallel Processing

Substituting the values we get:

CPI = [1/Base IPC] + 0.2% x remote request cost = [1/2] + 0.2% x (400 cycle) = 0.5 +0.8 = 1. And, CPI without remote reference = 1/Base IPC = 0. Hence, the multiprocessor with all local reference is 1.3/0.5 = 2.6 times faster as compare to that with no remote reference

Introduction to Parallel Processing

Considering these limitations let us

explore how improvement in computer

performance can be accomplished

using Parallel Processing Architecture

Parallel Architecture is a collection of

processing elements that cooperate

and communicate to solve larger

problems fast

Parallel Computer Categories

In 1966, Flynn proposed simple categorization of computers that is still valid today

This categorization forms the basis to implement the programming and communication models for parallel computing

Flynn looked at the parallelism in the instruction and in the data streams called for by the instructions and proposed the following four categories:

Parallel Computer Categories

SISD (Single Instruction Single Data)

  • This category is Uniprocessor

SIMD (Single Instruction Multiple Data)

  • Same instruction is executed by multiple processors using different data streams
  • Each processor has its own data memory (i.e., multiple data memories) but there is a single instruction memory and single control processor

Parallel Computer Categories

MIMD (Multiple Instruction Multiple Data)

  • Each processor fetches its own instructions and operates on its own data
  • Examples: Sun Enterprise 5000, Cray T3D, SGI Origin. The characteristics these machines are: Flexibility: it can function as Single-user multiprocessor or as multi-programmed multiprocessor running many programs simultaneously Use of off-the-shelf microprocessors

MIMD and Thread Level Parallelism

MIMD machines have multiple processors and can be used as:

  • Either each processor executing different processes in a multi-program environment
  • Or multiple processors execute a single program sharing the code and most of their address space In the later case, where multiple processes share code and data, such processes are referred to as the threads