Docsity

Parallel Numerical Algorithms, Lecture notes of Network Design

Partial preview of the text

Download Parallel Numerical Algorithms and more Lecture notes Network Design in PDF only on Docsity!

Architectures Networks Communication

Parallel Numerical Algorithms

Chapter 1 – Parallel Computing

Michael T. Heath and Edgar Solomonik

Department of Computer Science University of Illinois at Urbana-Champaign

CS 554 / CSE 512

Architectures Networks Communication

Outline

(^1) Motivation (^2) Architectures Taxonomy Memory Organization (^3) Networks Network Topologies Graph Embedding Topology-Awareness in Algorithms (^4) Communication Message Routing Communication Concurrency Collective Communication

Architectures Networks Communication

Moore’s Law

Loosely: complexity (or capability) of microprocessors doubles every two years More precisely: number of transistors that can be fit into given area of silicon doubles every two years More precisely still: number of transistors per chip that yields minimum cost per transistor increases by factor of two every two years Does not say that microprocessor performance or clock speed doubles every two years Nevertheless, clock speed did in fact double every two years from roughly 1975 to 2005, but has now flattened at about 3 GHz due to limitations on power (heat) dissipation

Architectures Networks Communication

Moore’s Law

Architectures Networks Communication

Consequences of Moore’s Law

For given clock speed, increasing performance depends on producing more results per cycle, which can be achieved by exploiting various forms of parallelism Pipelined functional units Superscalar architecture (multiple instructions per cycle) Out-of-order execution of instructions SIMD instructions (multiple sets of operands per instruction) Memory hierarchy (larger caches and deeper hierarchy) Multicore and multithreaded processors Consequently, almost all processors today are parallel

Architectures Networks Communication

High Performance Parallel Supercomputers

Processors in today’s cell phones and automobiles are more powerful than supercomputers of twenty years ago Nevertheless, to attain extreme levels of performance (petaflops and beyond) necessary for large-scale simulations in science and engineering, many processors (often thousands to hundreds of thousands) must work together in concert This course is about how to design and analyze efficient numerical algorithms for such architectures and applications

Architectures Networks Communication

Taxonomy Memory Organization

SPMD Programming Style

SPMD (single program, multiple data): all processors execute same program, but each operates on different portion of problem data Easier to program than true MIMD, but more flexible than SIMD Although most parallel computers today are MIMD architecturally, they are usually programmed in SPMD style

Architectures Networks Communication

Taxonomy Memory Organization

Architectural Issues

Major architectural issues for parallel computer systems include

processor coordination : synchronous or asynchronous?

memory organization : distributed or shared?

address space : local or global?

memory access : uniform or nonuniform?

granularity : coarse or fine?

scalability : additional processors used efficiently?

interconnection network : topology, switching, routing?

Architectures Networks Communication

Taxonomy Memory Organization

Distributed Memory vs. Shared Memory

distributed shared memory memory scalability easier harder data mapping harder easier data integrity easier harder performance optimization easier harder incremental parallelization harder easier automatic parallelization harder easier

Hybrid systems are common, with memory shared locally within SMP (symmetric multiprocessor) nodes but distributed globally across nodes

Architectures Networks Communication

Taxonomy Memory Organization

Distributed Memory vs. Shared Memory

distributed shared memory memory scalability easier harder data mapping harder easier data integrity easier harder performance optimization easier harder incremental parallelization harder easier automatic parallelization harder easier

Hybrid systems are common, with memory shared locally within SMP (symmetric multiprocessor) nodes but distributed globally across nodes

Architectures Networks Communication

Network Topologies Graph Embedding Topology-Awareness in Algorithms

Some Common Network Topologies

bus star crossbar

1-D torus ( ring ) 2-D^ mesh^ 2-D torus

1-D mesh

Architectures Networks Communication

Network Topologies Graph Embedding Topology-Awareness in Algorithms

Some Common Network Topologies

butterfly

binary tree

0 -cube

1 -cube 2 -cube 3 -cube 4 -cube hypercubes

Architectures Networks Communication

Network Topologies Graph Embedding Topology-Awareness in Algorithms

Graph Models

Graph model of network: nodes are processors (or switches or memory units), edges are communication links

Graph model of computation: nodes are tasks, edges are data dependences between tasks

Mapping task graph of computation to network graph of target computer is instance of graph embedding

Distance between two nodes: number of edges (hops ) in shortest path between them

Architectures Networks Communication

Network Topologies Graph Embedding Topology-Awareness in Algorithms

Network Properties

Some network properties affecting its physical realization and potential performance

degree : maximum number of edges incident on any node; determines number of communication ports per processor diameter : maximum distance between any pair of nodes; determines maximum communication delay between processors bisection bandwidth : (balanced min cut) smallest number of edges whose removal splits graph into two subgraphs of equal size; determines ability to support simultaneous global communication edge length : maximum physical length of any wire; may be constant or variable as number of processors varies