Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
fix distcheck
[simgrid.git] / examples / simdag / schedule-dotload / sd_schedule-dotload.tesh
1 #! ./tesh
2 p Test the loader of DAG written in the DOT format
3
4 ! expect return 2
5 $ $SG_TEST_EXENV ${bindir:=.}/schedule-dotload/sd_schedule-dotload --log=no_loc  "--log=sd_dotparse.thres:verbose" ${srcdir:=.}/../platforms/2clusters.xml ${srcdir:=.}/schedule-dotload/dag_with_bad_schedule.dot
6 > [0.000000] [xbt_cfg/INFO] Switching to the L07 model to handle parallel tasks.
7 > [0.000000] [sd_dotparse/VERBOSE] The schedule is ignored, task 'end' can not be scheduled on -1 hosts
8 > [0.000000] [sd_dotparse/VERBOSE] The schedule is ignored, task '1' can not be scheduled on 0 hosts
9 > [0.000000] [sd_dotparse/VERBOSE] Task '0' wants to start on performer '1' at the same position '1' as task '2'
10 > [0.000000] [sd_dotparse/VERBOSE] The schedule is ignored, task '3' can not be scheduled on -1 hosts
11 > [0.000000] [sd_dotparse/VERBOSE] The schedule is ignored, task 'root' can not be scheduled on -1 hosts
12 > [0.000000] [sd_dotparse/WARNING] The scheduling is ignored
13 > [0.000000] [test/CRITICAL] The dot file with the provided scheduling is wrong, more information with the option : --log=sd_dotparse.thres:verbose
14
15 $ $SG_TEST_EXENV ${bindir:=.}/schedule-dotload/sd_schedule-dotload --log=no_loc ${srcdir:=.}/../platforms/2clusters.xml ${srcdir:=.}/schedule-dotload/dag_with_good_schedule.dot
16 > [0.000000] [xbt_cfg/INFO] Switching to the L07 model to handle parallel tasks.
17 > [0.000000] [test/INFO] ------------------- Display all tasks of the loaded DAG ---------------------------
18 > [0.000000] [sd_task/INFO] Displaying task root
19 > [0.000000] [sd_task/INFO]   - state: runnable
20 > [0.000000] [sd_task/INFO]   - kind: sequential computation
21 > [0.000000] [sd_task/INFO]   - amount: 0
22 > [0.000000] [sd_task/INFO]   - Dependencies to satisfy: 0
23 > [0.000000] [sd_task/INFO]   - post-dependencies:
24 > [0.000000] [sd_task/INFO]     root->5
25 > [0.000000] [sd_task/INFO]     0
26 > [0.000000] [sd_task/INFO]     1
27 > [0.000000] [sd_task/INFO] Displaying task 0
28 > [0.000000] [sd_task/INFO]   - state: scheduled not runnable
29 > [0.000000] [sd_task/INFO]   - kind: sequential computation
30 > [0.000000] [sd_task/INFO]   - amount: 10000000129
31 > [0.000000] [sd_task/INFO]   - Dependencies to satisfy: 1
32 > [0.000000] [sd_task/INFO]   - pre-dependencies:
33 > [0.000000] [sd_task/INFO]     root
34 > [0.000000] [sd_task/INFO]   - post-dependencies:
35 > [0.000000] [sd_task/INFO]     0->2
36 > [0.000000] [sd_task/INFO]     2
37 > [0.000000] [sd_task/INFO] Displaying task 1
38 > [0.000000] [sd_task/INFO]   - state: scheduled not runnable
39 > [0.000000] [sd_task/INFO]   - kind: sequential computation
40 > [0.000000] [sd_task/INFO]   - amount: 10000000131
41 > [0.000000] [sd_task/INFO]   - Dependencies to satisfy: 1
42 > [0.000000] [sd_task/INFO]   - pre-dependencies:
43 > [0.000000] [sd_task/INFO]     root
44 > [0.000000] [sd_task/INFO]   - post-dependencies:
45 > [0.000000] [sd_task/INFO]     1->2
46 > [0.000000] [sd_task/INFO]     4
47 > [0.000000] [sd_task/INFO] Displaying task 2
48 > [0.000000] [sd_task/INFO]   - state: scheduled not runnable
49 > [0.000000] [sd_task/INFO]   - kind: sequential computation
50 > [0.000000] [sd_task/INFO]   - amount: 10000000121
51 > [0.000000] [sd_task/INFO]   - Dependencies to satisfy: 3
52 > [0.000000] [sd_task/INFO]   - pre-dependencies:
53 > [0.000000] [sd_task/INFO]     0->2
54 > [0.000000] [sd_task/INFO]     1->2
55 > [0.000000] [sd_task/INFO]     0
56 > [0.000000] [sd_task/INFO]   - post-dependencies:
57 > [0.000000] [sd_task/INFO]     2->3
58 > [0.000000] [sd_task/INFO]     3
59 > [0.000000] [sd_task/INFO] Displaying task 3
60 > [0.000000] [sd_task/INFO]   - state: scheduled not runnable
61 > [0.000000] [sd_task/INFO]   - kind: sequential computation
62 > [0.000000] [sd_task/INFO]   - amount: 10000000231
63 > [0.000000] [sd_task/INFO]   - Dependencies to satisfy: 2
64 > [0.000000] [sd_task/INFO]   - pre-dependencies:
65 > [0.000000] [sd_task/INFO]     2->3
66 > [0.000000] [sd_task/INFO]     2
67 > [0.000000] [sd_task/INFO]   - post-dependencies:
68 > [0.000000] [sd_task/INFO]     4
69 > [0.000000] [sd_task/INFO]     8
70 > [0.000000] [sd_task/INFO] Displaying task 4
71 > [0.000000] [sd_task/INFO]   - state: scheduled not runnable
72 > [0.000000] [sd_task/INFO]   - kind: sequential computation
73 > [0.000000] [sd_task/INFO]   - amount: 10000000005
74 > [0.000000] [sd_task/INFO]   - Dependencies to satisfy: 2
75 > [0.000000] [sd_task/INFO]   - pre-dependencies:
76 > [0.000000] [sd_task/INFO]     3
77 > [0.000000] [sd_task/INFO]     1
78 > [0.000000] [sd_task/INFO]   - post-dependencies:
79 > [0.000000] [sd_task/INFO]     4->5
80 > [0.000000] [sd_task/INFO]     5
81 > [0.000000] [sd_task/INFO] Displaying task 5
82 > [0.000000] [sd_task/INFO]   - state: scheduled not runnable
83 > [0.000000] [sd_task/INFO]   - kind: sequential computation
84 > [0.000000] [sd_task/INFO]   - amount: 10000000046
85 > [0.000000] [sd_task/INFO]   - Dependencies to satisfy: 3
86 > [0.000000] [sd_task/INFO]   - pre-dependencies:
87 > [0.000000] [sd_task/INFO]     root->5
88 > [0.000000] [sd_task/INFO]     4->5
89 > [0.000000] [sd_task/INFO]     4
90 > [0.000000] [sd_task/INFO]   - post-dependencies:
91 > [0.000000] [sd_task/INFO]     6
92 > [0.000000] [sd_task/INFO] Displaying task 6
93 > [0.000000] [sd_task/INFO]   - state: scheduled not runnable
94 > [0.000000] [sd_task/INFO]   - kind: sequential computation
95 > [0.000000] [sd_task/INFO]   - amount: 10000000092
96 > [0.000000] [sd_task/INFO]   - Dependencies to satisfy: 1
97 > [0.000000] [sd_task/INFO]   - pre-dependencies:
98 > [0.000000] [sd_task/INFO]     5
99 > [0.000000] [sd_task/INFO]   - post-dependencies:
100 > [0.000000] [sd_task/INFO]     6->7
101 > [0.000000] [sd_task/INFO]     7
102 > [0.000000] [sd_task/INFO] Displaying task 7
103 > [0.000000] [sd_task/INFO]   - state: scheduled not runnable
104 > [0.000000] [sd_task/INFO]   - kind: sequential computation
105 > [0.000000] [sd_task/INFO]   - amount: 10000000041
106 > [0.000000] [sd_task/INFO]   - Dependencies to satisfy: 2
107 > [0.000000] [sd_task/INFO]   - pre-dependencies:
108 > [0.000000] [sd_task/INFO]     6->7
109 > [0.000000] [sd_task/INFO]     6
110 > [0.000000] [sd_task/INFO]   - post-dependencies:
111 > [0.000000] [sd_task/INFO]     7->8
112 > [0.000000] [sd_task/INFO]     7->end
113 > [0.000000] [sd_task/INFO]     end
114 > [0.000000] [sd_task/INFO] Displaying task 8
115 > [0.000000] [sd_task/INFO]   - state: scheduled not runnable
116 > [0.000000] [sd_task/INFO]   - kind: sequential computation
117 > [0.000000] [sd_task/INFO]   - amount: 10000000250
118 > [0.000000] [sd_task/INFO]   - Dependencies to satisfy: 2
119 > [0.000000] [sd_task/INFO]   - pre-dependencies:
120 > [0.000000] [sd_task/INFO]     7->8
121 > [0.000000] [sd_task/INFO]     3
122 > [0.000000] [sd_task/INFO]   - post-dependencies:
123 > [0.000000] [sd_task/INFO]     9
124 > [0.000000] [sd_task/INFO] Displaying task 9
125 > [0.000000] [sd_task/INFO]   - state: scheduled not runnable
126 > [0.000000] [sd_task/INFO]   - kind: sequential computation
127 > [0.000000] [sd_task/INFO]   - amount: 10000000079
128 > [0.000000] [sd_task/INFO]   - Dependencies to satisfy: 1
129 > [0.000000] [sd_task/INFO]   - pre-dependencies:
130 > [0.000000] [sd_task/INFO]     8
131 > [0.000000] [sd_task/INFO]   - post-dependencies:
132 > [0.000000] [sd_task/INFO]     end
133 > [0.000000] [sd_task/INFO] Displaying task root->5
134 > [0.000000] [sd_task/INFO]   - state: scheduled not runnable
135 > [0.000000] [sd_task/INFO]   - kind: end-to-end communication
136 > [0.000000] [sd_task/INFO]   - amount: 10014000
137 > [0.000000] [sd_task/INFO]   - Dependencies to satisfy: 1
138 > [0.000000] [sd_task/INFO]   - pre-dependencies:
139 > [0.000000] [sd_task/INFO]     root
140 > [0.000000] [sd_task/INFO]   - post-dependencies:
141 > [0.000000] [sd_task/INFO]     5
142 > [0.000000] [sd_task/INFO] Displaying task 0->2
143 > [0.000000] [sd_task/INFO]   - state: scheduled not runnable
144 > [0.000000] [sd_task/INFO]   - kind: end-to-end communication
145 > [0.000000] [sd_task/INFO]   - amount: 10001
146 > [0.000000] [sd_task/INFO]   - Dependencies to satisfy: 1
147 > [0.000000] [sd_task/INFO]   - pre-dependencies:
148 > [0.000000] [sd_task/INFO]     0
149 > [0.000000] [sd_task/INFO]   - post-dependencies:
150 > [0.000000] [sd_task/INFO]     2
151 > [0.000000] [sd_task/INFO] Displaying task 1->2
152 > [0.000000] [sd_task/INFO]   - state: scheduled not runnable
153 > [0.000000] [sd_task/INFO]   - kind: end-to-end communication
154 > [0.000000] [sd_task/INFO]   - amount: 10004
155 > [0.000000] [sd_task/INFO]   - Dependencies to satisfy: 1
156 > [0.000000] [sd_task/INFO]   - pre-dependencies:
157 > [0.000000] [sd_task/INFO]     1
158 > [0.000000] [sd_task/INFO]   - post-dependencies:
159 > [0.000000] [sd_task/INFO]     2
160 > [0.000000] [sd_task/INFO] Displaying task 2->3
161 > [0.000000] [sd_task/INFO]   - state: scheduled not runnable
162 > [0.000000] [sd_task/INFO]   - kind: end-to-end communication
163 > [0.000000] [sd_task/INFO]   - amount: 10002
164 > [0.000000] [sd_task/INFO]   - Dependencies to satisfy: 1
165 > [0.000000] [sd_task/INFO]   - pre-dependencies:
166 > [0.000000] [sd_task/INFO]     2
167 > [0.000000] [sd_task/INFO]   - post-dependencies:
168 > [0.000000] [sd_task/INFO]     3
169 > [0.000000] [sd_task/INFO] Displaying task 4->5
170 > [0.000000] [sd_task/INFO]   - state: scheduled not runnable
171 > [0.000000] [sd_task/INFO]   - kind: end-to-end communication
172 > [0.000000] [sd_task/INFO]   - amount: 10029
173 > [0.000000] [sd_task/INFO]   - Dependencies to satisfy: 1
174 > [0.000000] [sd_task/INFO]   - pre-dependencies:
175 > [0.000000] [sd_task/INFO]     4
176 > [0.000000] [sd_task/INFO]   - post-dependencies:
177 > [0.000000] [sd_task/INFO]     5
178 > [0.000000] [sd_task/INFO] Displaying task 6->7
179 > [0.000000] [sd_task/INFO]   - state: scheduled not runnable
180 > [0.000000] [sd_task/INFO]   - kind: end-to-end communication
181 > [0.000000] [sd_task/INFO]   - amount: 10005
182 > [0.000000] [sd_task/INFO]   - Dependencies to satisfy: 1
183 > [0.000000] [sd_task/INFO]   - pre-dependencies:
184 > [0.000000] [sd_task/INFO]     6
185 > [0.000000] [sd_task/INFO]   - post-dependencies:
186 > [0.000000] [sd_task/INFO]     7
187 > [0.000000] [sd_task/INFO] Displaying task 7->8
188 > [0.000000] [sd_task/INFO]   - state: scheduled not runnable
189 > [0.000000] [sd_task/INFO]   - kind: end-to-end communication
190 > [0.000000] [sd_task/INFO]   - amount: 10000
191 > [0.000000] [sd_task/INFO]   - Dependencies to satisfy: 1
192 > [0.000000] [sd_task/INFO]   - pre-dependencies:
193 > [0.000000] [sd_task/INFO]     7
194 > [0.000000] [sd_task/INFO]   - post-dependencies:
195 > [0.000000] [sd_task/INFO]     8
196 > [0.000000] [sd_task/INFO] Displaying task 7->end
197 > [0.000000] [sd_task/INFO]   - state: scheduled not runnable
198 > [0.000000] [sd_task/INFO]   - kind: end-to-end communication
199 > [0.000000] [sd_task/INFO]   - amount: 10014000
200 > [0.000000] [sd_task/INFO]   - Dependencies to satisfy: 1
201 > [0.000000] [sd_task/INFO]   - pre-dependencies:
202 > [0.000000] [sd_task/INFO]     7
203 > [0.000000] [sd_task/INFO]   - post-dependencies:
204 > [0.000000] [sd_task/INFO]     end
205 > [0.000000] [sd_task/INFO] Displaying task end
206 > [0.000000] [sd_task/INFO]   - state: scheduled not runnable
207 > [0.000000] [sd_task/INFO]   - kind: sequential computation
208 > [0.000000] [sd_task/INFO]   - amount: 10000000129
209 > [0.000000] [sd_task/INFO]   - Dependencies to satisfy: 3
210 > [0.000000] [sd_task/INFO]   - pre-dependencies:
211 > [0.000000] [sd_task/INFO]     7->end
212 > [0.000000] [sd_task/INFO]     9
213 > [0.000000] [sd_task/INFO]     7
214 > [0.000000] [test/INFO] ------------------- Run the schedule ---------------------------
215 > [20.000866] [test/INFO] ------------------- Produce the trace file---------------------------
216 > [20.000866] [test/INFO] Producing the trace of the run into dag_with_good_schedule.trace
217
218 $ cat ${srcdir:=.}/schedule-dotload/dag_with_good_schedule.trace
219 > [0.000000->0.000000] C2-05 compute 0.000000 flops # root
220 > [0.000000->2.000000] C2-06 compute 10000000129.452715 flops # 0
221 > [0.000000->2.000000] C2-05 compute 10000000131.133657 flops # 1
222 > [2.000380->4.000380] C2-06 compute 10000000121.124870 flops # 2
223 > [4.000415->6.000415] C2-06 compute 10000000230.608025 flops # 3
224 > [6.000415->8.000415] C2-05 compute 10000000004.994019 flops # 4
225 > [8.000450->10.000450] C2-05 compute 10000000046.016401 flops # 5
226 > [10.000450->12.000450] C2-05 compute 10000000091.598791 flops # 6
227 > [12.000485->14.000485] C2-05 compute 10000000040.679438 flops # 7
228 > [14.000865->16.000866] C2-06 compute 10000000250.490017 flops # 8
229 > [16.000866->18.000866] C2-06 compute 10000000079.267649 flops # 9
230 > [0.000000 -> 0.020123] C2-05 -> C2-05 transfer of 10014000 bytes # root->5
231 > [2.000000 -> 2.000035] C2-06 -> C2-06 transfer of 10001 bytes # 0->2
232 > [2.000000 -> 2.000380] C2-05 -> C2-06 transfer of 10004 bytes # 1->2
233 > [4.000380 -> 4.000415] C2-06 -> C2-06 transfer of 10002 bytes # 2->3
234 > [8.000415 -> 8.000450] C2-05 -> C2-05 transfer of 10029 bytes # 4->5
235 > [12.000450 -> 12.000485] C2-05 -> C2-05 transfer of 10005 bytes # 6->7
236 > [14.000485 -> 14.000865] C2-05 -> C2-06 transfer of 10000 bytes # 7->8
237 > [14.000485 -> 14.020609] C2-05 -> C2-05 transfer of 10014000 bytes # 7->end
238 > [18.000866->20.000866] C2-05 compute 10000000129.452715 flops # end
239
240 $ rm -f ${srcdir:=.}/schedule-dotload/dag_with_good_schedule.trace
241