Lecture 2 Parallel Programming Platforms Parallel Computing Fall

  • Slides: 53
Download presentation
Lecture 2 Parallel Programming Platforms Parallel Computing Fall 2008 1

Lecture 2 Parallel Programming Platforms Parallel Computing Fall 2008 1

Implicit Parallelism: Trends in Microprocessor Architectures n n n Microprocessor clock speeds have posted

Implicit Parallelism: Trends in Microprocessor Architectures n n n Microprocessor clock speeds have posted impressive gains over the past two decades (two to three orders of magnitude). Higher levels of device integration have made available a large number of transistors. The question of how best to utilize these resources is an important one. Current processors use these resources in multiple functional units and execute multiple instructions in the same cycle. The precise manner in which these instructions are selected and executed provides impressive diversity in architectures. 2

Implicit Parallelism n n Pipelining and Superscalar execution Very Long Instruction Word Processors 3

Implicit Parallelism n n Pipelining and Superscalar execution Very Long Instruction Word Processors 3

Pipelining and Superscalar Execution n Pipelining overlaps various stages of instruction execution to achieve

Pipelining and Superscalar Execution n Pipelining overlaps various stages of instruction execution to achieve performance. At a high level of abstraction, an instruction can be executed while the next one is being decoded and the next one is being fetched. This is akin to an assembly line for manufacture of cars. 4

Pipelining and Superscalar Execution n Limitations: n n The speed of a pipeline is

Pipelining and Superscalar Execution n Limitations: n n The speed of a pipeline is eventually limited by the slowest stage. For this reason, conventional processors rely on very deep pipelines (20 stage pipelines in state-ofthe-art Pentium processors). However, in typical program traces, every 5 -6 th instruction is a conditional jump! This requires very accurate branch prediction. The penalty of a misprediction grows with the depth of the pipeline, since a larger number of instructions will have to be flushed. 5

Pipelining and Superscalar Execution n n One simple way of alleviating these bottlenecks is

Pipelining and Superscalar Execution n n One simple way of alleviating these bottlenecks is to use multiple pipelines. The question then becomes one of selecting these instructions. 6

Superscalar Execution: An Example of a two-way superscalar execution of instructions. 7

Superscalar Execution: An Example of a two-way superscalar execution of instructions. 7

Superscalar Execution n Scheduling of instructions is determined by a number of factors: n

Superscalar Execution n Scheduling of instructions is determined by a number of factors: n n n True Data Dependency: The result of one operation is an input to the next. Resource Dependency: Two operations require the same resource. Branch Dependency: Scheduling instructions across conditional branch statements cannot be done deterministically a-priori. The scheduler, a piece of hardware looks at a large number of instructions in an instruction queue and selects appropriate number of instructions to execute concurrently based on these factors. The complexity of this hardware is an important constraint on superscalar processors. 8

Very Long Instruction Word (VLIW) Processors n n n The hardware cost and complexity

Very Long Instruction Word (VLIW) Processors n n n The hardware cost and complexity of the superscalar scheduler is a major consideration in processor design. To address this issues, VLIW processors rely on compile time analysis to identify and bundle together instructions that can be executed concurrently. These instructions are packed and dispatched together, and thus the name very long instruction word. This concept was used with some commercial success in the Multiflow Trace machine (circa 1984). Variants of this concept are employed in the Intel IA 64 processors. 9

Very Long Instruction Word (VLIW) Processors: Considerations n n n Issue hardware is simpler.

Very Long Instruction Word (VLIW) Processors: Considerations n n n Issue hardware is simpler. Compiler has a bigger context from which to select co -scheduled instructions. Compilers, however, do not have runtime information such as cache misses. Scheduling is, therefore, inherently conservative. Branch and memory prediction is more difficult. VLIW performance is highly dependent on the compiler. A number of techniques such as loop unrolling, speculative execution, branch prediction are critical. Typical VLIW processors are limited to 4 -way to 8 way parallelism. 10

Limitations of Memory System Performance n n Memory system, and not processor speed, is

Limitations of Memory System Performance n n Memory system, and not processor speed, is often the bottleneck for many applications. Memory system performance is largely captured by two parameters, latency and bandwidth. Latency is the time from the issue of a memory request to the time the data is available at the processor. Bandwidth is the rate at which data can be pumped to the processor by the memory system. 11

Improving Effective Memory Latency Using Caches n n n Caches are small and fast

Improving Effective Memory Latency Using Caches n n n Caches are small and fast memory elements between the processor and DRAM. This memory acts as a low-latency high-bandwidth storage. If a piece of data is repeatedly used, the effective latency of this memory system can be reduced by the cache. The fraction of data references satisfied by the cache is called the cache hit ratio of the computation on the system. Cache hit ratio achieved by a code on a memory system often determines its performance. 12

Memory System Performance: Summary n n n Exploiting spatial and temporal locality in applications

Memory System Performance: Summary n n n Exploiting spatial and temporal locality in applications is critical for amortizing memory latency and increasing effective memory bandwidth. The ratio of the number of operations to number of memory accesses is a good indicator of anticipated tolerance to memory bandwidth. Memory layouts and organizing computation appropriately can make a significant impact on the spatial and temporal locality. 13

Alternate Approaches for Hiding Memory Latency n n n Prefetching Multithreading Spatial locality in

Alternate Approaches for Hiding Memory Latency n n n Prefetching Multithreading Spatial locality in accessing memory words. 14

Tradeoffs of Multithreading and Prefetching n n Bandwidth requirements of a multithreaded system may

Tradeoffs of Multithreading and Prefetching n n Bandwidth requirements of a multithreaded system may increase very significantly because of the smaller cache residency of each thread. Multithreaded systems become bandwidth bound instead of latency bound. Multithreading and prefetching only address the latency problem and may often exacerbate the bandwidth problem. Multithreading and prefetching also require significantly more hardware resources in the form of storage. 15

Explicitly Parallel Platforms 16

Explicitly Parallel Platforms 16

Flynn’s taxonomy of computer architectures (control mechanism) n Depending on the execution and data

Flynn’s taxonomy of computer architectures (control mechanism) n Depending on the execution and data streams computer architectures can be distinguished into the following groups. n n (1) SISD (Single Instruction Single Data) : This is a sequential computer. (2) SIMD (Single Instruction Multiple Data) : This is a parallel machine like the TM CM-200. SIMD machines are suited for data-parallel programs where the same set of instructions are executed on a large data set. n n n Some of the earliest parallel computers such as the Illiac IV, MPP, DAP, CM-2, and Mas. Par MP-1 belonged to this class of machines (3) MISD (Multiple Instructions Single Data) : Some consider a systolic array a member of this group. (4) MIMD (Multiple Instructions Multiple Data) : All other parallel machines. A MIMD architecture can be an MPMD or an SPMD. In a Multiple Program Multiple Data organization, each processor executes its own program as opposed to a single program that is executed by all processors on a Single Program Multiple Data architecture. n Examples of such platforms include current generation Sun Ultra Servers, SGI Origin Servers, multiprocessor PCs, workstation clusters, and the IBM SP Note: Some consider CM-5 as a combination of a MIMD and SIMD as it contains control hardware that allows it to operatein a SIMD mode. 17

SIMD and MIMD Processors A typical SIMD architecture (a) and a typical MIMD architecture

SIMD and MIMD Processors A typical SIMD architecture (a) and a typical MIMD architecture (b). 18

Taxonomy based on Address-Space Organization (memory distribution) n Message-Passing Architecture n n n In

Taxonomy based on Address-Space Organization (memory distribution) n Message-Passing Architecture n n n In a distributed memory machine each processor has its own memory. Each processor can access its own memory faster than it can access the memory of a remote processor (NUMA for Non-Uniform Memory Access). This architecture is also known as message-passing architecture and such machines are commonly referred to as multicomputers. Examples: Cray T 3 D/T 3 E, IBM SP 1/SP 2, workstation clusters. Shared-Address-Space Architecture n n Provides hardware support for read/write to a shared address space. Machines built this way are often called multiprocessors. (1) A shared memory machine has a single address space shared by all processors (UMA, for Uniform Memory Access). n n n The time taken by a processor to access any memory word in the system is identical. Examples: SGI Power Challenge, SMP machines. (2) A distributed shared memory system is a hybrid between the two previous ones. A global address space is shared among the processors but is distributed among them. Example: SGI Origin 2000 Note: The existence of a cache in shared-memory parallel machines cause cache coherence problems when a cached variable is modified by a processor and the shared-variable is requested by another processor. cc-NUMA for cachecoherent NUMA architectures (Origin 2000). 19

NUMA and UMA Shared-Address. Space Platforms Typical shared-address-space architectures: (a) Uniform-memory access shared-address-space computer;

NUMA and UMA Shared-Address. Space Platforms Typical shared-address-space architectures: (a) Uniform-memory access shared-address-space computer; (b) Uniform-memoryaccess shared-address-space computer with caches and memories; (c) Non-uniform-memory-access shared-address-space computer with local memory only. 20

Message Passing vs. Shared Address Space Platforms n n Message passing requires little hardware

Message Passing vs. Shared Address Space Platforms n n Message passing requires little hardware support, other than a network. Shared address space platforms can easily emulate message passing. The reverse is more difficult to do (in an efficient manner). 21

Taxonomy based on processor granularity n The granularity sometimes refers to the power of

Taxonomy based on processor granularity n The granularity sometimes refers to the power of individual processors. Sometimes is also used to denote the degree of parallelism. n (1) A coarse-grained architecture consists of (usually few) n n n powerful processors (eg old Cray machines). (2) a fine-grained architecture consists of (usually many inexpensive) processors (eg TM CM-200, CM-2). (3) a medium-grained architecture is between the two (eg CM-5). Process Granularity refers to the amount of computation assigned to a particular processor of a parallel machine for a given parallel program. It also refers, within a single program, to the amount of computation performed before communication is issued. If the amount of computation is small (low degree of concurrency) a process is fine-grained. Otherwise granularity is coarse. 22

Taxonomy based on processor synchronization n (1) In a fully synchronous system a global

Taxonomy based on processor synchronization n (1) In a fully synchronous system a global clock is used to synchronize all operations performed by the processors. (2) An asynchronous system lacks any synchronization facilities. Processor synchronization needs to be explicit in a user’s program. (3) A bulk-synchronous system comes in between a fully synchronous and an asynchronous system. Synchronization of processors is required only at certain parts of the execution of a parallel program. 23

Physical Organization of Parallel Platforms – ideal architecture(PRAM) n n n The Parallel Random

Physical Organization of Parallel Platforms – ideal architecture(PRAM) n n n The Parallel Random Access Machine (PRAM) is one of the simplest ways to model a parallel computer. A PRAM consists of a collection of (sequential) processors that can synchronously access a global shared memory in unit time. Each processor can thus access its shared memory as fast (and efficiently) as it can access its own local memory. The main advantages of the PRAM is its simplicity in capturing parallelism and abstracting away communication and synchronization issues related to parallel computing. n n n Processors are considered to be in abundance and unlimited in number. The resulting PRAM algorithms thus exhibit unlimited parallelism (number of processors used is a function of problem size). The abstraction thus offered by the PRAM is a fully synchronous collection of processors and a shared memory which makes it popular for parallel algorithm design. It is, however, this abstraction that also makes the PRAM unrealistic from a practical point of view. n n n Full synchronization offered by the PRAM is too expensive and time demanding in parallel machines currently in use. Remote memory (i. e. shared memory) access is considerably more expensive in real machines than local memory access UMA machines with unlimited parallelism are difficult to build. 24

Four Subclasses of PRAM n Depending on how concurrent access to a single memory

Four Subclasses of PRAM n Depending on how concurrent access to a single memory cell (of the shared memory) is resolved, there are various PRAM variants. n n n ER (Exclusive Read) or EW (Exclusive Write) PRAMs do not allow concurrent access of the shared memory. It is allowed, however, for CR (Concurrent Read) or CW (Concurrent Write) PRAMs. Combining the rules for read and write access there are four PRAM variants: n EREW: n n n CREW n n Multiple read accesses to a memory location are allowed. Multiple write accesses to a memory location are serialized. ERCW n n n access to a memory location is exclusive. No concurrent read or write operations are allowed. Weakest PRAM model Multiple write accesses to a memory location are allowed. Multiple read accesses to a memory location are serialized. Can simulate an EREW PRAM CRCW n n n Allows multiple read and write accesses to a common memory location. Most powerful PRAM model Can simulate both EREW PRAM and CREW PRAM 25

Resolve concurrent write access n n (1) in the arbitrary PRAM, if multiple processors

Resolve concurrent write access n n (1) in the arbitrary PRAM, if multiple processors write into a single shared memory cell, then an arbitrary processor succeeds in writing into this cell. (2) in the common PRAM, processors must write the same value into the shared memory cell. (3) in the priority PRAM the processor with the highest priority (smallest or largest indexed processor) succeeds in writing. (4) in the combining PRAM if more than one processors write into the same memory cell, the result written into it depends on the combining operator. If it is the sum operator, the sum of the values is written, if it is the maximum operator the maximum is written. Note: An algorithm designed for the common PRAM can be executed on a priority or arbitrary PRAM and exhibit similar complexity. The same holds for an arbitrary PRAM algorithm when run on a priority PRAM. 26

Innerconnection Networks for Parallel Computers n n Interconnection networks carry data between processors and

Innerconnection Networks for Parallel Computers n n Interconnection networks carry data between processors and to memory. Interconnects are made of switches and links (wires, fiber). Interconnects are classified as static or dynamic. Static networks n n n Consists of point-to-point communication links among processing nodes Also referred to as direct networks Dynamic networks n n Built using switches (switching element) and links Communication links are connected to one another dynamically by the switches to establish paths among processing nodes and memory banks. 27

Static and Dynamic Interconnection Networks Classification of interconnection networks: (a) a static network; and

Static and Dynamic Interconnection Networks Classification of interconnection networks: (a) a static network; and (b) a dynamic network. 28

Network Topologies n Bus-Based Networks n n The simplest network that consists a shared

Network Topologies n Bus-Based Networks n n The simplest network that consists a shared medium(bus) that is common to all the nodes. The distance between any two nodes in the network is constant (O(1)). Ideal for broadcasting information among nodes. Scalable in terms of cost, but not scalable in terms of performance. n n n The bounded bandwidth of a bus places limitations on the overall performance as the number of nodes increases. Typical bus-based machines are limited to dozens of nodes. Sun Enterprise servers and Intel Pentium based shared-bus multiprocessors are examples of such architectures 29

Network Topologies n Crossbar Networks n n Employs a grid of switches or switching

Network Topologies n Crossbar Networks n n Employs a grid of switches or switching nodes to connect p processors to b memory banks. Nonblocking network: n n n the connection of a processing node to a memory bank doesnot block the connection of any other processing nodes to other memory banks. The total number of switching nodes required is Θ(pb). (It is reasonable to assume b>=p) Scalable in terms of performance Not scalable in terms of cost. Examples of machines that employ crossbars include the Sun Ultra HPC 10000 and the Fujitsu VPP 500 30

Network Topologies: Multistage Network n Multistage Networks n n n Intermediate class of networks

Network Topologies: Multistage Network n Multistage Networks n n n Intermediate class of networks between bus-based network and crossbar network Blocking networks: access to a memory bank by a processor may disallow access to another memory bank by another processor. More scalable than the bus-based network in terms of performance, more scalable than crossbar network in terms of cost. The schematic of a typical multistage interconnection network. 31

Network Topologies: Multistage Omega Network n Omega network n n Consists of log p

Network Topologies: Multistage Omega Network n Omega network n n Consists of log p stages, p is the number of inputs(processing nodes) and also the number of outputs(memory banks) Each stage consists of an interconnection pattern that connects p inputs and p outputs: n n Each switch has two conncetion modes: n n n Perfect shuffle(left rotation): Pass-thought conncetion: the inputs are sent straight through to the outputs Cross-over connection: the inputs to the switching node are crossed over and then sent out. Has p/2*log p switching nodes 32

Network Topologies: Multistage Omega Network A complete Omega network with the perfect shuffle interconnects

Network Topologies: Multistage Omega Network A complete Omega network with the perfect shuffle interconnects and switches can now be illustrated: A complete omega network connecting eight inputs and eight outputs. An omega network has p/2 × log p switching nodes, and the cost of such a network grows as (p log p). 33

Network Topologies: Multistage Omega Network – Routing n n Let s be the binary

Network Topologies: Multistage Omega Network – Routing n n Let s be the binary representation of the source and d be that of the destination processor. The data traverses the link to the first switching node. If the most significant bits of s and d are the same, then the data is routed in pass-through mode by the switch else, it switches to crossover. This process is repeated for each of the log p switching stages. Note that this is not a non-blocking switch. 34

Network Topologies: Multistage Omega Network – Routing An example of blocking in omega network:

Network Topologies: Multistage Omega Network – Routing An example of blocking in omega network: one of the messages (010 to 111 or 110 to 100) is blocked at link AB. 35

Network Topologies - Fixed Connection Networks (static) n n n n n Completely-connection Network

Network Topologies - Fixed Connection Networks (static) n n n n n Completely-connection Network Star-Connected Network Linear array 2 d-array or 2 d-mesh or mesh 3 d-mesh Complete Binary Tree (CBT) 2 d-Mesh of Trees Hypercube Butterfly 36

Evaluating Static Interconnection Network n One can view an interconnection network as a graph

Evaluating Static Interconnection Network n One can view an interconnection network as a graph whose nodes correspond to processors and its edges to links connecting neighboring processors. The properties of these interconnection networks can be described in terms of a number of criteria. n (1) Set of processor nodes V. The cardinality of V is the number of processors p (also denoted by n). n (2) Set of edges E linking the processors. An edge e = (u, v) is represented by a pair (u, v) of nodes. If the graph G = (V, E) is directed, this means that there is a unidirectional link from processor u to v. If the graph is undirected, the link is bidirectional. In almost all n networks that will be considered in this course communication links will be bidirectional. The exceptions will be clearly distinguished. (3) The degree du of node u is the number of links containing u as an endpoint. If graph G is directed we distinguish between the out-degree of u (number of pairs (u, v) ∈ E, for any v ∈ V ) and similarly, the indegree of u. T he degree d of graph G is the maximum of the degrees of its nodes i. e. d = maxudu. 37

Evaluating Static Interconnection Network (cont. ) n n (4) The diameter D of graph

Evaluating Static Interconnection Network (cont. ) n n (4) The diameter D of graph G is the maximum of the lengths of the shortest paths linking any two nodes of G. A shortest path between u and v is the path of minimal length linking u and v. We denote the length of this shortest path by duv. Then, D = maxu, vduv. The diameter of a graph G denotes the maximum delay (in terms of number of links traversed) that will be incurred when a packet is transmitted from one node to the other of the pair that contributes to D (i. e. from u to v or the other way around, if D = duv). Of course such a delay would hold if messages follow shortest paths (the case for most routing algorithms). (5) latency is the total time to send a message including software overhead. Message latency is the time to send a zero-length message. (6) bandwidth is the number of bits transmitted in unit time. (7) bisection width is the number of links that need to be removed from G to split the nodes into two sets of about the same size (± 1). 38

Network Topologies - Fixed Connection Networks (static) n Completely-connection Network n n n Each

Network Topologies - Fixed Connection Networks (static) n Completely-connection Network n n n Each node has a direct communication link to every other node in the network. Ideal in the sense that a node can send a message to another node in a single step. Static counterpart of crossbar switching networks Nonblocking Star-Connected Network n n n One processor acts as the central processor. Every other processor has a communication link connecting it to this central processor. Similar to bus-based network. The central processor is the bottleneck. 39

Network Topologies: Completely Connected and Star Connected Networks Example of an 8 -node completely

Network Topologies: Completely Connected and Star Connected Networks Example of an 8 -node completely connected network. (a) A completely-connected network of eight nodes; (b) a star connected network of nine nodes. 40

Network Topologies - Fixed Connection Networks (static) n Linear array n n n 2

Network Topologies - Fixed Connection Networks (static) n Linear array n n n 2 d-array or 2 d-mesh or mesh n n n The processors are ordered to form a 2 -dimensional structure (square) so that each processor is connected to its four neighbor (north, south, east, west) except perhaps for the processors of the boundary. Extension of linear array to two-dimensions: Each dimension has p nodes with a node identified by a two-tuple (i, j). 3 d-mesh n n In a linear array, each node(except the two nodes at the ends) has two neighbors, one each to its left and right. Extension: ring or 1 -D torus(linear array with wraparound). A generalization of a 2 d-mesh in three dimensions. Exercise: Find the characteristics of this network and its generalization in k dimensions (k > 2). Complete Binary Tree (CBT) n n There is only one path between any pair of two nodes Static tree network: have a processing element at each node of the tree. Dynamic tree network: nodes at intermediate levels are switching nodes and the leaf nodes are processing elements. Communication bottleneck at higher levels of the tree. n Solution: increasing the number of communication links and switching nodes closer to the root. 41

Network Topologies: Linear Arrays Linear arrays: (a) with no wraparound links; (b) with wraparound

Network Topologies: Linear Arrays Linear arrays: (a) with no wraparound links; (b) with wraparound link. 42

Network Topologies: Two- and Three Dimensional Meshes Two and three dimensional meshes: (a) 2

Network Topologies: Two- and Three Dimensional Meshes Two and three dimensional meshes: (a) 2 -D mesh with no wraparound; (b) 2 -D mesh with wraparound link (2 -D torus); and (c) a 3 -D mesh with no wraparound. 43

Network Topologies: Tree-Based Networks Complete binary tree networks: (a) a static tree network; and

Network Topologies: Tree-Based Networks Complete binary tree networks: (a) a static tree network; and (b) a dynamic tree network. 44

Network Topologies: Fat Trees A fat tree network of 16 processing nodes. 45

Network Topologies: Fat Trees A fat tree network of 16 processing nodes. 45

Evaluating Network Topologies n n Linear array n |V | = N, |E| =

Evaluating Network Topologies n n Linear array n |V | = N, |E| = N − 1, d = 2, D = N − 1, bw = 1 (bisection width). 2 d-array or 2 d-mesh or mesh n For |V | = N, we have a √N ×√N mesh structure, with |E| ≤ 2 N = O(N), d = 4, D = 2√N − 2, bw = √N. 3 d-mesh n Exercise: Find the characteristics of this network and its generalization in k dimensions (k > 2). Complete Binary Tree (CBT) on N = 2 n leaves n For a complete binary tree on N leaves, we define the level of a node to be its distance from the root. The root is of level 0 and the number of nodes of level i is 2 i. Then, |V | = 2 N − 1, |E| ≤ 2 N − 2 = O(N), d = 3, D = 2 lg. N, bw = 1(c) 46

Network Topologies - Fixed Connection Networks (static) n 2 d-Mesh of Trees 2 2

Network Topologies - Fixed Connection Networks (static) n 2 d-Mesh of Trees 2 2 n An N -leaf 2 d-MOT consists of N nodes ordered as in a 2 d-array N ×N (but without the links). The N rows and N columns of the 2 d. MOT form N row CBT and N column CBTs respectively. 2 2 n For such a network, |V | = N +2 N(N − 1), |E| = O(N ), d = 3, D = 4 lg. N, bw = N. The 2 d-MOT possesses an interesting decomposition property. If the 2 N roots of the CBT’s are removed we get 4 N/2 × N/2 CBT s. n n The 2 d-Mesh of Trees (2 d-MOT) combines the advantages of 2 dmeshes and binary trees. A 2 d-mesh has large bisection width but large diameter (√N). On the other hand a binary tree on N leaves has small bisection width but small diameter. The 2 d-MOT has small diameter and large bisection width. A 3 d-MOTcan be defined similarly. 47

Network Topologies - Fixed Connection Networks (static) n Hypercube n n n The hypercube

Network Topologies - Fixed Connection Networks (static) n Hypercube n n n The hypercube is the major representative of a class of networks that are called hypercubic networks. Other such networks is the butterfly, the shuffle-exchange graph, de-Bruijn graph, Cube-connected cycles etc. Each vertex of an n-dimensional hypercube is represented by a binary string of length n. Therefore there are |V | = 2 n = N vertices in such a hypercube. Two vertices are connected by an edge if their strings differ in exactly one bit position. Let u = u 1 u 2. . . ui. . . un. An edge is a dimension i edge if it links two nodes that differ in the i-th bit position. This way vertex u is connected to vertex ui= u 1 u 2. . . ūi. . . un with a dimension i edge. Therefore |E| = N lg N/2 and d = lg. N = n. The hypercube is the first network examined so far that has degree that is not a constant but a very slowly growing function of N. The diameter of the hypercube is D = lg. N. A path from node u to node v can be determined by correcting the bits of u to agree with those of v starting from dimension 1 in a “left-to-right” fashion. The bisection width of the hypercube is bw = N. This is a result of the following property of the hypercube. If all edges of dimension i are removed from an n dimensional hypercube, we get two hypercubes each one of dimension n − 1. 48

Network Topologies: Hypercubes and their Construction of hypercubes from hypercubes of lower dimension. 49

Network Topologies: Hypercubes and their Construction of hypercubes from hypercubes of lower dimension. 49

Network Topologies - Fixed Connection Networks (static) n Butterfly. n n n The set

Network Topologies - Fixed Connection Networks (static) n Butterfly. n n n The set of vertices of a butterfly are represented by (w, i), where w is a binary string of length n and 0 ≤ i ≤ n. Therefore |V | = (n + 1)2 n = (lg. N + 1)N. Two vertices (w, i) and (w’, i’ ) are connected by an edge if i‘ = i + 1 and either (a) w = w’ or (b) w and w’ differ in the i’ bit. As a result |E| = O(N lg. N), d = 4, D = 2 lg. N = 2 n, and bw = N. Nodes with i = j are called level-j nodes. If we remove the nodes of level 0 we get two butterflies of size N/2. If we collapse all levels of an n dimensional butterfly into one, we get a hypercube. 50

Network Topologies - Fixed Connection Networks (static) n Other: n Other hypercubic networks is

Network Topologies - Fixed Connection Networks (static) n Other: n Other hypercubic networks is cube-connected cycles (CCC), which is a hypercube whose nodes are replaced by rings/cycles of length n so that the resulting network has constant degree). This network can also be viewed as a butterfly whose first and last levels collapse into one. For such a network |V | = N lg. N = n 2 n, |E| = 3 n 2 n− 1, d = 3, D = 2 lg. N, bw = N/2. 51

Evaluating Static Interconnection Networks Network Diameter Bisectio n. Width Arc Connectivi ty Cost (No.

Evaluating Static Interconnection Networks Network Diameter Bisectio n. Width Arc Connectivi ty Cost (No. of links) Completely-connected Star Complete binary tree Linear array 2 -D mesh, no wraparound 2 -D wraparound mesh Hypercube Wraparound k-ary dcube 52

End Thank you! 53

End Thank you! 53