Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
implement CRTP in kernel::activity
[simgrid.git] / examples / smpi / replay / replay.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
9 ! timeout 60
10
11 $ ../../smpi_script/bin/smpirun -no-privatize -replay replay/one_trace --log=replay.thresh:critical --log=smpi_replay.thresh:verbose --log=no_loc --cfg=smpi/simulate-computation:no -np 3 -platform ${srcdir:=.}/../platforms/small_platform.xml -hostfile ${srcdir:=.}/hostfile ./replay/smpi_replay --log=smpi_kernel.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
30
31 p The same with tracing activated
32
33 < replay/actions_bcast.txt
34 $ mkfile replay/one_trace
35
36 $ ../../smpi_script/bin/smpirun -no-privatize -replay replay/one_trace --log=replay.thresh:critical --log=no_loc  --cfg=tracing:yes --cfg=tracing/smpi:yes --cfg=tracing/smpi/computing:yes --cfg=smpi/simulate-computation:no -np 3 -platform ${srcdir:=.}/../platforms/small_platform.xml -hostfile ${srcdir:=.}/hostfile ./replay/smpi_replay  --log=smpi_kernel.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
40
41 $ tail -n +3 ./simgrid.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 > 5 6 2 computing "0 1 1"
157 > 5 7 2 smpi_replay_run_init "0 1 0"
158 > 6 0.000000 2 1 0 "rank-1"
159 > 6 0.000000 3 1 0 "rank-2"
160 > 5 8 2 action_bcast "0 0.78 0.39"
161 > 12 0.000000 2 1 7
162 > 13 0.000000 2 1
163 > 12 0.000000 2 2 7
164 > 13 0.000000 2 2
165 > 12 0.000000 2 3 7
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 6
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 6
176 > 13 0.015676 2 3
177 > 12 0.015676 2 3 6
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 6
184 > 13 5.112136 2 2
185 > 12 5.112136 2 2 6
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 6
190 > 13 7.733505 2 2
191 > 12 7.733505 2 2 9
192 > 13 10.194200 2 1
193 > 12 10.194200 2 1 9
194 > 13 13.138198 2 3
195 > 12 13.138198 2 3 9
196 > 13 14.286929 2 2
197 > 12 14.286929 2 2 10
198 > 13 18.250974 2 1
199 > 12 18.250974 2 1 10
200 > 13 19.691622 2 3
201 > 12 19.691622 2 3 10
202 > 13 19.691622 2 3
203 > 7 19.691622 1 3
204 > 13 19.691622 2 2
205 > 7 19.691622 1 2
206 > 13 19.691622 2 1
207 > 7 19.691622 1 1
208
209 $ rm -f ./simgrid.trace
210
211 p Another test of trace replay with SMPI (one trace per process)
212
213 < replay/actions0.txt
214 < replay/actions1.txt
215 $ mkfile ./split_traces_tesh
216
217 $ ../../smpi_script/bin/smpirun -no-privatize -replay ./split_traces_tesh --log=smpi_replay.thresh:verbose --log=no_loc --cfg=smpi/simulate-computation:no -np 2 -platform ${srcdir:=.}/../platforms/small_platform.xml -hostfile ${srcdir:=.}/hostfile ./replay/smpi_replay --log=smpi_kernel.thres:warning --log=xbt_cfg.thres:warning
218 > [Tremblay:0:(1) 0.167158] [smpi_replay/VERBOSE] 0 send 1 0 1e6 0.167158
219 > [Jupiter:1:(2) 0.167158] [smpi_replay/VERBOSE] 1 recv 0 0 1e6 0.167158
220 > [Jupiter:1:(2) 13.274005] [smpi_replay/VERBOSE] 1 compute 1e9 13.106847
221 > [Jupiter:1:(2) 13.274005] [smpi_replay/VERBOSE] 1 isend 0 1 1e6 0.000000
222 > [Jupiter:1:(2) 13.274005] [smpi_replay/VERBOSE] 1 irecv 0 2 1e6 0.000000
223 > [Tremblay:0:(1) 13.441162] [smpi_replay/VERBOSE] 0 recv 1 1 1e6 13.274005
224 > [Jupiter:1:(2) 13.608320] [smpi_replay/VERBOSE] 1 wait 0 1 2 0.334315
225 > [Tremblay:0:(1) 13.608320] [smpi_replay/VERBOSE] 0 send 1 2 1e6 0.167158
226 > [Jupiter:1:(2) 13.608320] [smpi_replay/INFO] Simulation time 13.608320
227
228 $ rm -f ./split_traces_tesh
229
230 p Test of barrier replay with SMPI (one trace for all processes)
231
232 < replay/actions_barrier.txt
233 $ mkfile replay/one_trace
234
235 $ ../../smpi_script/bin/smpirun -no-privatize -replay replay/one_trace --log=replay.thresh:critical --log=smpi_replay.thresh:verbose --log=no_loc --cfg=smpi/simulate-computation:no -np 3 -platform ${srcdir:=.}/../platforms/small_platform.xml -hostfile ${srcdir:=.}/hostfile ./replay/smpi_replay --log=smpi_kernel.thres:warning --log=xbt_cfg.thres:warning
236 > [Tremblay:0:(1) 1.518421] [smpi_replay/VERBOSE] 0 send 1 0 1e7 1.518421
237 > [Jupiter:1:(2) 1.518421] [smpi_replay/VERBOSE] 1 recv 0 0 1e7 1.518421
238 > [Tremblay:0:(1) 1.520397] [smpi_replay/VERBOSE] 0 barrier 0.001976
239 > [Jupiter:1:(2) 1.521858] [smpi_replay/VERBOSE] 1 barrier 0.003438
240 > [Fafard:2:(3) 1.522373] [smpi_replay/VERBOSE] 2 barrier 1.522373
241 > [Tremblay:0:(1) 2.520397] [smpi_replay/VERBOSE] 0 compute 98095000 1.000000
242 > [Jupiter:1:(2) 2.521858] [smpi_replay/VERBOSE] 1 compute 76296000 1.000000
243 > [Fafard:2:(3) 2.522373] [smpi_replay/VERBOSE] 2 compute 76296000 1.000000
244 > [Fafard:2:(3) 2.522373] [smpi_replay/INFO] Simulation time 2.522373
245
246 $ rm -f replay/one_trace
247
248 p Test of isend replay with SMPI (one trace for all processes)
249
250 < replay/actions_with_isend.txt
251 $ mkfile replay/one_trace
252
253 $ ../../smpi_script/bin/smpirun -no-privatize -replay replay/one_trace --log=replay.thresh:critical --log=smpi_replay.thresh:verbose --log=no_loc --cfg=smpi/simulate-computation:no -np 3 -platform ${srcdir:=.}/../platforms/small_platform.xml -hostfile ${srcdir:=.}/hostfile ./replay/smpi_replay --log=smpi_kernel.thres:warning --log=xbt_cfg.thres:warning
254 > [Jupiter:1:(2) 0.000000] [smpi_replay/VERBOSE] 1 irecv 0 0 1e6 0.000000
255 > [Jupiter:1:(2) 6.553424] [smpi_replay/VERBOSE] 1 compute 5e8 6.553424
256 > [Jupiter:1:(2) 6.553524] [smpi_replay/VERBOSE] 1 test 0 1 0 0.000100
257 > [Tremblay:0:(1) 10.194200] [smpi_replay/VERBOSE] 0 compute 1e9 10.194200
258 > [Tremblay:0:(1) 10.361357] [smpi_replay/VERBOSE] 0 send 1 0 1e6 0.167158
259 > [Jupiter:1:(2) 13.106947] [smpi_replay/VERBOSE] 1 compute 5e8 6.553424
260 > [Jupiter:1:(2) 13.106947] [smpi_replay/VERBOSE] 1 wait 0 1 0 0.000000
261 > [Tremblay:0:(1) 20.555557] [smpi_replay/VERBOSE] 0 compute 1e9 10.194200
262 > [Fafard:2:(3) 26.213694] [smpi_replay/VERBOSE] 2 compute 2e9 26.213694
263 > [Fafard:2:(3) 26.213694] [smpi_replay/VERBOSE] 2 irecv 1 1 1e6 0.000000
264 > [Jupiter:1:(2) 26.403860] [smpi_replay/VERBOSE] 1 send 2 1 1e6 13.296913
265 > [Fafard:2:(3) 29.490406] [smpi_replay/VERBOSE] 2 compute 2.5e8 3.276712
266 > [Fafard:2:(3) 29.490606] [smpi_replay/VERBOSE] 2 test 1 2 1 0.000200
267 > [Fafard:2:(3) 32.767318] [smpi_replay/VERBOSE] 2 compute 2.5e8 3.276712
268 > [Fafard:2:(3) 32.767318] [smpi_replay/VERBOSE] 2 wait 1 2 1 0.000000
269 > [Fafard:2:(3) 32.767318] [smpi_replay/VERBOSE] 2 isend 0 2 1e6 0.000000
270 > [Tremblay:0:(1) 32.923014] [smpi_replay/VERBOSE] 0 recv 2 2 1e6 12.367458
271 > [Fafard:2:(3) 39.320741] [smpi_replay/VERBOSE] 2 compute 5e8 6.553424
272 > [Fafard:2:(3) 39.320741] [smpi_replay/INFO] Simulation time 39.320741
273
274 $ rm -f replay/one_trace
275
276 p Test of AllReduce replay with SMPI (one trace for all processes)
277
278 < replay/actions_allreduce.txt
279 $ mkfile replay/one_trace
280
281 $ ../../smpi_script/bin/smpirun -no-privatize -replay replay/one_trace --log=replay.thresh:critical --log=smpi_replay.thresh:verbose --log=no_loc --cfg=smpi/simulate-computation:no -np 3 -platform ${srcdir:=.}/../platforms/small_platform.xml -hostfile ${srcdir:=.}/hostfile ./replay/smpi_replay --log=smpi_kernel.thres:warning --log=xbt_cfg.thres:warning
282 > [Tremblay:0:(1) 5.112775] [smpi_replay/VERBOSE] 0 allreduce 5e4 5e8 5.112775
283 > [Jupiter:1:(2) 6.584135] [smpi_replay/VERBOSE] 1 allreduce 5e4 5e8 6.584135
284 > [Fafard:2:(3) 6.584775] [smpi_replay/VERBOSE] 2 allreduce 5e4 5e8 6.584775
285 > [Tremblay:0:(1) 10.209875] [smpi_replay/VERBOSE] 0 compute 5e8 5.097100
286 > [Jupiter:1:(2) 13.137559] [smpi_replay/VERBOSE] 1 compute 5e8 6.553424
287 > [Fafard:2:(3) 13.138198] [smpi_replay/VERBOSE] 2 compute 5e8 6.553424
288 > [Fafard:2:(3) 13.138198] [smpi_replay/INFO] Simulation time 13.138198
289
290 $ rm -f replay/one_trace
291
292 p Test of AllToAll replay with SMPI (one trace for all processes)
293
294 < replay/actions_alltoall.txt
295 $ mkfile replay/one_trace
296
297 $ ../../smpi_script/bin/smpirun -no-privatize -replay replay/one_trace --log=replay.thresh:critical --log=smpi_replay.thresh:verbose --log=no_loc --cfg=smpi/simulate-computation:no -np 3 -platform ${srcdir:=.}/../platforms/small_platform.xml -hostfile ${srcdir:=.}/hostfile ./replay/smpi_replay --log=smpi_kernel.thres:warning --log=xbt_cfg.thres:warning
298 > [Tremblay:0:(1) 0.004041] [smpi_replay/VERBOSE] 0 alltoall 500 500 0.004041
299 > [Fafard:2:(3) 0.006920] [smpi_replay/VERBOSE] 2 alltoall 500 500 0.006920
300 > [Jupiter:1:(2) 0.006920] [smpi_replay/VERBOSE] 1 alltoall 500 500 0.006920
301 > [Jupiter:1:(2) 0.006920] [smpi_replay/INFO] Simulation time 0.006920
302
303
304
305 $ rm -f replay/one_trace
306
307 p Test of AllToAllv replay with SMPI (one trace for all processes)
308
309 < replay/actions_alltoallv.txt
310 $ mkfile replay/one_trace
311
312 $ ../../smpi_script/bin/smpirun -no-privatize -replay replay/one_trace --log=replay.thresh:critical --log=smpi_replay.thresh:verbose --log=no_loc --cfg=smpi/simulate-computation:no -np 3 -platform ${srcdir:=.}/../platforms/small_platform.xml -hostfile ${srcdir:=.}/hostfile ./replay/smpi_replay --log=smpi_kernel.thres:warning --log=xbt_cfg.thres:warning
313 > [Tremblay:0:(1) 0.004000] [smpi_replay/VERBOSE] 0 alltoallv 100 1 40 30 1000 1 80 100 0.004000
314 > [Jupiter:1:(2) 0.006935] [smpi_replay/VERBOSE] 1 alltoallv 1000 80 1 40 1000 40 1 30 0.006935
315 > [Fafard:2:(3) 0.006936] [smpi_replay/VERBOSE] 2 alltoallv 1000 100 30 1 1000 30 40 1 0.006936
316 > [Fafard:2:(3) 0.006936] [smpi_replay/INFO] Simulation time 0.006936
317
318 $ rm -f replay/one_trace
319
320 p Test of AllGatherv replay with SMPI (one trace for all processes)
321
322 < replay/actions_allgatherv.txt
323 $ mkfile replay/one_trace
324
325 $ ../../smpi_script/bin/smpirun -no-privatize -replay replay/one_trace --log=replay.thresh:critical --log=smpi_replay.thresh:verbose --log=no_loc --cfg=smpi/simulate-computation:no -np 4 -platform ${srcdir:=.}/../platforms/small_platform.xml -hostfile ${srcdir:=.}/hostfile ./replay/smpi_replay --log=smpi_kernel.thres:warning --log=xbt_cfg.thres:warning
326 > [Tremblay:0:(1) 1.397261] [smpi_replay/VERBOSE] 0 allgatherv 275427 275427 275427 275427 204020 0 0 1.397261
327 > [Ginette:3:(4) 1.760421] [smpi_replay/VERBOSE] 3 allgatherv 204020 275427 275427 275427 204020 0 0 1.760421
328 > [Fafard:2:(3) 1.941986] [smpi_replay/VERBOSE] 2 allgatherv 275427 275427 275427 275427 204020 0 0 1.941986
329 > [Jupiter:1:(2) 1.941986] [smpi_replay/VERBOSE] 1 allgatherv 275427 275427 275427 275427 204020 0 0 1.941986
330 > [Jupiter:1:(2) 1.941986] [smpi_replay/INFO] Simulation time 1.941986
331
332 $ rm -f replay/one_trace
333
334 p Test of waitall replay with SMPI (one trace for all processes)
335
336 < replay/actions_waitall.txt
337 $ mkfile replay/one_trace
338
339 ! output sort 19
340 $ ../../smpi_script/bin/smpirun -no-privatize -replay replay/one_trace --log=replay.thresh:critical --log=smpi_replay.thresh:verbose --log=no_loc --cfg=smpi/simulate-computation:no -np 3 -platform ${srcdir:=.}/../platforms/small_platform.xml -hostfile ${srcdir:=.}/hostfile ./replay/smpi_replay --log=smpi_kernel.thres:warning --log=xbt_cfg.thres:warning
341 > [Fafard:2:(3) 0.000000] [smpi_replay/VERBOSE] 2 irecv 1 1 3000 0.000000
342 > [Fafard:2:(3) 0.000000] [smpi_replay/VERBOSE] 2 isend 0 2 3000 0.000000
343 > [Jupiter:1:(2) 0.000000] [smpi_replay/VERBOSE] 1 isend 0 0 2000 0.000000
344 > [Jupiter:1:(2) 0.000000] [smpi_replay/VERBOSE] 1 isend 2 1 3000 0.000000
345 > [Jupiter:1:(2) 0.000000] [smpi_replay/VERBOSE] 1 waitall 0.000000
346 > [Tremblay:0:(1) 0.000000] [smpi_replay/VERBOSE] 0 irecv 1 0 2000 0.000000
347 > [Tremblay:0:(1) 0.000000] [smpi_replay/VERBOSE] 0 irecv 2 2 3000 0.000000
348 > [Tremblay:0:(1) 0.003787] [smpi_replay/VERBOSE] 0 waitall 0.003787
349 > [Fafard:2:(3) 0.006220] [smpi_replay/VERBOSE] 2 waitall 0.006220
350 > [Fafard:2:(3) 0.006220] [smpi_replay/INFO] Simulation time 0.006220
351
352 $ rm -f replay/one_trace