Uses some of the slides for chapters 3 and 5 accompanying “Introduction to Parallel Computing”, Addison Wesley, 2003.

Slides:



Advertisements
Similar presentations
Load Balancing Parallel Applications on Heterogeneous Platforms.
Advertisements

Parallel Jacobi Algorithm Steven Dong Applied Mathematics.
2. Processes and Interactions 2.1 The Process Notion 2.2 Defining and Instantiating Processes –Precedence Relations –Implicit Process Creation –Dynamic.
Resource Management §A resource can be a logical, such as a shared file, or physical, such as a CPU (a node of the distributed system). One of the functions.
Introduction to Parallel Computing
Starting Parallel Algorithm Design David Monismith Based on notes from Introduction to Parallel Programming 2 nd Edition by Grama, Gupta, Karypis, and.
Parallel Processing (CS453). How does one decompose a task into various subtasks? While there is no single recipe that works for all problems, we present.
Distributed Process Scheduling Summery Distributed Process Scheduling Summery BY:-Yonatan Negash.
11Sahalu JunaiduICS 573: High Performance Computing5.1 Analytical Modeling of Parallel Programs Sources of Overhead in Parallel Programs Performance Metrics.
Principles of Parallel Algorithm Design
Ananth Grama, Anshul Gupta, George Karypis, and Vipin Kumar
CISC 879 : Software Support for Multicore Architectures John Cavazos Dept of Computer & Information Sciences University of Delaware
Analytical Modeling of Parallel Systems Ananth Grama, Anshul Gupta, George Karypis, and Vipin Kumar To accompany the text ``Introduction to Parallel Computing'',
1 Tuesday, September 26, 2006 Wisdom consists of knowing when to avoid perfection. -Horowitz.
On the Task Assignment Problem : Two New Efficient Heuristic Algorithms.
Principles of Parallel Algorithm Design
VLSI DSP 2008Y.T. Hwang3-1 Chapter 3 Algorithm Representation & Iteration Bound.
Virtues of Good (Parallel) Software
Graph Algorithms. Overview Graphs are very general data structures – data structures such as dense and sparse matrices, sets, multi-sets, etc. can be.
Juan Mendivelso.  Serial Algorithms: Suitable for running on an uniprocessor computer in which only one instruction executes at a time.  Parallel Algorithms:
ADLB Update Recent and Current Adventures with the Asynchronous Dynamic Load Balancing Library Rusty Lusk Mathematics and Computer Science Division Argonne.
Introduction to Parallel Programming MapReduce Except where otherwise noted all portions of this work are Copyright (c) 2007 Google and are licensed under.
Rechen- und Kommunikationszentrum (RZ) Parallelization at a Glance Christian Terboven / Aachen, Germany Stand: Version 2.3.
Parallel Processing (CS526) Spring 2012(Week 4).  Parallelism from two perspectives: ◦ Platform  Parallel Hardware Architecture  Parallel Communication.
Exercise problems for students taking the Programming Parallel Computers course. Janusz Kowalik Piotr Arlukowicz Tadeusz Puzniakowski Informatics Institute.
Multithreaded Algorithms Andreas Klappenecker. Motivation We have discussed serial algorithms that are suitable for running on a uniprocessor computer.
L21: “Irregular” Graph Algorithms November 11, 2010.
Lecture 3 – Parallel Performance Theory - 1 Parallel Performance Theory - 1 Parallel Computing CIS 410/510 Department of Computer and Information Science.
Designing and Evaluating Parallel Programs Anda Iamnitchi Federated Distributed Systems Fall 2006 Textbook (on line): Designing and Building Parallel Programs.
Performance Evaluation of Parallel Processing. Why Performance?
Chapter 3 Parallel Algorithm Design. Outline Task/channel model Task/channel model Algorithm design methodology Algorithm design methodology Case studies.
Independent Component Analysis (ICA) A parallel approach.
CS453 Lecture 3.  A sequential algorithm is evaluated by its runtime (in general, asymptotic runtime as a function of input size).  The asymptotic runtime.
Graph Algorithms. Definitions and Representation An undirected graph G is a pair (V,E), where V is a finite set of points called vertices and E is a finite.
April 26, CSE8380 Parallel and Distributed Processing Presentation Hong Yue Department of Computer Science & Engineering Southern Methodist University.
INTRODUCTION TO PARALLEL ALGORITHMS. Objective  Introduction to Parallel Algorithms Tasks and Decomposition Processes and Mapping Processes Versus Processors.
Principles of Parallel Algorithm Design Ananth Grama, Anshul Gupta, George Karypis, and Vipin Kumar To accompany the text “Introduction to Parallel Computing”,
Thinking in Parallel – Implementing In Code New Mexico Supercomputing Challenge in partnership with Intel Corp. and NM EPSCoR.
Domain decomposition in parallel computing Ashok Srinivasan Florida State University.
08/10/ NRL Hybrid QR Factorization Algorithm for High Performance Computing Architectures Peter Vouras Naval Research Laboratory Radar Division Professor.
Static Process Scheduling
CDP Tutorial 3 Basics of Parallel Algorithm Design uses some of the slides for chapters 3 and 5 accompanying “Introduction to Parallel Computing”, Addison.
Futures, Scheduling, and Work Distribution Speaker: Eliran Shmila Based on chapter 16 from the book “The art of multiprocessor programming” by Maurice.
Paper_topic: Parallel Matrix Multiplication using Vertical Data.
3/12/2013Computer Engg, IIT(BHU)1 INTRODUCTION-1.
Lecture 9 Architecture Independent (MPI) Algorithm Design
Lecture 3: Designing Parallel Programs. Methodological Design Designing and Building Parallel Programs by Ian Foster www-unix.mcs.anl.gov/dbpp.
Concurrency and Performance Based on slides by Henri Casanova.
Genetic algorithms for task scheduling problem J. Parallel Distrib. Comput. (2010) Fatma A. Omara, Mona M. Arafa 2016/3/111 Shang-Chi Wu.
COMP7330/7336 Advanced Parallel and Distributed Computing Task Partitioning Dr. Xiao Qin Auburn University
COMP7330/7336 Advanced Parallel and Distributed Computing Task Partitioning Dynamic Mapping Dr. Xiao Qin Auburn University
Mergesort example: Merge as we return from recursive calls Merge Divide 1 element 829.
COMP8330/7330/7336 Advanced Parallel and Distributed Computing Decomposition and Parallel Tasks (cont.) Dr. Xiao Qin Auburn University
CPE 779 Parallel Computing - Spring Creating and Using Threads Based on Slides by Katherine Yelick
Auburn University
PERFORMANCE EVALUATIONS
Auburn University
Parallel Tasks Decomposition
Conception of parallel algorithms
Parallel Programming By J. H. Wang May 2, 2017.
Auburn University COMP7330/7336 Advanced Parallel and Distributed Computing Mapping Techniques Dr. Xiao Qin Auburn University.
Auburn University COMP7330/7336 Advanced Parallel and Distributed Computing Data Partition Dr. Xiao Qin Auburn University.
Parallel Algorithm Design
Auburn University COMP8330/7330/7336 Advanced Parallel and Distributed Computing Communication Costs (cont.) Dr. Xiao.
EE 193: Parallel Computing
Introduction to Parallel Computing by Grama, Gupta, Karypis, Kumar
Parallelismo.
Chapter 01: Introduction
To accompany the text “Introduction to Parallel Computing”,
Presentation transcript:

uses some of the slides for chapters 3 and 5 accompanying “Introduction to Parallel Computing”, Addison Wesley,

Preliminaries: Decomposition, Tasks, and Dependency Graphs Parallel algorithm should decompose the problem into tasks that can be executed concurrently. A decomposition can be illustrated in the form of a directed graph (task dependency graph). nodes = tasks and edges = dependencies: the result of one task is required for processing the next Degree of concurrency determines the amount of tasks which can indeed run in parallel. Critical path is the longest path in the dependency graph – lower bound on program runtime.

Example: Multiplying a Dense Matrix with a Vector Observations: While tasks share data (namely, the vector b ), they do not have any control dependencies - i.e., no task needs to wait for the (partial) completion of any other. All tasks are of the same size in terms of number of operations. Is this the maximum number of tasks we could decompose this problem into? Computation of each element of output vector y is independent of other elements. Based on this, a dense matrix-vector product can be decomposed into n independent tasks. Is this the maximum number of tasks we could decompose this problem into?

Multiplying a dense matrix with a vector – 2n CPUs available Task 1 Task 2 On what kind of platform will we have 2N processors?

Multiplying a dense matrix with a vector – 2n CPUs available Task 1 Task 2 Task 2n+1 Task 1 Task 2 Task 2n+1 Task 2n-1 Task 2n Task 3n

Granularity of Task Decompositions The size of tasks into which a problem is decomposed is called granularity

Parallelization efficiency

Guidelines for good parallel algorithm design Maximize concurrency. Spread tasks evenly between processors to avoid idling and achieve load balancing. Execute tasks on critical path as soon as the dependencies are satisfied. Minimize(overlap) communication between processors.

Evaluating parallel algorithm Speedup S = T serial / T parallel Efficiency E = S / #processors Cost C = #processors * T parallel Scalability Speedup (efficiency) as a function of number of processors with fixed task size.

Simple example: summing n numbers on p CPUs

Summing n numbers on p CPUs Parallel Time = θ((n/p)log p) Serial Time = θ(n) Speedup = θ(p/(log p)) Efficiency = θ(1/log p)

Parallel multiplication of 3 matrices A, B, C – rectangular matrices N x N We want to compute in parallel: A x B x C How to achieve the maximum performance?

A B TEMP X C Result X Try 1 2-CPU parallelization:

A B C' X C Result X Try 2 3-CPU parallelization: Is this a good way?

A(1,1)*B(1,1) A(1,2)*B(2,1) A(1,1)*B(1,2) A(1,2)*B(2,2) T(1,1)*C(1,1) T(2,1)*C(2,1) Result(1,1) Dynamic task creation - Simple Master-Worker Identify independent computations Create a queue of tasks Each process picks from the queue and may insert a new task to the queue

Hypothetic implementation by multiple threads Let's assign separate thread for each multiply/sum operation. How do we coordinate the threads? Initialize threads to know their dependencies. Build “producer-consumer” like logic for every thread.