Fundamental Design Issues

Slides:



Advertisements
Similar presentations
ECE669 L3: Design Issues February 5, 2004 ECE 669 Parallel Computer Architecture Lecture 3 Design Issues.
Advertisements

Multiprocessors— Large vs. Small Scale Multiprocessors— Large vs. Small Scale.
CS 213: Parallel Processing Architectures Laxmi Narayan Bhuyan Lecture3.
Fundamental Design Issues for Parallel Architecture Todd C. Mowry CS 495 January 22, 2002.
Multiprocessors ELEC 6200: Computer Architecture and Design Instructor : Agrawal Name: Nam.
EECC756 - Shaaban #1 lec # 2 Spring Parallel Architectures History Application Software System Software SIMD Message Passing Shared Memory.
EECC756 - Shaaban #1 lec # 2 Spring Conventional Computer Architecture Abstraction Conventional computer architecture has two aspects: 1.
EECC756 - Shaaban #1 lec # 2 Spring Conventional Computer Architecture Abstraction Conventional computer architecture has two aspects: 1.
Multiprocessors CSE 471 Aut 011 Multiprocessors - Flynn’s Taxonomy (1966) Single Instruction stream, Single Data stream (SISD) –Conventional uniprocessor.
EECC756 - Shaaban #1 lec # 2 Spring Conventional Computer Architecture Abstraction Conventional computer architecture has two aspects: 1.
Fundamental Design Issues CS 258, Spring 99 David E. Culler Computer Science Division U.C. Berkeley.
Parallel Processing Architectures Laxmi Narayan Bhuyan
EECC756 - Shaaban #1 lec # 2 Spring Parallel Architectures History Application Software System Software SIMD Message Passing Shared Memory.
Implications for Programming Models Todd C. Mowry CS 495 September 12, 2002.
EECC756 - Shaaban #1 lec # 2 Spring Conventional Computer Architecture Abstraction Conventional computer architecture has two aspects: 1.
1 Computer Science, University of Warwick Architecture Classifications A taxonomy of parallel architectures: in 1972, Flynn categorised HPC architectures.
Computer architecture II
CMSC 611: Advanced Computer Architecture Parallel Computation Most slides adapted from David Patterson. Some from Mohomed Younis.
Parallel Architectures
1 Micro-kernel. 2 Key points Microkernel provides minimal abstractions –Address space, threads, IPC Abstractions –… are machine independent –But implementation.
Chapter 2 Parallel Architecture. Moore’s Law The number of transistors on a chip doubles every years. – Has been valid for over 40 years – Can’t.
EECC756 - Shaaban #1 lec # 2 Spring Conventional Computer Architecture Abstraction Conventional computer architecture has two aspects: 1.
Spring 2003CSE P5481 Issues in Multiprocessors Which programming model for interprocessor communication shared memory regular loads & stores message passing.
Intro to Parallel Architecture Todd C. Mowry CS 740 September 19, 2007.
CMPE655 - Shaaban #1 lec # 2 Fall Conventional Computer Architecture Abstraction Conventional computer architecture has two aspects: 1 The.
3/12/2013Computer Engg, IIT(BHU)1 PARALLEL COMPUTERS- 2.
CMPE655 - Shaaban #1 lec # 2 Spring Conventional Computer Architecture Abstraction Conventional computer architecture has two aspects: 1.
Evolution and Convergence of Parallel Architectures Todd C. Mowry CS 495 January 17, 2002.
#1 lec # 2 Fall Conventional Computer Architecture Abstraction Conventional computer architecture has two aspects: 1 The definition of critical.
Diversity and Convergence of Parallel Architectures Muhamed Mudawar Computer Engineering Department King Fahd University of Petroleum and Minerals.
CMSC 611: Advanced Computer Architecture Shared Memory Most slides adapted from David Patterson. Some from Mohomed Younis.
Lecture 13 Parallel Processing. 2 What is Parallel Computing? Traditionally software has been written for serial computation. Parallel computing is the.
Feeding Parallel Machines – Any Silver Bullets? Novica Nosović ETF Sarajevo 8th Workshop “Software Engineering Education and Reverse Engineering” Durres,
COMP7330/7336 Advanced Parallel and Distributed Computing Data Parallelism Dr. Xiao Qin Auburn University
CMPE655 - Shaaban #1 lec # 2 Fall Conventional Computer Architecture Abstraction Conventional computer architecture has two aspects: 1 The.
Parallel programs Inf-2202 Concurrent and Data-intensive Programming Fall 2016 Lars Ailo Bongo
Group Members Hamza Zahid (131391) Fahad Nadeem khan Abdual Hannan AIR UNIVERSITY MULTAN CAMPUS.
Auburn University COMP7330/7336 Advanced Parallel and Distributed Computing Fundamental Design Issues Dr. Xiao Qin Auburn.
These slides are based on the book:
Convergence of Parallel Architectures
Auburn University COMP8330/7330/7336 Advanced Parallel and Distributed Computing Parallel Hardware Dr. Xiao Qin Auburn.
CS 704 Advanced Computer Architecture
Modularity Most useful abstractions an OS wants to offer can’t be directly realized by hardware Modularity is one technique the OS uses to provide better.
COMPUTER GRAPHICS CHAPTER 38 CS 482 – Fall 2017 GRAPHICS HARDWARE
18-447: Computer Architecture Lecture 30B: Multiprocessors
CMSC 611: Advanced Computer Architecture
Distributed Shared Memory
CS5102 High Performance Computer Systems Thread-Level Parallelism
Parallel Computers Definition: “A parallel computer is a collection of processing elements that cooperate and communicate to solve large problems fast.”
CS 704 Advanced Computer Architecture
Cache Memory Presentation I
Conventional Computer Architecture Abstraction
CMSC 611: Advanced Computer Architecture
Architecture of Parallel Computers CSC / ECE 506 Summer 2006 Scalable Programming Models Lecture 11 6/19/2006 Dr Steve Hunter.
Lecture 1: Parallel Architecture Intro
Convergence of Parallel Architectures
Multiprocessors - Flynn’s taxonomy (1966)
CS 213: Parallel Processing Architectures
Computer Science Division
Parallel Processing Architectures
Lecture 24: Memory, VM, Multiproc
CS 213 Lecture 11: Multiprocessor 3: Directory Organization
Parallel Computer Architecture
Latency Tolerance: what to do when it just won’t go away
Design Alternatives for SAS: The Beauty of Mobile Homes
Chapter 4 Multiprocessors
Lecture 24: Virtual Memory, Multiprocessors
Lecture 23: Virtual Memory, Multiprocessors
The University of Adelaide, School of Computer Science
COMPUTER ORGANIZATION AND ARCHITECTURE
Presentation transcript:

Fundamental Design Issues CS 258, Spring 99 David E. Culler Computer Science Division U.C. Berkeley CS258 S99

Recap: Toward Architectural Convergence Evolution and role of software have blurred boundary Send/recv supported on SAS machines via buffers Can construct global address space on MP (GA -> P | LA) Page-based (or finer-grained) shared virtual memory Hardware organization converging too Tighter NI integration even for MP (low-latency, high-bandwidth) Hardware SAS passes messages Even clusters of workstations/SMPs are parallel systems Emergence of fast system area networks (SAN) Programming models distinct, but organizations converging Nodes connected by general network and communication assists Implementations also converging, at least in high-end machines 1/27/99 CS258 S99-3

Convergence: Generic Parallel Architecture Node: processor(s), memory system, plus communication assist Network interface and communication controller Scalable network Convergence allows lots of innovation, within framework Integration of assist with node, what operations, how efficiently... 1/27/99 CS258 S99-3

Data Parallel Systems Programming model Architectural model Operations performed in parallel on each element of data structure Logically single thread of control, performs sequential or parallel steps Conceptually, a processor associated with each data element Architectural model Array of many simple, cheap processors with little memory each Processors don’t sequence through instructions Attached to a control processor that issues instructions Specialized and general communication, cheap global synchronization Original motivations Matches simple differential equation solvers Centralize high cost of instruction fetch/sequencing 1/27/99 CS258 S99-3

Application of Data Parallelism Each PE contains an employee record with his/her salary If salary > 100K then salary = salary *1.05 else salary = salary *1.10 Logically, the whole operation is a single step Some processors enabled for arithmetic operation, others disabled Other examples: Finite differences, linear algebra, ... Document searching, graphics, image processing, ... Some recent machines: Thinking Machines CM-1, CM-2 (and CM-5) Maspar MP-1 and MP-2, 1/27/99 CS258 S99-3

Connection Machine (Tucker, IEEE Computer, Aug. 1988) 1/27/99 CS258 S99-3

Flynn’s Taxonomy # instruction x # Data Everything is MIMD! Single Instruction Single Data (SISD) Single Instruction Multiple Data (SIMD) Multiple Instruction Single Data Multiple Instruction Multiple Data (MIMD) Everything is MIMD! 1/27/99 CS258 S99-3

Evolution and Convergence SIMD Popular when cost savings of centralized sequencer high 60s when CPU was a cabinet Replaced by vectors in mid-70s More flexible w.r.t. memory layout and easier to manage Revived in mid-80s when 32-bit datapath slices just fit on chip Simple, regular applications have good locality Programming model converges with SPMD (single program multiple data) need fast global synchronization Structured global address space, implemented with either SAS or MP 1/27/99 CS258 S99-3

CM-5 Repackaged SparcStation Fat-Tree network 4 per board Fat-Tree network Control network for global synchronization 1/27/99 CS258 S99-3

Systolic Arrays SIMD Generic Architecture Message Passing Dataflow Shared Memory 1/27/99 CS258 S99-3

Dataflow Architectures Represent computation as a graph of essential dependences Logical processor at each node, activated by availability of operands Message (tokens) carrying tag of next instruction sent to next processor Tag compared with others in matching store; match fires execution 1/27/99 CS258 S99-3

Evolution and Convergence Key characteristics Ability to name operations, synchronization, dynamic scheduling Problems Operations have locality across them, useful to group together Handling complex data structures like arrays Complexity of matching store and memory units Expose too much parallelism (?) Converged to use conventional processors and memory Support for large, dynamic set of threads to map to processors Typically shared address space as well But separation of progr. model from hardware (like data-parallel) Lasting contributions: Integration of communication with thread (handler) generation Tightly integrated communication and fine-grained synchronization Remained useful concept for software (compilers etc.) 1/27/99 CS258 S99-3

Systolic Architectures VLSI enables inexpensive special-purpose chips Represent algorithms directly by chips connected in regular pattern Replace single processor with array of regular processing elements Orchestrate data flow for high throughput with less memory access Different from pipelining Nonlinear array structure, multidirection data flow, each PE may have (small) local instruction and data memory SIMD? : each PE may do something different 1/27/99 CS258 S99-3

Systolic Arrays (contd.) Example: Systolic array for 1-D convolution y ( i ) = w 1 ´ x ) + 2 + 1) + 3 + 2) + 4 + 3) 8 7 6 5 in out out = in + = Practical realizations (e.g. iWARP) use quite general processors Enable variety of algorithms on same hardware But dedicated interconnect channels Data transfer directly from register to register across channel Specialized, and same problems as SIMD General purpose systems work well for same algorithms (locality etc.) 1/27/99 CS258 S99-3

Architecture Two facets of Computer Architecture: Defines Critical Abstractions especially at HW/SW boundary set of operations and data types these operate on Organizational structure that realizes these abstraction Parallel Computer Arch. = Comp. Arch + Communication Arch. Comm. Architecture has same two facets communication abstraction primitives at user/system and hw/sw boundary 1/27/99 CS258 S99-3

Layered Perspective of PCA CAD Multipr ogramming Shar ed addr ess Message passing Data parallel Database Scientific modeling Parallel applications Pr ogramming models Communication abstraction User/system boundary Compilation or library Operating systems support Communication har dwar e Physical communication medium Har e/softwar e boundary 1/27/99 CS258 S99-3

Communication Architecture User/System Interface + Organization User/System Interface: Comm. primitives exposed to user-level by hw and system-level sw Implementation: Organizational structures that implement the primitives: HW or OS How optimized are they? How integrated into processing node? Structure of network Goals: Performance Broad applicability Programmability Scalability Low Cost 1/27/99 CS258 S99-3

Communication Abstraction User level communication primitives provided Realizes the programming model Mapping exists between language primitives of programming model and these primitives Supported directly by hw, or via OS, or via user sw Lot of debate about what to support in sw and gap between layers Today: Hw/sw interface tends to be flat, i.e. complexity roughly uniform Compilers and software play important roles as bridges today Technology trends exert strong influence Result is convergence in organizational structure Relatively simple, general purpose communication primitives 1/27/99 CS258 S99-3

Understanding Parallel Architecture Traditional taxonomies not very useful Programming models not enough, nor hardware structures Same one can be supported by radically different architectures => Architectural distinctions that affect software Compilers, libraries, programs Design of user/system and hardware/software interface Constrained from above by progr. models and below by technology Guiding principles provided by layers What primitives are provided at communication abstraction How programming models map to these How they are mapped to hardware 1/27/99 CS258 S99-3

Fundamental Design Issues At any layer, interface (contract) aspect and performance aspects Naming: How are logically shared data and/or processes referenced? Operations: What operations are provided on these data Ordering: How are accesses to data ordered and coordinated? Replication: How are data replicated to reduce communication? Communication Cost: Latency, bandwidth, overhead, occupancy 1/27/99 CS258 S99-3

Sequential Programming Model Contract Naming: Can name any variable ( in virtual address space) Hardware (and perhaps compilers) does translation to physical addresses Operations: Loads, Stores, Arithmetic, Control Ordering: Sequential program order Performance Optimizations Compilers and hardware violate program order without getting caught Compiler: reordering and register allocation Hardware: out of order, pipeline bypassing, write buffers Retain dependence order on each “location” Transparent replication in caches 1/27/99 CS258 S99-3

SAS Programming Model Naming: Any process can name any variable in shared space Operations: loads and stores, plus those needed for ordering Simplest Ordering Model: Within a process/thread: sequential program order Across threads: some interleaving (as in time-sharing) Additional ordering through explicit synchronization Can compilers/hardware weaken order without getting caught? Different, more subtle ordering models also possible (discussed later) 1/27/99 CS258 S99-3

Synchronization Mutual exclusion (locks) Event synchronization Ensure certain operations on certain data can be performed by only one process at a time Room that only one person can enter at a time No ordering guarantees Event synchronization Ordering of events to preserve dependences e.g. producer —> consumer of data 3 main types: point-to-point global group 1/27/99 CS258 S99-3

Message Passing Programming Model Naming: Processes can name private data directly. No shared address space Operations: Explicit communication through send and receive Send transfers data from private address space to another process Receive copies data from process to private address space Must be able to name processes Ordering: Program order within a process Send and receive can provide pt to pt synch between processes Mutual exclusion inherent + conventional optimizations legal Can construct global address space: Process number + address within process address space But no direct operations on these names 1/27/99 CS258 S99-3

Design Issues Apply at All Layers Prog. model’s position provides constraints/goals for system In fact, each interface between layers supports or takes a position on: Naming model Set of operations on names Ordering model Replication Communication performance Any set of positions can be mapped to any other by software Let’s see issues across layers How lower layers can support contracts of programming models Performance issues 1/27/99 CS258 S99-3

Naming and Operations Naming and operations in programming model can be directly supported by lower levels, or translated by compiler, libraries or OS Example: Shared virtual address space in programming model Hardware interface supports shared physical address space Direct support by hardware through v-to-p mappings, no software layers Hardware supports independent physical address spaces Can provide SAS through OS, so in system/user interface v-to-p mappings only for data that are local remote data accesses incur page faults; brought in via page fault handlers Compilers or runtime, so above sys/user interface 1/27/99 CS258 S99-3

Naming and Operations: Msg Passing Direct support at hardware interface But match and buffering benefit from more flexibility Support at sys/user interface or above in software Hardware interface provides basic data transport (well suited) Send/receive built in sw for flexibility (protection, buffering) Choices at user/system interface: OS each time: expensive OS sets up once/infrequently, then little sw involvement each time Or lower interfaces provide SAS, and send/receive built on top with buffers and loads/stores Need to examine the issues and tradeoffs at every layer Frequencies and types of operations, costs 1/27/99 CS258 S99-3

Ordering Message passing: no assumptions on orders across processes except those imposed by send/receive pairs SAS: How processes see the order of other processes’ references defines semantics of SAS Ordering very important and subtle Uniprocessors play tricks with ordering to gain parallelism or locality These are more important in multiprocessors Need to understand which old tricks are valid, and learn new ones How programs behave, what they rely on, and hardware implications 1/27/99 CS258 S99-3

Replication Reduces data transfer/communication depends on naming model Uniprocessor: caches do it automatically Reduce communication with memory Message Passing naming model at an interface receive replicates, giving a new name Replication is explicit in software above that interface SAS naming model at an interface A load brings in data, and can replicate transparently in cache OS can do it at page level in shared virtual address space No explicit renaming, many copies for same name: coherence problem in uniprocessors, “coherence” of copies is natural in memory hierarchy 1/27/99 CS258 S99-3

Communication Performance Performance characteristics determine usage of operations at a layer Programmer, compilers etc make choices based on this Fundamentally, three characteristics: Latency: time taken for an operation Bandwidth: rate of performing operations Cost: impact on execution time of program If processor does one thing at a time: bandwidth µ 1/latency But actually more complex in modern systems Characteristics apply to overall operations, as well as individual components of a system 1/27/99 CS258 S99-3

Simple Example Component performs an operation in 100ns Simple bandwidth: 10 Mops Internally pipeline depth 10 => bandwidth 100 Mops Rate determined by slowest stage of pipeline, not overall latency Delivered bandwidth on application depends on initiation frequency Suppose application performs 100 M operations. What is cost? op count * op latency gives 10 sec (upper bound) op count / peak op rate gives 1 sec (lower bound) assumes full overlap of latency with useful work, so just issue cost if application can do 50 ns of useful work before depending on result of op, cost to application is the other 50ns of latency 1/27/99 CS258 S99-3

Linear Model of Data Transfer Latency Transfer time (n) = T0 + n/B useful for message passing, memory access, vector ops etc As n increases, bandwidth approaches asymptotic rate B How quickly it approaches depends on T0 Size needed for half bandwidth (half-power point): n1/2 = T0 / B But linear model not enough When can next transfer be initiated? Can cost be overlapped? Need to know how transfer is performed 1/27/99 CS258 S99-3

Communication Cost Model Comm Time per message= Overhead + Assist Occupancy + Network Delay + Size/Bandwidth + Contention = ov + oc + l + n/B + Tc Overhead and assist occupancy may be f(n) or not Each component along the way has occupancy and delay Overall delay is sum of delays Overall occupancy (1/bandwidth) is biggest of occupancies Comm Cost = frequency * (Comm time - overlap) General model for data transfer: applies to cache misses too 1/27/99 CS258 S99-3

Summary of Design Issues Functional and performance issues apply at all layers Functional: Naming, operations and ordering Performance: Organization latency, bandwidth, overhead, occupancy Replication and communication are deeply related Management depends on naming model Goal of architects: design against frequency and type of operations that occur at communication abstraction, constrained by tradeoffs from above or below Hardware/software tradeoffs 1/27/99 CS258 S99-3