Docsity

Parallel computing introduction, Lecture notes of Parallel Computing and Programming

Partial preview of the text

Download Parallel computing introduction and more Lecture notes Parallel Computing and Programming in PDF only on Docsity!

Module 1 โ€“ Introduction to

Parallel Computing

Parallel Computing

Objectives

  • To explain the concept of serial computing and itโ€™s limitation
  • To explain the concept of parallel computing and itโ€™s importance
  • To describe the terminologies in parallel computing
  • To calculate the performance measurement using speed-up factor

Serial

Computation

  • Traditionally software has been written for serial computation:-run on a single computer-instructions are run one after another-only one instruction executed at a time 4

Von Neumann Architecture

  • the von Neumann architecture has been the basis for virtually all computer designs since the first generation 5 Main Memory I/O Equipment Central Processing Unit (CPU) Arithmetic Logic Unit Control Unit

Von Neumann Architecture - Components

Main Memory

  • Store program instruction and data
  • Program instruction โ€“ code to instruct computer
  • Data โ€“ information to be used by the program 7 Main Memory I/O Equipment Central Processing Unit (CPU) Arithmetic Logic Unit Control Unit Control Unit
  • Fetches instruction/data from memory
  • Decode instructions
  • Sequentially coordinated operations to be performed Arithmetic Logic Unit
  • Perform basic arithmetic operations Input/output
  • Interface to the human operator

Modern Instruction Cycle

(a) A three-stage pipeline (b) A superscalar CPU (figure taken from Stallings, Operating Systems, 4 th Edition )

Processor

Registers

11

  • Minimize main-memory references
  • Referenced by assembly language instructions (i.e. not high- level languages)
  • Types of registers
    • Data - can be assigned by the programmer
    • Address โ€“ used for direct or indirect references to main memory
    • Condition Codes or flags User-visible registers
  • Control operation of the processor
  • Control execution of programs
    • Program Counter (PC): Contains the address of an instruction to be fetched
    • Instruction Register (IR): Contains the instruction most recently fetched
    • Program Status Word (PSW): condition codes; Interrupt enable/disable; Supervisor/user mode Control and status registers

Parallel Computing

Parallel

Computing

  • Simultaneous use of multiple compute sources to solve a single problem
  • use of multiple processors or computers working together on a common task. 14

What is Parallel Computing?

  • In the simplest sense, parallel computing is the simultaneous use of multiple compute resources to solve a computational problem. - To be run using multiple CPUs - A problem is broken into discrete parts that can be solved concurrently - Each part is further broken down to a series of instructions
  • Instructions from each part execute simultaneously on different CPUs

Parallel Computing โ€“ Resources

  • A single computer with multiple processors
  • A single computer with (multiple) processor(s) and some specialized computer resources (GPU, FPGA โ€ฆ)
  • Multiple number of computers connected by a network
  • Combination of both

Parallel Computing โ€“ Resources

20

  • A single computer with multiple processors
  • A single computer with (multiple) processor(s) and some specialized computer resources (GPU, FPGA โ€ฆ)
  • Multiple number of computers connected by a network
  • Combination of both