Computer Science and Engineering Parallel and Distributed Processing CSE 8380 March 08, 2005 Session 16.

Slides:



Advertisements
Similar presentations
Parallel List Ranking Advanced Algorithms & Data Structures Lecture Theme 17 Prof. Dr. Th. Ottmann Summer Semester 2006.
Advertisements

PRJ566 Project Planning and Management Lecture: Network Diagrams.
Lecture 7 March 1, 11 discuss HW 2, Problem 3
Projects are unique, one-time operations designed to accomplish a specific set of objectives in a limited timeframe Project managers are responsible for.
Winter 2005ICS 252-Intro to Computer Design ICS 252 Introduction to Computer Design Lecture 5-Scheudling Algorithms Winter 2005 Eli Bozorgzadeh Computer.
Precedence Constrained Scheduling Abhiram Ranade Dept. of CSE IIT Bombay.
PERT/CPM Models for Project Management
Martha Garcia.  Goals of Static Process Scheduling  Types of Static Process Scheduling  Future Research  References.
Precedence Constrained Scheduling Abhiram Ranade Dept. of CSE IIT Bombay.
1 Material Management Class Note # 5-A ( in review ) Project Scheduling & Management Prof. Yuan-Shyi Peter Chiu Feb
Process Scheduling for Performance Estimation and Synthesis of Hardware/Software Systems Slide 1 Process Scheduling for Performance Estimation and Synthesis.
UET Multiprocessor Scheduling Problems Nan Zang
Penn ESE Fall DeHon 1 ESE (ESE534): Computer Organization Day 19: March 26, 2007 Retime 1: Transformations.
CSE 421 Algorithms Richard Anderson Lecture 6 Greedy Algorithms.
Advanced Topics in Algorithms and Data Structures 1 Two parallel list ranking algorithms An O (log n ) time and O ( n log n ) work list ranking algorithm.
1 IOE/MFG 543 Chapter 7: Job shops Sections 7.1 and 7.2 (skip section 7.3)
Scheduling Parallel Task
Lecture 5 – Gantt Chart GANTT Charts Constructing GANTT Charts
1 Scheduling CEG 4131 Computer Architecture III Miodrag Bolic Slides developed by Dr. Hesham El-Rewini Copyright Hesham El-Rewini.
Computer Science and Engineering Parallel and Distributed Processing CSE 8380 March 01, 2005 Session 14.
Unit 9.2_Lesson 2_CD Resource 2f_Plenary Gantt charts From the Gantt Chart answer the question.
Bounding Variance and Expectation of Longest Path Lengths in DAGs Jeff Edmonds, York University Supratik Chakraborty, IIT Bombay.
Introduction to Graphs. Introduction Graphs are a generalization of trees –Nodes or verticies –Edges or arcs Two kinds of graphs –Directed –Undirected.
Review for E&CE Find the minimal cost spanning tree for the graph below (where Values on edges represent the costs). 3 Ans. 18.
1 Nasser Alsaedi. The ultimate goal for any computer system design are reliable execution of task and on time delivery of service. To increase system.
1 Material Management Class Note # 6 Project Scheduling & Management Prof. Yuan-Shyi Peter Chiu Feb
The El-Rewini/Ali Scheduling of In-Forest Task Graph on Two Processors with Communication Project Presentation By David Y. Feinstein SMU - CSE 8388 Spring.
Computer Science and Engineering Parallel and Distributed Processing CSE 8380 February 10, 2005 Session 9.
Chapter 8 Scheduling © 2012 John Wiley & Sons Inc.
Static Process Scheduling Section 5.2 CSc 8320 Alex De Ruiter
Agenda Fail Stop Processors –Problem Definition –Implementation with reliable stable storage –Implementation without reliable stable storage Failure Detection.
CSC 8420 Advanced Operating Systems Georgia State University Yi Pan.
1 Job Scheduling for Grid Computing on Metacomputers Keqin Li Proceedings of the 19th IEEE International Parallel and Distributed Procession Symposium.
Optimal Algorithms for Task Scheduling Implemented by Ala Al-Nawaiseh Khaled Mahmud.
Computer Science and Engineering Parallel and Distributed Processing CSE 8380 March 03, 2005 Session 15.
Franciszek Seredynski, Damian Kurdej Polish Academy of Sciences and Polish-Japanese Institute of Information Technology APPLYING LEARNING CLASSIFIER SYSTEMS.
MSc in High Performance Computing Computational Chemistry Module Parallel Molecular Dynamics (i) Bill Smith CCLRC Daresbury Laboratory
1 EE5900 Advanced Embedded System For Smart Infrastructure Static Scheduling.
CSEP 521 Applied Algorithms Richard Anderson Winter 2013 Lecture 3.
Review for E&CE Find the minimal cost spanning tree for the graph below (where Values on edges represent the costs). 3 Ans. 18.
Project Management – Part 1. Overview What is a project? Project management techniques Activity lists Network diagrams Critical path analysis Gant charts.
Genetic algorithms for task scheduling problem J. Parallel Distrib. Comput. (2010) Fatma A. Omara, Mona M. Arafa 2016/3/111 Shang-Chi Wu.
Computer Science and Engineering Parallel and Distributed Processing CSE 8380 February Session 12.
Instruction Scheduling Copyright 2003, Keith D. Cooper, Ken Kennedy & Linda Torczon, all rights reserved.
Computer Science and Engineering Parallel and Distributed Processing CSE 8380 April 28, 2005 Session 29.
Copyright 2006 John Wiley & Sons, Inc. Beni Asllani University of Tennessee at Chattanooga Project Management Operations Management - 5 th Edition Chapter.
Greedy Algorithms.
Project Scheduling Lecture # 1.
Topological Sort (an application of DFS)
Max Flow min Cut.
Local Instruction Scheduling
Instruction Scheduling Hal Perkins Summer 2004
Lecture 21 CSE 331 Oct 21, 2016.
Lecture 21 CSE 331 Oct 20, 2017.
Instruction Scheduling Hal Perkins Winter 2008
Algorithms and Data Structures Lecture XII
Richard Anderson Lecture 6 Greedy Algorithms
Richard Anderson Autumn 2016 Lecture 7
Instruction Scheduling Hal Perkins Autumn 2005
Richard Anderson Lecture 7 Greedy Algorithms
Topological Sort (an application of DFS)
Winter 2019 Lecture 9 Dijkstra’s algorithm
Richard Anderson Winter 2019 Lecture 7
Winter 2019 Lecture 11 Minimum Spanning Trees (Part II)
Richard Anderson Autumn 2015 Lecture 7
Instruction Scheduling Hal Perkins Autumn 2011
Directed Graphs (Part II)
Richard Anderson Autumn 2019 Lecture 7
Autumn 2019 Lecture 11 Minimum Spanning Trees (Part II)
Presentation transcript:

Computer Science and Engineering Parallel and Distributed Processing CSE 8380 March 08, 2005 Session 16

Computer Science and Engineering Scheduling Sami’s Presentation Communication Models (review) Optimal Algorithms with communication Midterm review & Q/A

Computer Science and Engineering Communication Models Completion Time Execution time Communication time Completion Time as 2 Components Completion Time from the Gantt Chart

Computer Science and Engineering Completion Time as 2 Components Completion Time = Execution Time + Total Communication Delay Total Communication Delay = Number of communication messages * delay per message Execution time  maximum finishing time of any task Number of communication messages  model A Model B

Computer Science and Engineering Number of communication Messages Given a task graph G = (V,E) and its allocation on m processors f, we use proc(v) to refer to the processor to which task v is assigned. Model A: number of messages =the number of node pairs (u,v) such that (u,v)belongs to E and proc(u) ≠ proc(v). Model B: number of messages =the number of processor- task pairs (P,v) such that processor P does not compute task v but computes at least one direct successor of v.

Computer Science and Engineering Completion Time from the Gantt Chart (Model C) Completion Time = Schedule Length This model assumes the existence of an I/O processor with every processor in the system Communication delay between two tasks allocated to the same processor is negligible. Communication delay is counted only between two tasks assigned to different processors

Computer Science and Engineering Example A 1 D 1 E 1 B 1 C 1 Assume a system with 2 processors

Computer Science and Engineering Models A and B Assume tasks A, B, and D are assigned to P1 and tasks C and E are assigned to p2 A B D P1 C E P2 Model A Number of messages = 2 Completion time = Model B Number of messages = 1 Completion time = 3 + 1

Computer Science and Engineering Model C A B CD E Communication Delay P1P

Computer Science and Engineering Optimal Algorithms with Communication In-forests / out-forests on two processors Interval orders on n processors

Computer Science and Engineering In-forests / out-forests on two processors with Communication (model –C) Basic idea  Compensate e for communication cost using precedence arcs to find schedule length A 1 B 1 C 1 A 1 B 1 C 1 With communication Without communication 

Computer Science and Engineering Algorithm Main Steps Add new arcs to compensate for communication Schedule augmented graph using Hu’s algorithm Make assignment corrections Task Graph Augmented task Graph Schedule (correct length) Schedule (correct)

Computer Science and Engineering The depth of a node is defined as the length of the longest path from any node with depth zero to that node. A node with no predecessors has a depth of zero. In other words, depth(u) = 1+ max{depth(v)},  v  predecessors(u) ; and depth(u) = 0  u, predecessors(u) = . Given a schedule f, we define the operation Swapall(f,x,y), where x and y are two tasks in f scheduled to start at time t on processors i and j, respectively. The effect of this operation is to swap all the task pairs scheduled on processors i and j in the schedule f at time t 1,  t 1, t 1 ≥ t Node Depth Swapall Operation Definitions

Computer Science and Engineering Given an in-forest G = (V,A), identify the sets of siblings: S1, S2,..., Sk, where Si is the set of all nodes in V with a common child child(Si). A1 ← A 1.For every set Si i. Pick node u  Si with the maximum depth ii. A1 ← A1 - (v, child(Si)) "  v  Si and v ≠ u iii. A1 ← A1 U (v,u) "  v  Si and v ≠ u Obtain the schedule f by applying Hu’s Algorithm on the augmented in- forest F = (V,A1) Algorithm

Computer Science and Engineering For every set Si in the original in-forest G if node u (with the maximum depth) is scheduled in f in the time slot immediately before child(Si) but on a different processor, then apply the operation swapall(f,child(Si),x), where x is the task scheduled in the time slot immediately after u on the same processor. Algorithm (cont.)

Computer Science and Engineering