Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
8bb201436474fcfabb573d09ecb4ba21a347630b
[simgrid.git] / examples / smpi / replay / replay-override-replayer.tesh
1 # use the tested library, not the installed one
2 # (since we want to pass it to the child, it has to be redefined before each command)
3 # Go for the first test
4
5 p Test of trace replay with SMPI (one trace for all processes)
6
7 < replay/actions_bcast.txt
8 $ mkfile replay/one_trace_override
9 ! timeout 60
10
11 $ ../../smpi_script/bin/smpirun -no-privatize -replay replay/one_trace_override --log=replay.thresh:critical --log=smpi_replay.thresh:verbose --log=no_loc -np 3 -platform ${srcdir:=.}/../platforms/small_platform.xml -hostfile ${srcdir:=.}/hostfile --log=smpi_config.thres:warning --log=xbt_cfg.thres:warning
12 > [Tremblay:0:(1) 0.000000] [smpi_replay/VERBOSE] 0 bcast 5e4 0.000000
13 > [Jupiter:1:(2) 0.015036] [smpi_replay/VERBOSE] 1 bcast 5e4 0.015036
14 > [Fafard:2:(3) 0.015676] [smpi_replay/VERBOSE] 2 bcast 5e4 0.015676
15 > [Jupiter:1:(2) 2.636405] [smpi_replay/VERBOSE] 1 compute 2e8 2.621369
16 > [Tremblay:0:(1) 5.097100] [smpi_replay/VERBOSE] 0 compute 5e8 5.097100
17 > [Tremblay:0:(1) 5.097100] [smpi_replay/VERBOSE] 0 bcast 5e4 0.000000
18 > [Jupiter:1:(2) 5.112136] [smpi_replay/VERBOSE] 1 bcast 5e4 2.475730
19 > [Fafard:2:(3) 6.569099] [smpi_replay/VERBOSE] 2 compute 5e8 6.553424
20 > [Fafard:2:(3) 6.584775] [smpi_replay/VERBOSE] 2 bcast 5e4 0.015676
21 > [Jupiter:1:(2) 7.733505] [smpi_replay/VERBOSE] 1 compute 2e8 2.621369
22 > [Tremblay:0:(1) 10.194200] [smpi_replay/VERBOSE] 0 compute 5e8 5.097100
23 > [Fafard:2:(3) 13.138198] [smpi_replay/VERBOSE] 2 compute 5e8 6.553424
24 > [Jupiter:1:(2) 14.286929] [smpi_replay/VERBOSE] 1 reduce 5e4 5e8 6.553424
25 > [Tremblay:0:(1) 18.250974] [smpi_replay/VERBOSE] 0 reduce 5e4 5e8 8.056774
26 > [Fafard:2:(3) 19.691622] [smpi_replay/VERBOSE] 2 reduce 5e4 5e8 6.553424
27 > [Fafard:2:(3) 19.691622] [smpi_replay/INFO] Simulation time 19.691622
28
29 $ rm -f replay/one_trace_override
30
31 p The same with tracing activated
32
33 < replay/actions_bcast.txt
34 $ mkfile replay/one_trace_override
35
36 $ ../../smpi_script/bin/smpirun -no-privatize -replay replay/one_trace_override --log=replay.thresh:critical --log=no_loc  --cfg=tracing:yes --cfg=tracing/smpi:yes --cfg=tracing/smpi/computing:yes --cfg=tracing/filename:./simgrid_override.trace  -np 3 -platform ${srcdir:=.}/../platforms/small_platform.xml -hostfile ${srcdir:=.}/hostfile  --log=smpi_config.thres:warning --log=xbt_cfg.thres:warning
37 > [Fafard:2:(3) 19.691622] [smpi_replay/INFO] Simulation time 19.691622
38
39 # $ rm -f replay/one_trace_override
40
41 $ tail -n +3 ./simgrid_override.trace
42 > %EventDef PajeDefineContainerType 0
43 > %       Alias string
44 > %       Type string
45 > %       Name string
46 > %EndEventDef
47 > %EventDef PajeDefineVariableType 1
48 > %       Alias string
49 > %       Type string
50 > %       Name string
51 > %       Color color
52 > %EndEventDef
53 > %EventDef PajeDefineStateType 2
54 > %       Alias string
55 > %       Type string
56 > %       Name string
57 > %EndEventDef
58 > %EventDef PajeDefineEventType 3
59 > %       Alias string
60 > %       Type string
61 > %       Name string
62 > %EndEventDef
63 > %EventDef PajeDefineLinkType 4
64 > %       Alias string
65 > %       Type string
66 > %       StartContainerType string
67 > %       EndContainerType string
68 > %       Name string
69 > %EndEventDef
70 > %EventDef PajeDefineEntityValue 5
71 > %       Alias string
72 > %       Type string
73 > %       Name string
74 > %       Color color
75 > %EndEventDef
76 > %EventDef PajeCreateContainer 6
77 > %       Time date
78 > %       Alias string
79 > %       Type string
80 > %       Container string
81 > %       Name string
82 > %EndEventDef
83 > %EventDef PajeDestroyContainer 7
84 > %       Time date
85 > %       Type string
86 > %       Name string
87 > %EndEventDef
88 > %EventDef PajeSetVariable 8
89 > %       Time date
90 > %       Type string
91 > %       Container string
92 > %       Value double
93 > %EndEventDef
94 > %EventDef PajeAddVariable 9
95 > %       Time date
96 > %       Type string
97 > %       Container string
98 > %       Value double
99 > %EndEventDef
100 > %EventDef PajeSubVariable 10
101 > %       Time date
102 > %       Type string
103 > %       Container string
104 > %       Value double
105 > %EndEventDef
106 > %EventDef PajeSetState 11
107 > %       Time date
108 > %       Type string
109 > %       Container string
110 > %       Value string
111 > %EndEventDef
112 > %EventDef PajePushState 12
113 > %       Time date
114 > %       Type string
115 > %       Container string
116 > %       Value string
117 > %EndEventDef
118 > %EventDef PajePopState 13
119 > %       Time date
120 > %       Type string
121 > %       Container string
122 > %EndEventDef
123 > %EventDef PajeResetState 14
124 > %       Time date
125 > %       Type string
126 > %       Container string
127 > %EndEventDef
128 > %EventDef PajeStartLink 15
129 > %       Time date
130 > %       Type string
131 > %       Container string
132 > %       Value string
133 > %       StartContainer string
134 > %       Key string
135 > %EndEventDef
136 > %EventDef PajeEndLink 16
137 > %       Time date
138 > %       Type string
139 > %       Container string
140 > %       Value string
141 > %       EndContainer string
142 > %       Key string
143 > %EndEventDef
144 > %EventDef PajeNewEvent 17
145 > %       Time date
146 > %       Type string
147 > %       Container string
148 > %       Value string
149 > %EndEventDef
150 > 0 1 0 MPI
151 > 2 2 1 MPI_STATE
152 > 4 3 0 1 1 MPI_LINK
153 > 4 4 0 1 1 MIGRATE_LINK
154 > 2 5 1 MIGRATE_STATE
155 > 6 0.000000 1 1 0 "rank-0"
156 > 6 0.000000 2 1 0 "rank-1"
157 > 6 0.000000 3 1 0 "rank-2"
158 > 5 6 2 smpi_replay_run_init "0 1 0"
159 > 5 7 2 computing "0 1 1"
160 > 5 8 2 action_bcast "0 0.78 0.39"
161 > 12 0.000000 2 1 6
162 > 13 0.000000 2 1
163 > 12 0.000000 2 2 6
164 > 13 0.000000 2 2
165 > 12 0.000000 2 3 6
166 > 13 0.000000 2 3
167 > 12 0.000000 2 1 8
168 > 12 0.000000 2 2 8
169 > 12 0.000000 2 3 8
170 > 13 0.000000 2 1
171 > 12 0.000000 2 1 7
172 > 5 9 2 action_reduce "0 1 0"
173 > 5 10 2 smpi_replay_run_finalize "0 1 0"
174 > 13 0.015036 2 2
175 > 12 0.015036 2 2 7
176 > 13 0.015676 2 3
177 > 12 0.015676 2 3 7
178 > 13 2.636405 2 2
179 > 12 2.636405 2 2 8
180 > 13 5.097100 2 1
181 > 12 5.097100 2 1 8
182 > 13 5.097100 2 1
183 > 12 5.097100 2 1 7
184 > 13 5.112136 2 2
185 > 12 5.112136 2 2 7
186 > 13 6.569099 2 3
187 > 12 6.569099 2 3 8
188 > 13 6.584775 2 3
189 > 12 6.584775 2 3 7
190 > 13 7.733505 2 2
191 > 12 7.733505 2 2 9
192 > 12 7.733505 2 2 7
193 > 13 10.194200 2 1
194 > 12 10.194200 2 1 9
195 > 13 13.138198 2 3
196 > 12 13.138198 2 3 9
197 > 12 13.138198 2 3 7
198 > 12 13.153874 2 1 7
199 > 13 14.286929 2 2
200 > 13 14.286929 2 2
201 > 12 14.286929 2 2 10
202 > 13 14.286929 2 2
203 > 7 14.286929 1 2
204 > 13 18.250974 2 1
205 > 13 18.250974 2 1
206 > 12 18.250974 2 1 10
207 > 13 18.250974 2 1
208 > 7 18.250974 1 1
209 > 13 19.691622 2 3
210 > 13 19.691622 2 3
211 > 12 19.691622 2 3 10
212 > 13 19.691622 2 3
213 > 7 19.691622 1 3
214
215 $ rm -f ./simgrid_override.trace
216
217 p Another test of trace replay with SMPI (one trace per process)
218
219 < replay/actions0.txt
220 < replay/actions1.txt
221 $ mkfile ./split_traces_tesh_override
222
223 $ ../../smpi_script/bin/smpirun -no-privatize -replay ./split_traces_tesh_override --log=smpi_replay.thresh:verbose --log=no_loc  -np 2 -platform ${srcdir:=.}/../platforms/small_platform.xml -hostfile ${srcdir:=.}/hostfile --log=smpi_config.thres:warning --log=xbt_cfg.thres:warning
224 > [Tremblay:0:(1) 0.167158] [smpi_replay/VERBOSE] 0 send 1 0 1e6 0.167158
225 > [Jupiter:1:(2) 0.167158] [smpi_replay/VERBOSE] 1 recv 0 0 1e6 0.167158
226 > [Jupiter:1:(2) 13.274005] [smpi_replay/VERBOSE] 1 compute 1e9 13.106847
227 > [Jupiter:1:(2) 13.274005] [smpi_replay/VERBOSE] 1 isend 0 1 1e6 0.000000
228 > [Jupiter:1:(2) 13.274005] [smpi_replay/VERBOSE] 1 irecv 0 2 1e6 0.000000
229 > [Tremblay:0:(1) 13.441162] [smpi_replay/VERBOSE] 0 recv 1 1 1e6 13.274005
230 > [Jupiter:1:(2) 13.608320] [smpi_replay/VERBOSE] 1 wait 0 1 2 0.334315
231 > [Tremblay:0:(1) 13.608320] [smpi_replay/VERBOSE] 0 send 1 2 1e6 0.167158
232 > [Jupiter:1:(2) 13.608320] [smpi_replay/INFO] Simulation time 13.608320
233
234 $ rm -f ./split_traces_tesh_override
235
236 p Test of barrier replay with SMPI (one trace for all processes)
237
238 < replay/actions_barrier.txt
239 $ mkfile replay/one_trace_override
240
241 $ ../../smpi_script/bin/smpirun -no-privatize -replay replay/one_trace_override --log=replay.thresh:critical --log=smpi_replay.thresh:verbose --log=no_loc  -np 3 -platform ${srcdir:=.}/../platforms/small_platform.xml -hostfile ${srcdir:=.}/hostfile --log=smpi_config.thres:warning --log=xbt_cfg.thres:warning
242 > [Tremblay:0:(1) 1.518421] [smpi_replay/VERBOSE] 0 send 1 0 1e7 1.518421
243 > [Jupiter:1:(2) 1.518421] [smpi_replay/VERBOSE] 1 recv 0 0 1e7 1.518421
244 > [Tremblay:0:(1) 1.520397] [smpi_replay/VERBOSE] 0 barrier 0.001976
245 > [Jupiter:1:(2) 1.521858] [smpi_replay/VERBOSE] 1 barrier 0.003438
246 > [Fafard:2:(3) 1.522373] [smpi_replay/VERBOSE] 2 barrier 1.522373
247 > [Tremblay:0:(1) 2.520397] [smpi_replay/VERBOSE] 0 compute 98095000 1.000000
248 > [Jupiter:1:(2) 2.521858] [smpi_replay/VERBOSE] 1 compute 76296000 1.000000
249 > [Fafard:2:(3) 2.522373] [smpi_replay/VERBOSE] 2 compute 76296000 1.000000
250 > [Fafard:2:(3) 2.522373] [smpi_replay/INFO] Simulation time 2.522373
251
252 $ rm -f replay/one_trace_override
253
254 p Test of isend replay with SMPI (one trace for all processes)
255
256 < replay/actions_with_isend.txt
257 $ mkfile replay/one_trace_override
258
259 $ ../../smpi_script/bin/smpirun -no-privatize -replay replay/one_trace_override --log=replay.thresh:critical --log=smpi_replay.thresh:verbose --log=no_loc  -np 3 -platform ${srcdir:=.}/../platforms/small_platform.xml -hostfile ${srcdir:=.}/hostfile --log=smpi_config.thres:warning --log=xbt_cfg.thres:warning
260 > [Jupiter:1:(2) 0.000000] [smpi_replay/VERBOSE] 1 irecv 0 0 1e6 0.000000
261 > [Jupiter:1:(2) 6.553424] [smpi_replay/VERBOSE] 1 compute 5e8 6.553424
262 > [Jupiter:1:(2) 6.553524] [smpi_replay/VERBOSE] 1 test 0 1 0 0.000100
263 > [Tremblay:0:(1) 10.194200] [smpi_replay/VERBOSE] 0 compute 1e9 10.194200
264 > [Tremblay:0:(1) 10.361357] [smpi_replay/VERBOSE] 0 send 1 0 1e6 0.167158
265 > [Jupiter:1:(2) 13.106947] [smpi_replay/VERBOSE] 1 compute 5e8 6.553424
266 > [Jupiter:1:(2) 13.106947] [smpi_replay/VERBOSE] 1 wait 0 1 0 0.000000
267 > [Tremblay:0:(1) 20.555557] [smpi_replay/VERBOSE] 0 compute 1e9 10.194200
268 > [Fafard:2:(3) 26.213694] [smpi_replay/VERBOSE] 2 compute 2e9 26.213694
269 > [Fafard:2:(3) 26.213694] [smpi_replay/VERBOSE] 2 irecv 1 1 1e6 0.000000
270 > [Jupiter:1:(2) 26.403860] [smpi_replay/VERBOSE] 1 send 2 1 1e6 13.296913
271 > [Fafard:2:(3) 29.490406] [smpi_replay/VERBOSE] 2 compute 2.5e8 3.276712
272 > [Fafard:2:(3) 29.490606] [smpi_replay/VERBOSE] 2 test 1 2 1 0.000200
273 > [Fafard:2:(3) 32.767318] [smpi_replay/VERBOSE] 2 compute 2.5e8 3.276712
274 > [Fafard:2:(3) 32.767318] [smpi_replay/VERBOSE] 2 wait 1 2 1 0.000000
275 > [Fafard:2:(3) 32.767318] [smpi_replay/VERBOSE] 2 isend 0 2 1e6 0.000000
276 > [Tremblay:0:(1) 32.923014] [smpi_replay/VERBOSE] 0 recv 2 2 1e6 12.367458
277 > [Fafard:2:(3) 39.320741] [smpi_replay/VERBOSE] 2 compute 5e8 6.553424
278 > [Fafard:2:(3) 39.320741] [smpi_replay/INFO] Simulation time 39.320741
279
280 $ rm -f replay/one_trace_override
281
282 p Test of AllReduce replay with SMPI (one trace for all processes)
283
284 < replay/actions_allreduce.txt
285 $ mkfile replay/one_trace_override
286
287 $ ../../smpi_script/bin/smpirun -no-privatize -replay replay/one_trace_override --log=replay.thresh:critical --log=smpi_replay.thresh:verbose --log=no_loc  -np 3 -platform ${srcdir:=.}/../platforms/small_platform.xml -hostfile ${srcdir:=.}/hostfile --log=smpi_config.thres:warning --log=xbt_cfg.thres:warning
288 > [Tremblay:0:(1) 5.112775] [smpi_replay/VERBOSE] 0 allreduce 5e4 5e8 5.112775
289 > [Jupiter:1:(2) 6.584135] [smpi_replay/VERBOSE] 1 allreduce 5e4 5e8 6.584135
290 > [Fafard:2:(3) 6.584775] [smpi_replay/VERBOSE] 2 allreduce 5e4 5e8 6.584775
291 > [Tremblay:0:(1) 10.209875] [smpi_replay/VERBOSE] 0 compute 5e8 5.097100
292 > [Jupiter:1:(2) 13.137559] [smpi_replay/VERBOSE] 1 compute 5e8 6.553424
293 > [Fafard:2:(3) 13.138198] [smpi_replay/VERBOSE] 2 compute 5e8 6.553424
294 > [Fafard:2:(3) 13.138198] [smpi_replay/INFO] Simulation time 13.138198
295
296 $ rm -f replay/one_trace_override
297
298 p Test of AllToAll replay with SMPI (one trace for all processes)
299
300 < replay/actions_alltoall.txt
301 $ mkfile replay/one_trace_override
302
303 $ ../../smpi_script/bin/smpirun -no-privatize -replay replay/one_trace_override --log=replay.thresh:critical --log=smpi_replay.thresh:verbose --log=no_loc  -np 3 -platform ${srcdir:=.}/../platforms/small_platform.xml -hostfile ${srcdir:=.}/hostfile --log=smpi_config.thres:warning --log=xbt_cfg.thres:warning
304 > [Tremblay:0:(1) 0.004041] [smpi_replay/VERBOSE] 0 alltoall 500 500 0.004041
305 > [Fafard:2:(3) 0.006920] [smpi_replay/VERBOSE] 2 alltoall 500 500 0.006920
306 > [Jupiter:1:(2) 0.006920] [smpi_replay/VERBOSE] 1 alltoall 500 500 0.006920
307 > [Jupiter:1:(2) 0.006920] [smpi_replay/INFO] Simulation time 0.006920
308
309
310
311 $ rm -f replay/one_trace_override
312
313 p Test of AllToAllv replay with SMPI (one trace for all processes)
314
315 < replay/actions_alltoallv.txt
316 $ mkfile replay/one_trace_override
317
318 $ ../../smpi_script/bin/smpirun -no-privatize -replay replay/one_trace_override --log=replay.thresh:critical --log=smpi_replay.thresh:verbose --log=no_loc  -np 3 -platform ${srcdir:=.}/../platforms/small_platform.xml -hostfile ${srcdir:=.}/hostfile --log=smpi_config.thres:warning --log=xbt_cfg.thres:warning
319 > [Tremblay:0:(1) 0.004000] [smpi_replay/VERBOSE] 0 alltoallv 100 1 40 30 1000 1 80 100 0.004000
320 > [Jupiter:1:(2) 0.006935] [smpi_replay/VERBOSE] 1 alltoallv 1000 80 1 40 1000 40 1 30 0.006935
321 > [Fafard:2:(3) 0.006936] [smpi_replay/VERBOSE] 2 alltoallv 1000 100 30 1 1000 30 40 1 0.006936
322 > [Fafard:2:(3) 0.006936] [smpi_replay/INFO] Simulation time 0.006936
323
324 $ rm -f replay/one_trace_override
325
326 p Test of AllGatherv replay with SMPI (one trace for all processes)
327
328 < replay/actions_allgatherv.txt
329 $ mkfile replay/one_trace_override
330
331 $ ../../smpi_script/bin/smpirun -no-privatize -replay replay/one_trace_override --log=replay.thresh:critical --log=smpi_replay.thresh:verbose --log=no_loc  -np 4 -platform ${srcdir:=.}/../platforms/small_platform.xml -hostfile ${srcdir:=.}/hostfile --log=smpi_config.thres:warning --log=xbt_cfg.thres:warning
332 > [Tremblay:0:(1) 1.397261] [smpi_replay/VERBOSE] 0 allgatherv 275427 275427 275427 275427 204020 0 0 1.397261
333 > [Ginette:3:(4) 1.760421] [smpi_replay/VERBOSE] 3 allgatherv 204020 275427 275427 275427 204020 0 0 1.760421
334 > [Fafard:2:(3) 1.941986] [smpi_replay/VERBOSE] 2 allgatherv 275427 275427 275427 275427 204020 0 0 1.941986
335 > [Jupiter:1:(2) 1.941986] [smpi_replay/VERBOSE] 1 allgatherv 275427 275427 275427 275427 204020 0 0 1.941986
336 > [Jupiter:1:(2) 1.941986] [smpi_replay/INFO] Simulation time 1.941986
337
338 $ rm -f replay/one_trace_override
339
340 p Test of waitall replay with SMPI (one trace for all processes)
341
342 < replay/actions_waitall.txt
343 $ mkfile replay/one_trace_override
344
345 ! output sort 19
346 $ ../../smpi_script/bin/smpirun -no-privatize -replay replay/one_trace_override --log=replay.thresh:critical --log=smpi_replay.thresh:verbose --log=no_loc  -np 3 -platform ${srcdir:=.}/../platforms/small_platform.xml -hostfile ${srcdir:=.}/hostfile --log=smpi_config.thres:warning --log=xbt_cfg.thres:warning
347 > [Fafard:2:(3) 0.000000] [smpi_replay/VERBOSE] 2 irecv 1 1 3000 0.000000
348 > [Fafard:2:(3) 0.000000] [smpi_replay/VERBOSE] 2 isend 0 2 3000 0.000000
349 > [Jupiter:1:(2) 0.000000] [smpi_replay/VERBOSE] 1 isend 0 0 2000 0.000000
350 > [Jupiter:1:(2) 0.000000] [smpi_replay/VERBOSE] 1 isend 2 1 3000 0.000000
351 > [Jupiter:1:(2) 0.000000] [smpi_replay/VERBOSE] 1 waitall 0.000000
352 > [Tremblay:0:(1) 0.000000] [smpi_replay/VERBOSE] 0 irecv 1 0 2000 0.000000
353 > [Tremblay:0:(1) 0.000000] [smpi_replay/VERBOSE] 0 irecv 2 2 3000 0.000000
354 > [Tremblay:0:(1) 0.003787] [smpi_replay/VERBOSE] 0 waitall 0.003787
355 > [Fafard:2:(3) 0.006220] [smpi_replay/VERBOSE] 2 waitall 0.006220
356 > [Fafard:2:(3) 0.006220] [smpi_replay/INFO] Simulation time 0.006220
357
358 $ rm -f replay/one_trace_override