Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
2b8a8110817cb3527909105b8aab4291328aa4d4
[simgrid.git] / examples / simdag / dot / test_simdag_dotload.tesh
1 #! ./tesh
2 p Test the loader of DAG written in the DOT format
3
4 $ $SG_TEST_EXENV ./dot_test --log=no_loc ${srcdir:=.}/../2clusters.xml ${srcdir:=.}/dag.dot
5 > [0.000000] [surf_host/INFO] Switching to the L07 model to handle parallel tasks.
6 > [0.000000] [test/INFO] ------------------- Display all tasks of the loaded DAG ---------------------------
7 > [0.000000] [sd_task/INFO] Displaying task root
8 > [0.000000] [sd_task/INFO]   - state:  schedulable  not runnable    
9 > [0.000000] [sd_task/INFO]   - kind: sequential computation
10 > [0.000000] [sd_task/INFO]   - tracing category: COMP_SEQ
11 > [0.000000] [sd_task/INFO]   - amount: 0
12 > [0.000000] [sd_task/INFO]   - Dependencies to satisfy: 0
13 > [0.000000] [sd_task/INFO]   - post-dependencies:
14 > [0.000000] [sd_task/INFO]     root->5
15 > [0.000000] [sd_task/INFO]     0
16 > [0.000000] [sd_task/INFO] Displaying task 0
17 > [0.000000] [sd_task/INFO]   - state: not scheduled   not runnable    
18 > [0.000000] [sd_task/INFO]   - kind: sequential computation
19 > [0.000000] [sd_task/INFO]   - tracing category: taskA
20 > [0.000000] [sd_task/INFO]   - amount: 10000000129
21 > [0.000000] [sd_task/INFO]   - Dependencies to satisfy: 1
22 > [0.000000] [sd_task/INFO]   - pre-dependencies:
23 > [0.000000] [sd_task/INFO]     root
24 > [0.000000] [sd_task/INFO]   - post-dependencies:
25 > [0.000000] [sd_task/INFO]     0->1
26 > [0.000000] [sd_task/INFO] Displaying task 1
27 > [0.000000] [sd_task/INFO]   - state: not scheduled   not runnable    
28 > [0.000000] [sd_task/INFO]   - kind: sequential computation
29 > [0.000000] [sd_task/INFO]   - tracing category: taskA
30 > [0.000000] [sd_task/INFO]   - amount: 10000000131
31 > [0.000000] [sd_task/INFO]   - Dependencies to satisfy: 1
32 > [0.000000] [sd_task/INFO]   - pre-dependencies:
33 > [0.000000] [sd_task/INFO]     0->1
34 > [0.000000] [sd_task/INFO]   - post-dependencies:
35 > [0.000000] [sd_task/INFO]     1->2
36 > [0.000000] [sd_task/INFO] Displaying task 2
37 > [0.000000] [sd_task/INFO]   - state: not scheduled   not runnable    
38 > [0.000000] [sd_task/INFO]   - kind: sequential computation
39 > [0.000000] [sd_task/INFO]   - tracing category: taskA
40 > [0.000000] [sd_task/INFO]   - amount: 10000000121
41 > [0.000000] [sd_task/INFO]   - Dependencies to satisfy: 1
42 > [0.000000] [sd_task/INFO]   - pre-dependencies:
43 > [0.000000] [sd_task/INFO]     1->2
44 > [0.000000] [sd_task/INFO]   - post-dependencies:
45 > [0.000000] [sd_task/INFO]     2->3
46 > [0.000000] [sd_task/INFO] Displaying task 3
47 > [0.000000] [sd_task/INFO]   - state: not scheduled   not runnable    
48 > [0.000000] [sd_task/INFO]   - kind: sequential computation
49 > [0.000000] [sd_task/INFO]   - tracing category: taskA
50 > [0.000000] [sd_task/INFO]   - amount: 10000000231
51 > [0.000000] [sd_task/INFO]   - Dependencies to satisfy: 1
52 > [0.000000] [sd_task/INFO]   - pre-dependencies:
53 > [0.000000] [sd_task/INFO]     2->3
54 > [0.000000] [sd_task/INFO]   - post-dependencies:
55 > [0.000000] [sd_task/INFO]     4
56 > [0.000000] [sd_task/INFO] Displaying task 4
57 > [0.000000] [sd_task/INFO]   - state: not scheduled   not runnable    
58 > [0.000000] [sd_task/INFO]   - kind: sequential computation
59 > [0.000000] [sd_task/INFO]   - tracing category: taskB
60 > [0.000000] [sd_task/INFO]   - amount: 10000000005
61 > [0.000000] [sd_task/INFO]   - Dependencies to satisfy: 1
62 > [0.000000] [sd_task/INFO]   - pre-dependencies:
63 > [0.000000] [sd_task/INFO]     3
64 > [0.000000] [sd_task/INFO]   - post-dependencies:
65 > [0.000000] [sd_task/INFO]     4->5
66 > [0.000000] [sd_task/INFO] Displaying task 5
67 > [0.000000] [sd_task/INFO]   - state: not scheduled   not runnable    
68 > [0.000000] [sd_task/INFO]   - kind: sequential computation
69 > [0.000000] [sd_task/INFO]   - tracing category: taskB
70 > [0.000000] [sd_task/INFO]   - amount: 10000000046
71 > [0.000000] [sd_task/INFO]   - Dependencies to satisfy: 2
72 > [0.000000] [sd_task/INFO]   - pre-dependencies:
73 > [0.000000] [sd_task/INFO]     4->5
74 > [0.000000] [sd_task/INFO]     root->5
75 > [0.000000] [sd_task/INFO]   - post-dependencies:
76 > [0.000000] [sd_task/INFO]     6
77 > [0.000000] [sd_task/INFO] Displaying task 6
78 > [0.000000] [sd_task/INFO]   - state: not scheduled   not runnable    
79 > [0.000000] [sd_task/INFO]   - kind: sequential computation
80 > [0.000000] [sd_task/INFO]   - tracing category: taskB
81 > [0.000000] [sd_task/INFO]   - amount: 10000000092
82 > [0.000000] [sd_task/INFO]   - Dependencies to satisfy: 1
83 > [0.000000] [sd_task/INFO]   - pre-dependencies:
84 > [0.000000] [sd_task/INFO]     5
85 > [0.000000] [sd_task/INFO]   - post-dependencies:
86 > [0.000000] [sd_task/INFO]     6->7
87 > [0.000000] [sd_task/INFO] Displaying task 7
88 > [0.000000] [sd_task/INFO]   - state: not scheduled   not runnable    
89 > [0.000000] [sd_task/INFO]   - kind: sequential computation
90 > [0.000000] [sd_task/INFO]   - tracing category: taskB
91 > [0.000000] [sd_task/INFO]   - amount: 10000000041
92 > [0.000000] [sd_task/INFO]   - Dependencies to satisfy: 1
93 > [0.000000] [sd_task/INFO]   - pre-dependencies:
94 > [0.000000] [sd_task/INFO]     6->7
95 > [0.000000] [sd_task/INFO]   - post-dependencies:
96 > [0.000000] [sd_task/INFO]     7->8
97 > [0.000000] [sd_task/INFO]     7->end
98 > [0.000000] [sd_task/INFO] Displaying task 8
99 > [0.000000] [sd_task/INFO]   - state: not scheduled   not runnable    
100 > [0.000000] [sd_task/INFO]   - kind: sequential computation
101 > [0.000000] [sd_task/INFO]   - tracing category: taskC
102 > [0.000000] [sd_task/INFO]   - amount: 10000000250
103 > [0.000000] [sd_task/INFO]   - Dependencies to satisfy: 1
104 > [0.000000] [sd_task/INFO]   - pre-dependencies:
105 > [0.000000] [sd_task/INFO]     7->8
106 > [0.000000] [sd_task/INFO]   - post-dependencies:
107 > [0.000000] [sd_task/INFO]     9
108 > [0.000000] [sd_task/INFO] Displaying task 9
109 > [0.000000] [sd_task/INFO]   - state: not scheduled   not runnable    
110 > [0.000000] [sd_task/INFO]   - kind: sequential computation
111 > [0.000000] [sd_task/INFO]   - tracing category: taskC
112 > [0.000000] [sd_task/INFO]   - amount: 10000000079
113 > [0.000000] [sd_task/INFO]   - Dependencies to satisfy: 1
114 > [0.000000] [sd_task/INFO]   - pre-dependencies:
115 > [0.000000] [sd_task/INFO]     8
116 > [0.000000] [sd_task/INFO]   - post-dependencies:
117 > [0.000000] [sd_task/INFO]     end
118 > [0.000000] [sd_task/INFO] Displaying task 0->1
119 > [0.000000] [sd_task/INFO]   - state: not scheduled   not runnable    
120 > [0.000000] [sd_task/INFO]   - kind: end-to-end communication
121 > [0.000000] [sd_task/INFO]   - tracing category: taskA
122 > [0.000000] [sd_task/INFO]   - amount: 10001
123 > [0.000000] [sd_task/INFO]   - Dependencies to satisfy: 1
124 > [0.000000] [sd_task/INFO]   - pre-dependencies:
125 > [0.000000] [sd_task/INFO]     0
126 > [0.000000] [sd_task/INFO]   - post-dependencies:
127 > [0.000000] [sd_task/INFO]     1
128 > [0.000000] [sd_task/INFO] Displaying task 1->2
129 > [0.000000] [sd_task/INFO]   - state: not scheduled   not runnable    
130 > [0.000000] [sd_task/INFO]   - kind: end-to-end communication
131 > [0.000000] [sd_task/INFO]   - tracing category: taskA
132 > [0.000000] [sd_task/INFO]   - amount: 10004
133 > [0.000000] [sd_task/INFO]   - Dependencies to satisfy: 1
134 > [0.000000] [sd_task/INFO]   - pre-dependencies:
135 > [0.000000] [sd_task/INFO]     1
136 > [0.000000] [sd_task/INFO]   - post-dependencies:
137 > [0.000000] [sd_task/INFO]     2
138 > [0.000000] [sd_task/INFO] Displaying task 2->3
139 > [0.000000] [sd_task/INFO]   - state: not scheduled   not runnable    
140 > [0.000000] [sd_task/INFO]   - kind: end-to-end communication
141 > [0.000000] [sd_task/INFO]   - tracing category: taskA
142 > [0.000000] [sd_task/INFO]   - amount: 10002
143 > [0.000000] [sd_task/INFO]   - Dependencies to satisfy: 1
144 > [0.000000] [sd_task/INFO]   - pre-dependencies:
145 > [0.000000] [sd_task/INFO]     2
146 > [0.000000] [sd_task/INFO]   - post-dependencies:
147 > [0.000000] [sd_task/INFO]     3
148 > [0.000000] [sd_task/INFO] Displaying task 4->5
149 > [0.000000] [sd_task/INFO]   - state: not scheduled   not runnable    
150 > [0.000000] [sd_task/INFO]   - kind: end-to-end communication
151 > [0.000000] [sd_task/INFO]   - tracing category: taskB
152 > [0.000000] [sd_task/INFO]   - amount: 10029
153 > [0.000000] [sd_task/INFO]   - Dependencies to satisfy: 1
154 > [0.000000] [sd_task/INFO]   - pre-dependencies:
155 > [0.000000] [sd_task/INFO]     4
156 > [0.000000] [sd_task/INFO]   - post-dependencies:
157 > [0.000000] [sd_task/INFO]     5
158 > [0.000000] [sd_task/INFO] Displaying task 6->7
159 > [0.000000] [sd_task/INFO]   - state: not scheduled   not runnable    
160 > [0.000000] [sd_task/INFO]   - kind: end-to-end communication
161 > [0.000000] [sd_task/INFO]   - tracing category: taskB
162 > [0.000000] [sd_task/INFO]   - amount: 10005
163 > [0.000000] [sd_task/INFO]   - Dependencies to satisfy: 1
164 > [0.000000] [sd_task/INFO]   - pre-dependencies:
165 > [0.000000] [sd_task/INFO]     6
166 > [0.000000] [sd_task/INFO]   - post-dependencies:
167 > [0.000000] [sd_task/INFO]     7
168 > [0.000000] [sd_task/INFO] Displaying task 7->8
169 > [0.000000] [sd_task/INFO]   - state: not scheduled   not runnable    
170 > [0.000000] [sd_task/INFO]   - kind: end-to-end communication
171 > [0.000000] [sd_task/INFO]   - tracing category: taskB
172 > [0.000000] [sd_task/INFO]   - amount: 10000
173 > [0.000000] [sd_task/INFO]   - Dependencies to satisfy: 1
174 > [0.000000] [sd_task/INFO]   - pre-dependencies:
175 > [0.000000] [sd_task/INFO]     7
176 > [0.000000] [sd_task/INFO]   - post-dependencies:
177 > [0.000000] [sd_task/INFO]     8
178 > [0.000000] [sd_task/INFO] Displaying task 7->end
179 > [0.000000] [sd_task/INFO]   - state: not scheduled   not runnable    
180 > [0.000000] [sd_task/INFO]   - kind: end-to-end communication
181 > [0.000000] [sd_task/INFO]   - tracing category: taskB
182 > [0.000000] [sd_task/INFO]   - amount: 10014000
183 > [0.000000] [sd_task/INFO]   - Dependencies to satisfy: 1
184 > [0.000000] [sd_task/INFO]   - pre-dependencies:
185 > [0.000000] [sd_task/INFO]     7
186 > [0.000000] [sd_task/INFO]   - post-dependencies:
187 > [0.000000] [sd_task/INFO]     end
188 > [0.000000] [sd_task/INFO] Displaying task root->5
189 > [0.000000] [sd_task/INFO]   - state: not scheduled   not runnable    
190 > [0.000000] [sd_task/INFO]   - kind: end-to-end communication
191 > [0.000000] [sd_task/INFO]   - tracing category: COMM_E2E
192 > [0.000000] [sd_task/INFO]   - amount: 10014000
193 > [0.000000] [sd_task/INFO]   - Dependencies to satisfy: 1
194 > [0.000000] [sd_task/INFO]   - pre-dependencies:
195 > [0.000000] [sd_task/INFO]     root
196 > [0.000000] [sd_task/INFO]   - post-dependencies:
197 > [0.000000] [sd_task/INFO]     5
198 > [0.000000] [sd_task/INFO] Displaying task end
199 > [0.000000] [sd_task/INFO]   - state: not scheduled   not runnable    
200 > [0.000000] [sd_task/INFO]   - kind: sequential computation
201 > [0.000000] [sd_task/INFO]   - tracing category: COMP_SEQ
202 > [0.000000] [sd_task/INFO]   - amount: 10000000129
203 > [0.000000] [sd_task/INFO]   - Dependencies to satisfy: 2
204 > [0.000000] [sd_task/INFO]   - pre-dependencies:
205 > [0.000000] [sd_task/INFO]     7->end
206 > [0.000000] [sd_task/INFO]     9
207 > [0.000000] [test/INFO] ------------------- Schedule tasks ---------------------------
208 > [0.000000] [test/INFO] ------------------- Run the schedule ---------------------------
209 > [62.002281] [test/INFO] ------------------- Produce the trace file---------------------------
210 > [62.002281] [test/INFO] Producing the trace of the run into dag.trace
211
212 $ cat ${srcdir:=.}/dag.trace
213 > [0.000000->0.000000] C2-05 compute 0.000000 flops # root
214 > [0.000000->2.000000] C2-06 compute 10000000129.452715 flops # 0
215 > [2.000380->4.000380] C2-07 compute 10000000131.133657 flops # 1
216 > [4.000760->6.000760] C2-08 compute 10000000121.124870 flops # 2
217 > [6.001140->8.001140] C2-09 compute 10000000230.608025 flops # 3
218 > [8.001140->18.001140] C1-00 compute 10000000004.994019 flops # 4
219 > [18.001520->28.001520] C1-01 compute 10000000046.016401 flops # 5
220 > [28.001520->38.001521] C1-02 compute 10000000091.598791 flops # 6
221 > [38.001901->48.001901] C1-03 compute 10000000040.679438 flops # 7
222 > [48.002281->58.002281] C1-04 compute 10000000250.490017 flops # 8
223 > [58.002281->60.002281] C2-05 compute 10000000079.267649 flops # 9
224 > [2.000000 -> 2.000380] C2-06 -> C2-07 transfer of 10001 bytes # 0->1
225 > [4.000380 -> 4.000760] C2-07 -> C2-08 transfer of 10004 bytes # 1->2
226 > [6.000760 -> 6.001140] C2-08 -> C2-09 transfer of 10002 bytes # 2->3
227 > [18.001140 -> 18.001520] C1-00 -> C1-01 transfer of 10029 bytes # 4->5
228 > [38.001521 -> 38.001901] C1-02 -> C1-03 transfer of 10005 bytes # 6->7
229 > [48.001901 -> 48.002281] C1-03 -> C1-04 transfer of 10000 bytes # 7->8
230 > [48.001901 -> 48.294118] C1-03 -> C2-05 transfer of 10014000 bytes # 7->end
231 > [0.000000 -> 0.292217] C2-05 -> C1-01 transfer of 10014000 bytes # root->5
232 > [60.002281->62.002281] C2-05 compute 10000000129.452715 flops # end
233
234 $ rm -f dag.trace
235
236 ! expect return 2
237 $ $SG_TEST_EXENV ./simulate_dot --log=no_loc  "--log=sd_dotparse.thres:verbose" ${srcdir:=.}/../2clusters.xml ${srcdir:=.}/dag_with_bad_schedule.dot
238 > [0.000000] [surf_host/INFO] Switching to the L07 model to handle parallel tasks.
239 > [0.000000] [sd_dotparse/VERBOSE] The schedule is ignored, the task end is not correctly scheduled
240 > [0.000000] [sd_dotparse/VERBOSE] The schedule is ignored, the task 1 is not correctly scheduled
241 > [0.000000] [sd_dotparse/VERBOSE] The task 0 starts on the computer 1 at the position : 1 like the task 2
242 > [0.000000] [sd_dotparse/VERBOSE] The schedule is ignored, the task 3 is not correctly scheduled
243 > [0.000000] [sd_dotparse/VERBOSE] The schedule is ignored, the task root is not correctly scheduled
244 > [0.000000] [sd_dotparse/WARNING] The scheduling is ignored
245 > [0.000000] [test/CRITICAL] The dot file with the provided scheduling is wrong, more information with the option : --log=sd_dotparse.thres:verbose
246
247 $ $SG_TEST_EXENV ./simulate_dot --log=no_loc ${srcdir:=.}/../2clusters.xml ${srcdir:=.}/dag_with_good_schedule.dot
248 > [0.000000] [surf_host/INFO] Switching to the L07 model to handle parallel tasks.
249 > [0.000000] [test/INFO] ------------------- Display all tasks of the loaded DAG ---------------------------
250 > [0.000000] [sd_task/INFO] Displaying task root
251 > [0.000000] [sd_task/INFO]   - state:    runnable    
252 > [0.000000] [sd_task/INFO]   - kind: sequential computation
253 > [0.000000] [sd_task/INFO]   - tracing category: COMP_SEQ
254 > [0.000000] [sd_task/INFO]   - amount: 0
255 > [0.000000] [sd_task/INFO]   - Dependencies to satisfy: 0
256 > [0.000000] [sd_task/INFO]   - post-dependencies:
257 > [0.000000] [sd_task/INFO]     root->5
258 > [0.000000] [sd_task/INFO]     0
259 > [0.000000] [sd_task/INFO]     1
260 > [0.000000] [sd_task/INFO] Displaying task 0
261 > [0.000000] [sd_task/INFO]   - state:   scheduled not runnable    
262 > [0.000000] [sd_task/INFO]   - kind: sequential computation
263 > [0.000000] [sd_task/INFO]   - tracing category: taskA
264 > [0.000000] [sd_task/INFO]   - amount: 10000000129
265 > [0.000000] [sd_task/INFO]   - Dependencies to satisfy: 1
266 > [0.000000] [sd_task/INFO]   - pre-dependencies:
267 > [0.000000] [sd_task/INFO]     root
268 > [0.000000] [sd_task/INFO]   - post-dependencies:
269 > [0.000000] [sd_task/INFO]     0->2
270 > [0.000000] [sd_task/INFO]     2
271 > [0.000000] [sd_task/INFO] Displaying task 1
272 > [0.000000] [sd_task/INFO]   - state:   scheduled not runnable    
273 > [0.000000] [sd_task/INFO]   - kind: sequential computation
274 > [0.000000] [sd_task/INFO]   - tracing category: taskA
275 > [0.000000] [sd_task/INFO]   - amount: 10000000131
276 > [0.000000] [sd_task/INFO]   - Dependencies to satisfy: 1
277 > [0.000000] [sd_task/INFO]   - pre-dependencies:
278 > [0.000000] [sd_task/INFO]     root
279 > [0.000000] [sd_task/INFO]   - post-dependencies:
280 > [0.000000] [sd_task/INFO]     1->2
281 > [0.000000] [sd_task/INFO]     4
282 > [0.000000] [sd_task/INFO] Displaying task 2
283 > [0.000000] [sd_task/INFO]   - state:   scheduled not runnable    
284 > [0.000000] [sd_task/INFO]   - kind: sequential computation
285 > [0.000000] [sd_task/INFO]   - tracing category: taskA
286 > [0.000000] [sd_task/INFO]   - amount: 10000000121
287 > [0.000000] [sd_task/INFO]   - Dependencies to satisfy: 3
288 > [0.000000] [sd_task/INFO]   - pre-dependencies:
289 > [0.000000] [sd_task/INFO]     0->2
290 > [0.000000] [sd_task/INFO]     1->2
291 > [0.000000] [sd_task/INFO]     0
292 > [0.000000] [sd_task/INFO]   - post-dependencies:
293 > [0.000000] [sd_task/INFO]     2->3
294 > [0.000000] [sd_task/INFO]     3
295 > [0.000000] [sd_task/INFO] Displaying task 3
296 > [0.000000] [sd_task/INFO]   - state:   scheduled not runnable    
297 > [0.000000] [sd_task/INFO]   - kind: sequential computation
298 > [0.000000] [sd_task/INFO]   - tracing category: taskA
299 > [0.000000] [sd_task/INFO]   - amount: 10000000231
300 > [0.000000] [sd_task/INFO]   - Dependencies to satisfy: 2
301 > [0.000000] [sd_task/INFO]   - pre-dependencies:
302 > [0.000000] [sd_task/INFO]     2->3
303 > [0.000000] [sd_task/INFO]     2
304 > [0.000000] [sd_task/INFO]   - post-dependencies:
305 > [0.000000] [sd_task/INFO]     4
306 > [0.000000] [sd_task/INFO]     8
307 > [0.000000] [sd_task/INFO] Displaying task 4
308 > [0.000000] [sd_task/INFO]   - state:   scheduled not runnable    
309 > [0.000000] [sd_task/INFO]   - kind: sequential computation
310 > [0.000000] [sd_task/INFO]   - tracing category: taskB
311 > [0.000000] [sd_task/INFO]   - amount: 10000000005
312 > [0.000000] [sd_task/INFO]   - Dependencies to satisfy: 2
313 > [0.000000] [sd_task/INFO]   - pre-dependencies:
314 > [0.000000] [sd_task/INFO]     3
315 > [0.000000] [sd_task/INFO]     1
316 > [0.000000] [sd_task/INFO]   - post-dependencies:
317 > [0.000000] [sd_task/INFO]     4->5
318 > [0.000000] [sd_task/INFO]     5
319 > [0.000000] [sd_task/INFO] Displaying task 5
320 > [0.000000] [sd_task/INFO]   - state:   scheduled not runnable    
321 > [0.000000] [sd_task/INFO]   - kind: sequential computation
322 > [0.000000] [sd_task/INFO]   - tracing category: taskB
323 > [0.000000] [sd_task/INFO]   - amount: 10000000046
324 > [0.000000] [sd_task/INFO]   - Dependencies to satisfy: 3
325 > [0.000000] [sd_task/INFO]   - pre-dependencies:
326 > [0.000000] [sd_task/INFO]     root->5
327 > [0.000000] [sd_task/INFO]     4->5
328 > [0.000000] [sd_task/INFO]     4
329 > [0.000000] [sd_task/INFO]   - post-dependencies:
330 > [0.000000] [sd_task/INFO]     6
331 > [0.000000] [sd_task/INFO] Displaying task 6
332 > [0.000000] [sd_task/INFO]   - state:   scheduled not runnable    
333 > [0.000000] [sd_task/INFO]   - kind: sequential computation
334 > [0.000000] [sd_task/INFO]   - tracing category: taskB
335 > [0.000000] [sd_task/INFO]   - amount: 10000000092
336 > [0.000000] [sd_task/INFO]   - Dependencies to satisfy: 1
337 > [0.000000] [sd_task/INFO]   - pre-dependencies:
338 > [0.000000] [sd_task/INFO]     5
339 > [0.000000] [sd_task/INFO]   - post-dependencies:
340 > [0.000000] [sd_task/INFO]     6->7
341 > [0.000000] [sd_task/INFO]     7
342 > [0.000000] [sd_task/INFO] Displaying task 7
343 > [0.000000] [sd_task/INFO]   - state:   scheduled not runnable    
344 > [0.000000] [sd_task/INFO]   - kind: sequential computation
345 > [0.000000] [sd_task/INFO]   - tracing category: taskB
346 > [0.000000] [sd_task/INFO]   - amount: 10000000041
347 > [0.000000] [sd_task/INFO]   - Dependencies to satisfy: 2
348 > [0.000000] [sd_task/INFO]   - pre-dependencies:
349 > [0.000000] [sd_task/INFO]     6->7
350 > [0.000000] [sd_task/INFO]     6
351 > [0.000000] [sd_task/INFO]   - post-dependencies:
352 > [0.000000] [sd_task/INFO]     7->8
353 > [0.000000] [sd_task/INFO]     7->end
354 > [0.000000] [sd_task/INFO]     end
355 > [0.000000] [sd_task/INFO] Displaying task 8
356 > [0.000000] [sd_task/INFO]   - state:   scheduled not runnable    
357 > [0.000000] [sd_task/INFO]   - kind: sequential computation
358 > [0.000000] [sd_task/INFO]   - tracing category: taskC
359 > [0.000000] [sd_task/INFO]   - amount: 10000000250
360 > [0.000000] [sd_task/INFO]   - Dependencies to satisfy: 2
361 > [0.000000] [sd_task/INFO]   - pre-dependencies:
362 > [0.000000] [sd_task/INFO]     7->8
363 > [0.000000] [sd_task/INFO]     3
364 > [0.000000] [sd_task/INFO]   - post-dependencies:
365 > [0.000000] [sd_task/INFO]     9
366 > [0.000000] [sd_task/INFO] Displaying task 9
367 > [0.000000] [sd_task/INFO]   - state:   scheduled not runnable    
368 > [0.000000] [sd_task/INFO]   - kind: sequential computation
369 > [0.000000] [sd_task/INFO]   - tracing category: taskC
370 > [0.000000] [sd_task/INFO]   - amount: 10000000079
371 > [0.000000] [sd_task/INFO]   - Dependencies to satisfy: 1
372 > [0.000000] [sd_task/INFO]   - pre-dependencies:
373 > [0.000000] [sd_task/INFO]     8
374 > [0.000000] [sd_task/INFO]   - post-dependencies:
375 > [0.000000] [sd_task/INFO]     end
376 > [0.000000] [sd_task/INFO] Displaying task root->5
377 > [0.000000] [sd_task/INFO]   - state:   scheduled not runnable    
378 > [0.000000] [sd_task/INFO]   - kind: end-to-end communication
379 > [0.000000] [sd_task/INFO]   - tracing category: COMM_E2E
380 > [0.000000] [sd_task/INFO]   - amount: 10014000
381 > [0.000000] [sd_task/INFO]   - Dependencies to satisfy: 1
382 > [0.000000] [sd_task/INFO]   - pre-dependencies:
383 > [0.000000] [sd_task/INFO]     root
384 > [0.000000] [sd_task/INFO]   - post-dependencies:
385 > [0.000000] [sd_task/INFO]     5
386 > [0.000000] [sd_task/INFO] Displaying task 0->2
387 > [0.000000] [sd_task/INFO]   - state:   scheduled not runnable    
388 > [0.000000] [sd_task/INFO]   - kind: end-to-end communication
389 > [0.000000] [sd_task/INFO]   - tracing category: taskA
390 > [0.000000] [sd_task/INFO]   - amount: 10001
391 > [0.000000] [sd_task/INFO]   - Dependencies to satisfy: 1
392 > [0.000000] [sd_task/INFO]   - pre-dependencies:
393 > [0.000000] [sd_task/INFO]     0
394 > [0.000000] [sd_task/INFO]   - post-dependencies:
395 > [0.000000] [sd_task/INFO]     2
396 > [0.000000] [sd_task/INFO] Displaying task 1->2
397 > [0.000000] [sd_task/INFO]   - state:   scheduled not runnable    
398 > [0.000000] [sd_task/INFO]   - kind: end-to-end communication
399 > [0.000000] [sd_task/INFO]   - tracing category: taskA
400 > [0.000000] [sd_task/INFO]   - amount: 10004
401 > [0.000000] [sd_task/INFO]   - Dependencies to satisfy: 1
402 > [0.000000] [sd_task/INFO]   - pre-dependencies:
403 > [0.000000] [sd_task/INFO]     1
404 > [0.000000] [sd_task/INFO]   - post-dependencies:
405 > [0.000000] [sd_task/INFO]     2
406 > [0.000000] [sd_task/INFO] Displaying task 2->3
407 > [0.000000] [sd_task/INFO]   - state:   scheduled not runnable    
408 > [0.000000] [sd_task/INFO]   - kind: end-to-end communication
409 > [0.000000] [sd_task/INFO]   - tracing category: taskA
410 > [0.000000] [sd_task/INFO]   - amount: 10002
411 > [0.000000] [sd_task/INFO]   - Dependencies to satisfy: 1
412 > [0.000000] [sd_task/INFO]   - pre-dependencies:
413 > [0.000000] [sd_task/INFO]     2
414 > [0.000000] [sd_task/INFO]   - post-dependencies:
415 > [0.000000] [sd_task/INFO]     3
416 > [0.000000] [sd_task/INFO] Displaying task 4->5
417 > [0.000000] [sd_task/INFO]   - state:   scheduled not runnable    
418 > [0.000000] [sd_task/INFO]   - kind: end-to-end communication
419 > [0.000000] [sd_task/INFO]   - tracing category: taskB
420 > [0.000000] [sd_task/INFO]   - amount: 10029
421 > [0.000000] [sd_task/INFO]   - Dependencies to satisfy: 1
422 > [0.000000] [sd_task/INFO]   - pre-dependencies:
423 > [0.000000] [sd_task/INFO]     4
424 > [0.000000] [sd_task/INFO]   - post-dependencies:
425 > [0.000000] [sd_task/INFO]     5
426 > [0.000000] [sd_task/INFO] Displaying task 6->7
427 > [0.000000] [sd_task/INFO]   - state:   scheduled not runnable    
428 > [0.000000] [sd_task/INFO]   - kind: end-to-end communication
429 > [0.000000] [sd_task/INFO]   - tracing category: taskB
430 > [0.000000] [sd_task/INFO]   - amount: 10005
431 > [0.000000] [sd_task/INFO]   - Dependencies to satisfy: 1
432 > [0.000000] [sd_task/INFO]   - pre-dependencies:
433 > [0.000000] [sd_task/INFO]     6
434 > [0.000000] [sd_task/INFO]   - post-dependencies:
435 > [0.000000] [sd_task/INFO]     7
436 > [0.000000] [sd_task/INFO] Displaying task 7->8
437 > [0.000000] [sd_task/INFO]   - state:   scheduled not runnable    
438 > [0.000000] [sd_task/INFO]   - kind: end-to-end communication
439 > [0.000000] [sd_task/INFO]   - tracing category: taskB
440 > [0.000000] [sd_task/INFO]   - amount: 10000
441 > [0.000000] [sd_task/INFO]   - Dependencies to satisfy: 1
442 > [0.000000] [sd_task/INFO]   - pre-dependencies:
443 > [0.000000] [sd_task/INFO]     7
444 > [0.000000] [sd_task/INFO]   - post-dependencies:
445 > [0.000000] [sd_task/INFO]     8
446 > [0.000000] [sd_task/INFO] Displaying task 7->end
447 > [0.000000] [sd_task/INFO]   - state:   scheduled not runnable    
448 > [0.000000] [sd_task/INFO]   - kind: end-to-end communication
449 > [0.000000] [sd_task/INFO]   - tracing category: taskB
450 > [0.000000] [sd_task/INFO]   - amount: 10014000
451 > [0.000000] [sd_task/INFO]   - Dependencies to satisfy: 1
452 > [0.000000] [sd_task/INFO]   - pre-dependencies:
453 > [0.000000] [sd_task/INFO]     7
454 > [0.000000] [sd_task/INFO]   - post-dependencies:
455 > [0.000000] [sd_task/INFO]     end
456 > [0.000000] [sd_task/INFO] Displaying task end
457 > [0.000000] [sd_task/INFO]   - state:   scheduled not runnable    
458 > [0.000000] [sd_task/INFO]   - kind: sequential computation
459 > [0.000000] [sd_task/INFO]   - tracing category: COMP_SEQ
460 > [0.000000] [sd_task/INFO]   - amount: 10000000129
461 > [0.000000] [sd_task/INFO]   - Dependencies to satisfy: 3
462 > [0.000000] [sd_task/INFO]   - pre-dependencies:
463 > [0.000000] [sd_task/INFO]     7->end
464 > [0.000000] [sd_task/INFO]     9
465 > [0.000000] [sd_task/INFO]     7
466 > [0.000000] [test/INFO] ------------------- Run the schedule ---------------------------
467 > [20.000866] [test/INFO] ------------------- Produce the trace file---------------------------
468 > [20.000866] [test/INFO] Producing the trace of the run into dag_with_good_schedule.trace
469
470 $ cat ${srcdir:=.}/dag_with_good_schedule.trace
471 > [0.000000->0.000000] C2-05 compute 0.000000 flops # root
472 > [0.000000->2.000000] C2-06 compute 10000000129.452715 flops # 0
473 > [0.000000->2.000000] C2-05 compute 10000000131.133657 flops # 1
474 > [2.000380->4.000380] C2-06 compute 10000000121.124870 flops # 2
475 > [4.000415->6.000415] C2-06 compute 10000000230.608025 flops # 3
476 > [6.000415->8.000415] C2-05 compute 10000000004.994019 flops # 4
477 > [8.000450->10.000450] C2-05 compute 10000000046.016401 flops # 5
478 > [10.000450->12.000450] C2-05 compute 10000000091.598791 flops # 6
479 > [12.000485->14.000485] C2-05 compute 10000000040.679438 flops # 7
480 > [14.000865->16.000866] C2-06 compute 10000000250.490017 flops # 8
481 > [16.000866->18.000866] C2-06 compute 10000000079.267649 flops # 9
482 > [0.000000 -> 0.020123] C2-05 -> C2-05 transfer of 10014000 bytes # root->5
483 > [2.000000 -> 2.000035] C2-06 -> C2-06 transfer of 10001 bytes # 0->2
484 > [2.000000 -> 2.000380] C2-05 -> C2-06 transfer of 10004 bytes # 1->2
485 > [4.000380 -> 4.000415] C2-06 -> C2-06 transfer of 10002 bytes # 2->3
486 > [8.000415 -> 8.000450] C2-05 -> C2-05 transfer of 10029 bytes # 4->5
487 > [12.000450 -> 12.000485] C2-05 -> C2-05 transfer of 10005 bytes # 6->7
488 > [14.000485 -> 14.000865] C2-05 -> C2-06 transfer of 10000 bytes # 7->8
489 > [14.000485 -> 14.020609] C2-05 -> C2-05 transfer of 10014000 bytes # 7->end
490 > [18.000866->20.000866] C2-05 compute 10000000129.452715 flops # end
491
492 $ rm -f ${srcdir:=.}/dag_with_good_schedule.trace
493
494 ! expect return 2
495 $ $SG_TEST_EXENV ./dot_test --log=no_loc ${srcdir:=.}/../2clusters.xml ${srcdir:=.}/dag_with_cycle.dot
496 > [0.000000] [surf_host/INFO] Switching to the L07 model to handle parallel tasks.
497 > [0.000000] [sd_daxparse/WARNING] the task root is not marked
498 > [0.000000] [sd_daxparse/WARNING] the task 0 is in a cycle
499 > [0.000000] [sd_daxparse/WARNING] the task 1 is in a cycle
500 > [0.000000] [sd_daxparse/WARNING] the task 2 is in a cycle
501 > [0.000000] [sd_daxparse/WARNING] the task 3 is in a cycle
502 > [0.000000] [sd_daxparse/WARNING] the task 4 is in a cycle
503 > [0.000000] [sd_daxparse/WARNING] the task 5 is in a cycle
504 > [0.000000] [sd_daxparse/WARNING] the task 6 is in a cycle
505 > [0.000000] [sd_dotparse/ERROR] The DOT described in dag_with_cycle.dot is not a DAG. It contains a cycle.
506 > [0.000000] [test/CRITICAL] No dot loaded. Do you have a cycle in your graph?