Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
34171340f455f180163d7a6711dadc5fce9e2832
[simgrid.git] / examples / simdag / daxload / sd_daxload.tesh
1 #! ./tesh
2 p Test the DAX loader on a small DAX instance
3
4 ! output sort
5 $ $SG_TEST_EXENV ${bindir:=.}/daxload/sd_daxload --log=no_loc ${srcdir:=.}/../platforms/cluster.xml ${srcdir:=.}/daxload/smalldax.xml
6 > [0.000000] [xbt_cfg/INFO] Switching to the L07 model to handle parallel tasks.
7 > [0.000000] [sd_daxparse/WARNING] Ignore file o1 size redefinition from 1000000 to 304
8 > [0.000000] [sd_daxparse/WARNING] Ignore file o2 size redefinition from 1000000 to 304
9 > [0.000000] [test/INFO] ------------------- Display all tasks of the loaded DAG ---------------------------
10 > [0.000000] [sd_task/INFO] Displaying task root
11 > [0.000000] [sd_task/INFO]   - state: schedulable not runnable
12 > [0.000000] [sd_task/INFO]   - kind: sequential computation
13 > [0.000000] [sd_task/INFO]   - amount: 0
14 > [0.000000] [sd_task/INFO]   - Dependencies to satisfy: 0
15 > [0.000000] [sd_task/INFO]   - post-dependencies:
16 > [0.000000] [sd_task/INFO]     root_i1_1@task1
17 > [0.000000] [sd_task/INFO]     root_i2_2@task2
18 > [0.000000] [sd_task/INFO] Displaying task 1@task1
19 > [0.000000] [sd_task/INFO]   - state: not scheduled not runnable
20 > [0.000000] [sd_task/INFO]   - kind: sequential computation
21 > [0.000000] [sd_task/INFO]   - amount: 42000000000
22 > [0.000000] [sd_task/INFO]   - Dependencies to satisfy: 1
23 > [0.000000] [sd_task/INFO]   - pre-dependencies:
24 > [0.000000] [sd_task/INFO]     root_i1_1@task1
25 > [0.000000] [sd_task/INFO]   - post-dependencies:
26 > [0.000000] [sd_task/INFO]     3@task1
27 > [0.000000] [sd_task/INFO]     1@task1_o1_3@task1
28 > [0.000000] [sd_task/INFO] Displaying task 2@task2
29 > [0.000000] [sd_task/INFO]   - state: not scheduled not runnable
30 > [0.000000] [sd_task/INFO]   - kind: sequential computation
31 > [0.000000] [sd_task/INFO]   - amount: 42000000000
32 > [0.000000] [sd_task/INFO]   - Dependencies to satisfy: 1
33 > [0.000000] [sd_task/INFO]   - pre-dependencies:
34 > [0.000000] [sd_task/INFO]     root_i2_2@task2
35 > [0.000000] [sd_task/INFO]   - post-dependencies:
36 > [0.000000] [sd_task/INFO]     3@task1
37 > [0.000000] [sd_task/INFO]     2@task2_o2_3@task1
38 > [0.000000] [sd_task/INFO] Displaying task 3@task1
39 > [0.000000] [sd_task/INFO]   - state: not scheduled not runnable
40 > [0.000000] [sd_task/INFO]   - kind: sequential computation
41 > [0.000000] [sd_task/INFO]   - amount: 42000000000
42 > [0.000000] [sd_task/INFO]   - Dependencies to satisfy: 4
43 > [0.000000] [sd_task/INFO]   - pre-dependencies:
44 > [0.000000] [sd_task/INFO]     2@task2
45 > [0.000000] [sd_task/INFO]     1@task1
46 > [0.000000] [sd_task/INFO]     2@task2_o2_3@task1
47 > [0.000000] [sd_task/INFO]     1@task1_o1_3@task1
48 > [0.000000] [sd_task/INFO]   - post-dependencies:
49 > [0.000000] [sd_task/INFO]     3@task1_o3_end
50 > [0.000000] [sd_task/INFO] Displaying task root_i2_2@task2
51 > [0.000000] [sd_task/INFO]   - state: not scheduled not runnable
52 > [0.000000] [sd_task/INFO]   - kind: end-to-end communication
53 > [0.000000] [sd_task/INFO]   - amount: 1000000
54 > [0.000000] [sd_task/INFO]   - Dependencies to satisfy: 1
55 > [0.000000] [sd_task/INFO]   - pre-dependencies:
56 > [0.000000] [sd_task/INFO]     root
57 > [0.000000] [sd_task/INFO]   - post-dependencies:
58 > [0.000000] [sd_task/INFO]     2@task2
59 > [0.000000] [sd_task/INFO] Displaying task 1@task1_o1_3@task1
60 > [0.000000] [sd_task/INFO]   - state: not scheduled not runnable
61 > [0.000000] [sd_task/INFO]   - kind: end-to-end communication
62 > [0.000000] [sd_task/INFO]   - amount: 1000000
63 > [0.000000] [sd_task/INFO]   - Dependencies to satisfy: 1
64 > [0.000000] [sd_task/INFO]   - pre-dependencies:
65 > [0.000000] [sd_task/INFO]     1@task1
66 > [0.000000] [sd_task/INFO]   - post-dependencies:
67 > [0.000000] [sd_task/INFO]     3@task1
68 > [0.000000] [sd_task/INFO] Displaying task 2@task2_o2_3@task1
69 > [0.000000] [sd_task/INFO]   - state: not scheduled not runnable
70 > [0.000000] [sd_task/INFO]   - kind: end-to-end communication
71 > [0.000000] [sd_task/INFO]   - amount: 1000000
72 > [0.000000] [sd_task/INFO]   - Dependencies to satisfy: 1
73 > [0.000000] [sd_task/INFO]   - pre-dependencies:
74 > [0.000000] [sd_task/INFO]     2@task2
75 > [0.000000] [sd_task/INFO]   - post-dependencies:
76 > [0.000000] [sd_task/INFO]     3@task1
77 > [0.000000] [sd_task/INFO] Displaying task 3@task1_o3_end
78 > [0.000000] [sd_task/INFO]   - state: not scheduled not runnable
79 > [0.000000] [sd_task/INFO]   - kind: end-to-end communication
80 > [0.000000] [sd_task/INFO]   - amount: 4167312
81 > [0.000000] [sd_task/INFO]   - Dependencies to satisfy: 1
82 > [0.000000] [sd_task/INFO]   - pre-dependencies:
83 > [0.000000] [sd_task/INFO]     3@task1
84 > [0.000000] [sd_task/INFO]   - post-dependencies:
85 > [0.000000] [sd_task/INFO]     end
86 > [0.000000] [sd_task/INFO] Displaying task root_i1_1@task1
87 > [0.000000] [sd_task/INFO]   - state: not scheduled not runnable
88 > [0.000000] [sd_task/INFO]   - kind: end-to-end communication
89 > [0.000000] [sd_task/INFO]   - amount: 1000000
90 > [0.000000] [sd_task/INFO]   - Dependencies to satisfy: 1
91 > [0.000000] [sd_task/INFO]   - pre-dependencies:
92 > [0.000000] [sd_task/INFO]     root
93 > [0.000000] [sd_task/INFO]   - post-dependencies:
94 > [0.000000] [sd_task/INFO]     1@task1
95 > [0.000000] [sd_task/INFO] Displaying task end
96 > [0.000000] [sd_task/INFO]   - state: not scheduled not runnable
97 > [0.000000] [sd_task/INFO]   - kind: sequential computation
98 > [0.000000] [sd_task/INFO]   - amount: 0
99 > [0.000000] [sd_task/INFO]   - Dependencies to satisfy: 1
100 > [0.000000] [sd_task/INFO]   - pre-dependencies:
101 > [0.000000] [sd_task/INFO]     3@task1_o3_end
102 > [0.000000] [test/INFO] ------------------- Schedule tasks ---------------------------
103 > [0.000000] [test/INFO] ------------------- Run the schedule ---------------------------
104 > [84.067138] [test/INFO] ------------------- Produce the trace file---------------------------
105 > [84.067138] [test/INFO] Producing the trace of the run into smalldax.trace
106
107 $ cat ${srcdir:=.}/daxload/smalldax.trace
108 > [0.000000] node-0.acme.org compute 0.000000 # root
109 > [0.016600] node-1.acme.org compute 42000000000.000000 # 1@task1
110 > [0.016600] node-10.acme.org compute 42000000000.000000 # 2@task2
111 > [42.033200] node-11.acme.org compute 42000000000.000000 # 3@task1
112 > [0.000000] node-0.acme.org send node-10.acme.org 1000000.000000 # root_i2_2@task2
113 > [0.016600] node-10.acme.org recv node-0.acme.org 1000000.000000 # root_i2_2@task2
114 > [42.016600] node-1.acme.org send node-11.acme.org 1000000.000000 # 1@task1_o1_3@task1
115 > [42.033200] node-11.acme.org recv node-1.acme.org 1000000.000000 # 1@task1_o1_3@task1
116 > [42.016600] node-10.acme.org send node-11.acme.org 1000000.000000 # 2@task2_o2_3@task1
117 > [42.033200] node-11.acme.org recv node-10.acme.org 1000000.000000 # 2@task2_o2_3@task1
118 > [84.033200] node-11.acme.org send node-0.acme.org 4167312.000000 # 3@task1_o3_end
119 > [84.067138] node-0.acme.org recv node-11.acme.org 4167312.000000 # 3@task1_o3_end
120 > [0.000000] node-0.acme.org send node-1.acme.org 1000000.000000 # root_i1_1@task1
121 > [0.016600] node-1.acme.org recv node-0.acme.org 1000000.000000 # root_i1_1@task1
122 > [84.067138] node-0.acme.org compute 0.000000 # end
123
124 $ cmake -E remove -f ${srcdir:=.}/dax.dot ${srcdir:=.}/daxload/smalldax.trace
125
126 p Test the DAX loader with a DAX comprising a cycle.
127
128 ! expect return 255
129 $ $SG_TEST_EXENV ${bindir:=.}/daxload/sd_daxload --log=no_loc ${srcdir:=.}/../platforms/cluster.xml ${srcdir:=.}/daxload/simple_dax_with_cycle.xml
130 > [0.000000] [xbt_cfg/INFO] Switching to the L07 model to handle parallel tasks.
131 > [0.000000] [sd_daxparse/WARNING] the task root is not marked
132 > [0.000000] [sd_daxparse/WARNING] the task 1@task1 is in a cycle
133 > [0.000000] [sd_daxparse/WARNING] the task 3@task3 is in a cycle
134 > [0.000000] [sd_daxparse/ERROR] The DAX described in simple_dax_with_cycle.xml is not a DAG. It contains a cycle.
135 > [0.000000] [test/ERROR] A problem occurred during DAX parsing (cycle or syntax). Do not continue this test