Scheduling Monotone Interval Orders on Typed Task Systems

Benoˆıt Dupont de Dinechin STMicroelectronics STS/CEC 12, rue Jules Horowitz - BP 217. F-38019 Grenoble [email protected]

STMicroelectronics PlanSIG Workshop – December 2007

1

Interval Order on Typed Tasks

Presentation Outline

Result Statement We modify the Leung-Palem-Pnueli 2001 parallel machine scheduling algorithm in order to schedule UET typed task systems with monotone interval-order precedences, release dates and deadlines.

Presentation Outline • Motivations for Scheduling Typed Tasks • Monotone Interval-Order Precedences • List Scheduling with Modified Deadlines • Modified Leung-Palem-Pnueli Algorithm • Application to Instruction Scheduling PlanSIG Workshop – December 2007

2

Interval Order on Typed Tasks

Motivations for Scheduling Typed Tasks

Motivations for Scheduling Typed Tasks Compiler Instruction Scheduling and Hardware High-Level Synthesis Precedence Graph with Typed Tasks

0

111 000 1 000 111 000 111 2 111 000 000 111

3 111 000 000 111 000 111 000 111

111 000 000 111 4 000 111

111 000 5 000 111

Schedule on Two Processors of Different Types

1111 0000 0000 1111 1 0000 1111 0000 1111

1111111 0000000 0000 1111 0000000 1111111 0000 1111 4 5 0000000 1111111 0000 1111 0000000 1111111 0000 1111

1111 0000 0000000 1111111 3 2 00001111111 1111 0000000

PlanSIG Workshop – December 2007

3

Interval Order on Typed Tasks

Motivations for Scheduling Typed Tasks

Definition and Notations • Operation set {Oi }1≤i≤n and schedule dates {σi }1≤i≤n • Processing times {pi }1≤i≤n , release dates {ri }1≤i≤n : ri ≤ σi and deadlines {di }1≤i≤n : σi + pi ≤ di • m1 , . . . , mk numbers of processors with mj processors of type τj • Each Oi has a type τi and only executes on processors of type τi • Generalization of parallel machine scheduling, denoted with Σk P in the α-field of the α|β|γ denotation • Precedence constraints with delays: Oi ≺ Oj ⇒ σi + pi + lij ≤ σj , denoted with prec(lij ) in the β-field of the α|β|γ denotation • Interval-order precedences denoted intOrder in the the β-field

PlanSIG Workshop – December 2007

4

Interval Order on Typed Tasks

Motivations for Scheduling Typed Tasks

Complexity Results for Typed Task Systems • Σk P |intOrder; pi = 1|Cmax PT-solvable [Jansen 1994] • Σ2 1|chains; pi = 1|Cmax NP-hard [Jansen 1994] • Σ2 1|f orest; pi = 1|Cmax NP-hard [Jansen 1994] • Σk P |intOrder; cji = 1; pi = 1|Cmax PT-solvable [Verriet 1998] Performance of List Scheduling on Typed Task Systems • Σk P |prec|Cmax and any priority list: 1 + k −

1 maxi mi

[Jaffe 1980]

• Σk P |prec; pi = 1|Cmax and Coffman-Graham: 1 + k −

2 maxi mi

[?]

• Σk P |prec(lij ≤ z)|Cmax and any priority list: 1 + k − [Chou & Chung 1992]

1 (z+1) maxi mi

• Σk P |prec(lij ≤ z)|Cmax and special priority: 1 + k − [Chou & Chung 1993]

2 (z+1) maxi mi

PlanSIG Workshop – December 2007

5

Interval Order on Typed Tasks

Monotone Interval-Order Precedences

Monotone Interval-Order Precedences Definition by Papadimitriou & Yannakakis [SIAMJC 1979] • An interval graph is the intersection graph of real intervals • An interval order is the transitive orientation of the complement of an interval graph: B A

D C

¶³ ¶³ A

µ´

¶³ - D B 1µ´ ¶³³³³ µ´ - C ³³ µ´

• An interval order is equivalently defined by an incomparability graph that is chordal PlanSIG Workshop – December 2007

6

Interval Order on Typed Tasks

Monotone Interval-Order Precedences

Properties of Interval Orders • For any interval order P = (V, E) and ∀u, v ∈ V either succ u ⊆ succ v or succ u ⊇ succ v; likewise ∀u, v ∈ V either pred u ⊆ pred v or pred u ⊇ pred v • A poset is an interval order iff it does not contain the following induced poset: ¶³ ¶³ - B A µ´ µ´ ¶³ ¶³ - D C µ´ µ´ • Adding independent operations to an interval order yields another interval order • Any transitive predecessor (successor) of some operation in an interval order is also a direct predecessor (successor) PlanSIG Workshop – December 2007

7

Interval Order on Typed Tasks

Monotone Interval-Order Precedences

Monotone Interval Orders • A monotone interval-order graph is an interval-order graph (V, E) with a weight function w on the arcs such that, given any (vi , vj ), (vi , vk ) ∈ E : pred vj ⊆ pred vk ⇒ wij ≤ wik ¶³ vk ³ 1 µ´ ³ ³ wik ³³ µ ¡ ¡ ³ ³³ ³ ¡ ³ ¶³ ¶³ ³³ ¡ vi vj j µ´ wi µ´

• The weight wik of any transitive arc (vi , vk ) is not lower than the weight wij of the first arc (vi , vj ) in any path from vi to vk • In scheduling applications, the arc weights are the start-start def time-lags of the precedence arcs: wij = pi + lij PlanSIG Workshop – December 2007

8

Interval Order on Typed Tasks

Monotone Interval-Order Precedences

Polynomial-Time Scheduling with Interval Orders • P |intOrder; pi = 1|Cmax [Papadimitriou & Yannakakis 1979] • P |intOrder; cji = p; pi = p|Cmax [Ali & El-Rewini 1992] • Σk P |intOrder; pi = 1|Cmax [Jansen 1994] • P |intOrder; ri ; cji = 1; pi = 1|Lmax [Verriet 1996] • Σk P |intOrder; cji = 1; pi = 1|Cmax [Verriet 1998] • P |intOrder(mono lij ); ri ; di ; pi = 1|− [Leung-Palem-Pnueli 2001] (P |intOrder(mono lij ); ri ; pi = 1|Lmax with dichotomy search) Our modified Leung-Palem-Pnueli algorithm solves Σk P |intOrder(mono lij ); ri ; di ; pi = 1|− (Σk P |intOrder(mono lij ); ri ; pi = 1|Lmax ) PlanSIG Workshop – December 2007

9

Interval Order on Typed Tasks

List Scheduling with Modified Deadlines

List Scheduling with Modified Deadlines The Graham List Scheduling Algorithm (GLSA) • Assign a priority to each operation • Scan the time slots in increasing order • For each time slot, if a processor is idle, schedule the highest priority operation available Blazewicz 1977 The GLSA with earliest deadlines first priorities (Jackson’s rule) optimally solves P |ri ; pi = 1|Lmax UET Typed Task Systems without Precedences Theorem 1 The GLSA with Jackson’s rule optimally solves Σk P |ri ; di ; pi = 1|− and Σk P |ri ; pi = 1|Lmax .

PlanSIG Workshop – December 2007

10

Interval Order on Typed Tasks

List Scheduling with Modified Deadlines

Modified Deadlines of a Scheduling Problem Given scheduling deadlines {di }1≤i≤n , modified deadlines {d0i }1≤i≤n are such that ∀i ∈ [1, n] : σi + pi ≤ d0i ≤ di for any schedule {σi }1≤i≤n Earliest Modified Deadlines First as List Scheduling Priorities Garey & Johnson 1976 P 2|prec; pi = 1|Lmax d0i

def

min(d0i , d0k

g(i,d0 ) d m e)

− Iterate = with d0k the modified deadline of successor k and g(i, d0 ) the count of successors whose d0 ≤ d0k Palem & Simons 1993 P |intOrder(mono lij ); pi = 1|Lmax Leung & Palem & Pnueli 2001 P |intOrder(mono lij ); ri ; pi = 1|Lmax This Work Σk P |intOrder(mono lij ); ri ; pi = 1|Lmax Use a backward scheduling technique to compute the modified deadlines

PlanSIG Workshop – December 2007

11

Interval Order on Typed Tasks

Modified Leung-Palem-Pnueli Algorithm

Modified Leung-Palem-Pnueli Algorithm Algorithm Overview • Use fixpoint modified deadlines first priorities in a core GLSA • The fixpoint modified deadlines are computed by solving a series of backward scheduling problems Algorithm Proofs • Show that each backward scheduling problem is optimally solved in polynomial-time • Show that fixpoint modified deadlines are deadlines of the original problem • Show that if the core GLSA misses any fixpoint modified deadline, then the problem is infeasible PlanSIG Workshop – December 2007

12

Interval Order on Typed Tasks

Modified Leung-Palem-Pnueli Algorithm

Backward Scheduling Problem B(Oi , Si ) def

In our modified algorithm, Si is defined as Si = succ Oi ∪ indep Oi Backward Scheduling is the search for a set of dates {σj0 }Oj ∈{Oi }∪Si : (a) ∀Oj ∈ Si : Oi ≺ Oj ⇒ σi0 + 1 + lij ≤ σj0 (b) ∀t ∈ lN, ∀r ∈ [1, k] : |{Oj ∈ {Oi } ∪ Si ∧ τj = r ∧ σj0 = t}| ≤ mr (c) ∀Oj ∈ {Oi } ∪ Si : rj+ ≤ σj0 < d0j ¤ ¡ - Ol type τl £ ¤¢ ¡ ¶ - Ok ¶ © type τi ¤ ¡¶ ©¤ ¡ £ ¢ © ¶ - Oj Oi © £ ¢ £ ¢ @ ¡6 @ ¡ 6 6 Σ p

p+1

q+1

Optimal Backward Scheduling for Oi is maximizing σi0 in B(Oi , Si ) PlanSIG Workshop – December 2007

13

Interval Order on Typed Tasks

Modified Leung-Palem-Pnueli Algorithm

Solving Backward Scheduling Problems • Simple idea: search for the latest s ∈ [ri+ , d0i − 1] such that (σi0 = s) ∧ B(Oi , Si ) is feasible ⇒ solve d0i − ri+ problems of type Σk P |ri ; di ; pi = 1|− ⇒ pseudo-polynomial number of steps • Improved idea: dichotomy search over q then p in relaxations of problem (σi0 ∈ [p, q]) ∧ B(Oi , Si ) defined as: Σk P |ˆ rj ; dˆj ; pj = 1|−       

rˆi = p def dˆi = q + 1

 Oj ∈ Si =⇒      O ∈ S =⇒ j i

rˆj = max(rj+ , q + 1 + lij ) def dˆj = d0

def

def

j

Theorem 2 The improved idea optimally solves backward scheduling problems B(Oi , Si ) in polynomial number of steps. PlanSIG Workshop – December 2007

14

Interval Order on Typed Tasks

Modified Leung-Palem-Pnueli Algorithm

Compute the Fixpoint Modified Deadlines{d∗i }1≤i≤n (i) Compute the precedence-consistent release dates {ri+ }1≤i≤n , the precedence-consistent deadlines {d+ i }1≤i≤n and initialize the modified deadlines {d0i }1≤i≤n with the {d+ i }1≤i≤n (1) Let Oi be the current operation in some iteration over {Oi }1≤i≤n (2) Compute the optimal backward schedule date σi0 of Oi by optimal backward scheduling of B(Oi , Si ) (3) Update the modified deadline of Oi as d0i ← σi0 + 1 (4) Update the modified deadlines of each Ok ∈ pred Oi with d0k ← min(d0k , d0i − 1 − lki ) (5) Go to (1) until a fixpoint of the modified deadlines {d0i }1≤i≤n Fixpoint requires only n iterations using reverse topological sort order

PlanSIG Workshop – December 2007

15

Interval Order on Typed Tasks

Modified Leung-Palem-Pnueli Algorithm

Core GLSA with Fixpoint Modified Deadline Priorities Theorem 3 The modified algorithm of Leung, Palem and Pnueli solves any feasible problem Σk P |intOrder(mono lij ); ri ; di ; pi = 1|−. • Fixpoint modified deadlines are indeed deadlines of the problem • Let Oi be the earliest operation that misses its fixpoint modified deadline d∗i in the core GLSA schedule: ⇒ an earlier operation Ok necessarily misses its fixpoint modified deadline d∗k in the core GLSA schedule ¤ ¡ ¾³ Σ0 Oj ³ ¤ ¡ ¤ ¡£ ³³ ¢ ½ ½ ) ³ Ok Oj 0 £ ¢ £¤ ¢¡ ½½ ¤ ¡ = ½ Oj 00

6

tu

£ ¢ § 6¢ Σ £ ¦ 6 ∗

tu + 1

PlanSIG Workshop – December 2007

di

Oi

£ 6

¢

-

σi

16

Interval Order on Typed Tasks

Application to Instruction Scheduling

Application to Instruction Scheduling Source Code and ST200 VLIW Code Generation for Inner Loop int prod(int n, short a[], short b) { int s=0, i; for (i=0;i
PlanSIG Workshop – December 2007

L?__0_8: LDH_1 MULL_2 ADD_3 ADD_4 ADD_5 CMPNE_6 BRF_7

g131 = 0, G127 g132 = G126, g131 G129 = G129, g132 G128 = G128, 1 G127 = G127, 2 b135 = G118, G128 b135, L?__0_8

17

Interval Order on Typed Tasks

Application to Instruction Scheduling

Precedence Graph and Resource Requirements for the ST200 VLIW 0

1

4

0

6

0 0

5

0 0

1

7

1

8

0 2

3

3

3

UET operations (pi = 1) and arcs annotated with pi + lij (time-lags) Resource

Available

O1

O2

O3

O4

O5

O6

O7

Issue

4

1

1

1

1

1

1

1

Memory

1

1

0

0

0

0

0

0

Control

1

0

0

0

0

0

0

1

Align

2

0

1

0

0

0

0

1

PlanSIG Workshop – December 2007

18

Interval Order on Typed Tasks

Application to Instruction Scheduling

Using the Modified LPPA as a UET RCPSP Relaxation Lower bounding of the makespan using Resource bound, Critical path bound, and MLPPA relaxation bounds, for ST200 VLIW instruction scheduling problems with n operations: Code Label

n

Resource

Critical

MLPPA

ILP

BB26

41

11

15

19

19

BB23

34

10

14

18

18

BB30

10

3

5

5

5

BB29

16

5

10

10

10

1 31

34

9

14

18

18

BB9 Short

16

4

10

10

10

BB22

16

4

10

10

10

LAO021

22

6

6

7

7

PlanSIG Workshop – December 2007

19

Interval Order on Typed Tasks

Concluding Remarks

Concluding Remarks • Typed task systems are directly relevant to high-level synthesis of digital circuits and to compiler instruction scheduling (also describe the machine environment of job shop problems) • We modify the Leung-Palem-Pnueli 2001 algorithm in order to solve Σk P |intOrder(mono lij ); ri ; di ; pi = 1|− (the Jansen 1994 algorithm solves Σk P |intOrder; pi = 1|Cmax ) • Main modifications over the LPPA: adaptation to typed task systems; modified B(Oi , Si ) definition; simpler core LPPA proof • What is the worst-case performance of this class of algorithms? (Σk P |prec(lij ≤ z)|Cmax approximable to 2 + k −

2 (z+1) maxi mi ?)

• Relaxation of precedence graphs into monotone interval orders?

PlanSIG Workshop – December 2007

20

Scheduling Monotone Interval Orders on Typed Task ...

In scheduling applications, the arc weights are the start-start time-lags of the ..... (also describe the machine environment of job shop problems). • We modify the ...

241KB Sizes 0 Downloads 282 Views

Recommend Documents

Scheduling Monotone Interval Orders on Typed Task ...
scheduling monotone interval orders with release dates and deadlines on Unit Execution Time (UET) typed task systems in polynomial time. This problem is ...

Scheduling Monotone Interval Orders on Typed Task ...
eralize the parallel processors scheduling problems by intro- ducing k types ... 1999). In both cases, the pipelined implementation of functional units yield scheduling ..... is infeasible and the only difference between these two re- laxations is th

On Monotone Recursive Preferences
Jul 8, 2016 - D serves as the choice domain in this paper. One can visualize ..... reconcile the high equity premium and the low risk-free rate. So long as the ...

Task Scheduling and Moral Hazard∗
Dec 20, 2006 - Almost every business project can be viewed as a multitask activity which is extended over time and which is ... For example, consider an entrepreneur who is in the business of painting houses. She employs workers on a ..... Using Lemm

Case Study of QoS Based Task Scheduling for Campus Grid
Also Grid computing is a system, which provides distributed services that integrates wide variety of resources with ... communication based jobs are like transfer a file from one system to another system and which require high ... Section 4 is relate

Case Study of QoS Based Task Scheduling for Campus Grid
Such Grids give support to the computational infrastructure. (access to computational and data ... Examples of Enterprise Grids are Sun Grid Engine, IBM. Grid, Oracle Grid' and HP Grid ... can be used. Here m represents the communicational types of t

On the Representation of Preference Orders on ...
*Department of Economics, College of Business, Florida Atlantic University, ... throughout the analysis: for x, y * X we say x $ y iff xi $ yi for all i * M; x>y iff x $ y iff ...

Optimising Typed Programs
Typed intermediate languages of optimising compilers are becoming increasingly recognised, mainly for two reasons. First, several type based optimisations and analyses have been suggested that cannot be done in an untyped setting. Such analyses and o

Monotone Operators without Enlargements
Oct 14, 2011 - concept of the “enlargement of A”. A main example of this usefulness is Rockafellar's proof of maximality of the subdifferential of a convex ...

Ranking Very Many Typed Entities on Wikipedia
Tagger (http://sourceforge.net/projects/supersensetag/). For indexing and retrieval, we used the IXE retrieval library. (http://www.ideare.com/products.shtml), kindly made avail- able to us by Tiscali. 6. REFERENCES. [1] S. Chakrabarti, K. Puniyani,

On Borwein-Wiersma Decompositions of Monotone ...
Apr 9, 2010 - By Proposition 6.2(ii), QA is a linear selection of A. Now apply .... [18] R.T. Rockafellar, Convex Analysis, Princeton University Press, 1970.

Monotone Strategyproofness
Apr 14, 2016 - i ) = {(x, x/) ∈ X × X : either x/Pix & xP/ .... being the unique connected component implies that P/ i |A = P// i |A, and thus we also have. A = {x : xP// i y for all y ∈ C}. Similarly, we can define the set B of alternatives ...

Monotone Operators without Enlargements
Oct 14, 2011 - the graph of A. This motivates the definition of enlargement of A for a general monotone mapping ... We define the symmetric part a of A via. (8).

Scheduling your Hangout On Air - Services
Click the Q&A app on the left sidebar in the Hangout On Air. 4. After a moment, you'll see the app appear in the right sidebar with questions that have been submitted from the audience. 5. Click on a question and then answer it live. Later on, viewer

On the Existence of Monotone PureStrategy Equilibria ...
25This definition of pure-strategy Bayesian–Nash equilibrium coincides, for example, with that ...... Defining bi(ti) to be the coordinatewise minimum of bi(ti) and.

Scheduling your Hangout On Air Services
To get started, click Hangouts in the left-side navigation menu. 1. Click on Schedule a Hangout On Air. 2. Give it a name and description. 3. Choose a starting time: • Choose Now only if your Hangout On Air starts right now. • Choose Later if it

Scheduling your Hangout On Air - PDFKUL.COM
Click the Q&A app on the left sidebar in the Hangout On Air. 4. ... On the day of your Hangout On Air, you're now ready to invite your participants and start the ...

Glauber Dynamics on the Cycle is Monotone
May 2, 2003 - model on a finite cycle (a graph where every vertex has degree two). ..... [4] Liggett, T. M. (1985) Interacting particle systems, Springer-Verlag.

On Borwein-Wiersma Decompositions of Monotone Linear Relations
Dec 14, 2009 - When A is linear and single-valued with full domain, we shall use ...... [18] R.T. Rockafellar, Convex Analysis, Princeton University Press, 1970.

Heuristic Scheduling Based on Policy Learning - CiteSeerX
machine centres, loading/unloading station and work-in-process storage racks. Five types of parts were processed in the FMS, and each part type could be processed by several flexible routing sequences. Inter arrival times of all parts was assumed to

Heuristic Scheduling Based on Policy Learning - CiteSeerX
production systems is done by allocating priorities to jobs waiting at various machines through these dispatching heuristics. 2.1 Heuristic Rules. These are Simple priority rules based on information available related to jobs. In the context of produ

On the configuration-LP for scheduling on unrelated ...
May 11, 2012 - Springer Science+Business Media New York 2013. Abstract Closing the approximability gap .... inequalities that prohibit two large jobs to be simultane- ously assigned to the same machine. .... Table 1 The integrality gap of the configu

French government orders a commission report on competitiveness of ...
Feb 26, 2016 - ... online : https://www.france-science.org/French-government-orders-a.html ... the Ariane 6's design in accordance with a target launch by 2020.

French government orders a commission report on competitiveness of ...
Feb 26, 2016 - Page 1. Office for Science & Technology at the Embassy of France in the United States. French government orders a commission report on.