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
5 p Test of trace replay with SMPI (one trace for all processes)
7 < replay/actions_bcast.txt
8 $ mkfile replay/one_trace
11 $ ../../smpi_script/bin/smpirun -ext smpi_replay --log=replay.thresh:critical --log=smpi_replay.thresh:verbose --log=no_loc --cfg=smpi/cpu_threshold:-1 -np 3 -platform ${srcdir:=.}/../platforms/small_platform.xml -hostfile ${srcdir:=.}/hostfile ./replay/smpi_replay replay/one_trace --log=smpi_kernel.thres:warning
12 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'surf/precision' to '1e-9'
13 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'network/model' to 'SMPI'
14 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'network/TCP_gamma' to '4194304'
15 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'smpi/cpu_threshold' to '-1'
16 > [Tremblay:0:(1) 0.000000] [smpi_replay/VERBOSE] 0 bcast 5e4 0.000000
17 > [Jupiter:1:(2) 0.015036] [smpi_replay/VERBOSE] 1 bcast 5e4 0.015036
18 > [Fafard:2:(3) 0.015676] [smpi_replay/VERBOSE] 2 bcast 5e4 0.015676
19 > [Jupiter:1:(2) 2.636405] [smpi_replay/VERBOSE] 1 compute 2e8 2.621369
20 > [Tremblay:0:(1) 5.097100] [smpi_replay/VERBOSE] 0 compute 5e8 5.097100
21 > [Tremblay:0:(1) 5.097100] [smpi_replay/VERBOSE] 0 bcast 5e4 0.000000
22 > [Jupiter:1:(2) 5.112136] [smpi_replay/VERBOSE] 1 bcast 5e4 2.475730
23 > [Fafard:2:(3) 6.569099] [smpi_replay/VERBOSE] 2 compute 5e8 6.553424
24 > [Fafard:2:(3) 6.584775] [smpi_replay/VERBOSE] 2 bcast 5e4 0.015676
25 > [Jupiter:1:(2) 7.733505] [smpi_replay/VERBOSE] 1 compute 2e8 2.621369
26 > [Tremblay:0:(1) 10.194200] [smpi_replay/VERBOSE] 0 compute 5e8 5.097100
27 > [Fafard:2:(3) 13.138198] [smpi_replay/VERBOSE] 2 compute 5e8 6.553424
28 > [Jupiter:1:(2) 14.286929] [smpi_replay/VERBOSE] 1 reduce 5e4 5e8 6.553424
29 > [Tremblay:0:(1) 18.250974] [smpi_replay/VERBOSE] 0 reduce 5e4 5e8 8.056774
30 > [Fafard:2:(3) 19.691622] [smpi_replay/VERBOSE] 2 reduce 5e4 5e8 6.553424
31 > [Fafard:2:(3) 19.691622] [smpi_replay/INFO] Simulation time 19.691622
33 $ rm -f replay/one_trace
35 p The same with tracing activated
37 < replay/actions_bcast.txt
38 $ mkfile replay/one_trace
40 $ ../../smpi_script/bin/smpirun -ext smpi_replay --log=replay.thresh:critical --log=no_loc --cfg=tracing:yes --cfg=tracing/smpi:yes --cfg=tracing/smpi/computing:yes --cfg=smpi/cpu_threshold:-1 -np 3 -platform ${srcdir:=.}/../platforms/small_platform.xml -hostfile ${srcdir:=.}/hostfile ./replay/smpi_replay replay/one_trace --log=smpi_kernel.thres:warning
41 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'surf/precision' to '1e-9'
42 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'network/model' to 'SMPI'
43 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'network/TCP_gamma' to '4194304'
44 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing' to 'yes'
45 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing/smpi' to 'yes'
46 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing/smpi/computing' to 'yes'
47 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'smpi/cpu_threshold' to '-1'
48 > [Fafard:2:(3) 19.691622] [smpi_replay/INFO] Simulation time 19.691622
50 $ rm -f replay/one_trace
52 $ tail -n +3 ./simgrid.trace
53 > %EventDef PajeDefineContainerType 0
58 > %EventDef PajeDefineVariableType 1
64 > %EventDef PajeDefineStateType 2
69 > %EventDef PajeDefineEventType 3
74 > %EventDef PajeDefineLinkType 4
77 > % StartContainerType string
78 > % EndContainerType string
81 > %EventDef PajeDefineEntityValue 5
87 > %EventDef PajeCreateContainer 6
94 > %EventDef PajeDestroyContainer 7
99 > %EventDef PajeSetVariable 8
105 > %EventDef PajeAddVariable 9
111 > %EventDef PajeSubVariable 10
117 > %EventDef PajeSetState 11
123 > %EventDef PajePushState 12
129 > %EventDef PajePopState 13
134 > %EventDef PajeResetState 14
139 > %EventDef PajeStartLink 15
144 > % StartContainer string
147 > %EventDef PajeEndLink 16
152 > % EndContainer string
155 > %EventDef PajeNewEvent 17
165 > 5 4 2 computing "0 1 1"
166 > 5 5 2 smpi_replay_run_init "0 1 0"
178 > 5 6 2 action_bcast "0 0.78 0.39"
194 > 5 7 2 action_reduce "0 1 0"
207 > 5 8 2 smpi_replay_run_finalize "0 1 0"
221 $ rm -f ./simgrid.trace
223 p Another test of trace replay with SMPI (one trace per process)
225 < replay/actions0.txt
226 < replay/actions1.txt
227 $ mkfile ./split_traces_tesh
229 $ ../../smpi_script/bin/smpirun -ext smpi_replay --log=replay.thresh:critical --log=smpi_replay.thresh:verbose --log=no_loc --cfg=smpi/cpu_threshold:-1 -np 2 -platform ${srcdir:=.}/../platforms/small_platform.xml -hostfile ${srcdir:=.}/hostfile ./replay/smpi_replay ./split_traces_tesh --log=smpi_kernel.thres:warning
230 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'surf/precision' to '1e-9'
231 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'network/model' to 'SMPI'
232 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'network/TCP_gamma' to '4194304'
233 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'smpi/cpu_threshold' to '-1'
234 > [Tremblay:0:(1) 0.164463] [smpi_replay/VERBOSE] 0 send 1 1e6 0.164463
235 > [Jupiter:1:(2) 0.164463] [smpi_replay/VERBOSE] 1 recv 0 1e6 0.164463
236 > [Jupiter:1:(2) 13.271310] [smpi_replay/VERBOSE] 1 compute 1e9 13.106847
237 > [Jupiter:1:(2) 13.271310] [smpi_replay/VERBOSE] 1 Isend 0 1e6 0.000000
238 > [Jupiter:1:(2) 13.271310] [smpi_replay/VERBOSE] 1 Irecv 0 1e6 0.000000
239 > [Tremblay:0:(1) 13.435773] [smpi_replay/VERBOSE] 0 recv 1 1e6 13.271310
240 > [Jupiter:1:(2) 13.600235] [smpi_replay/VERBOSE] 1 wait 0.328926
241 > [Tremblay:0:(1) 13.600235] [smpi_replay/VERBOSE] 0 send 1 1e6 0.164463
242 > [Jupiter:1:(2) 13.600235] [smpi_replay/INFO] Simulation time 13.600235
244 $ rm -f ./split_traces_tesh
246 p Test of barrier replay with SMPI (one trace for all processes)
248 < replay/actions_barrier.txt
249 $ mkfile replay/one_trace
251 $ ../../smpi_script/bin/smpirun -ext smpi_replay --log=replay.thresh:critical --log=smpi_replay.thresh:verbose --log=no_loc --cfg=smpi/cpu_threshold:-1 -np 3 -platform ${srcdir:=.}/../platforms/small_platform.xml -hostfile ${srcdir:=.}/hostfile ./replay/smpi_replay replay/one_trace --log=smpi_kernel.thres:warning
252 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'surf/precision' to '1e-9'
253 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'network/model' to 'SMPI'
254 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'network/TCP_gamma' to '4194304'
255 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'smpi/cpu_threshold' to '-1'
256 > [Tremblay:0:(1) 1.491472] [smpi_replay/VERBOSE] 0 send 1 1e7 1.491472
257 > [Jupiter:1:(2) 1.491472] [smpi_replay/VERBOSE] 1 recv 0 1e7 1.491472
258 > [Tremblay:0:(1) 1.493448] [smpi_replay/VERBOSE] 0 barrier 0.001976
259 > [Jupiter:1:(2) 1.494910] [smpi_replay/VERBOSE] 1 barrier 0.003438
260 > [Fafard:2:(3) 1.495424] [smpi_replay/VERBOSE] 2 barrier 1.495424
261 > [Tremblay:0:(1) 2.493448] [smpi_replay/VERBOSE] 0 compute 98095000 1.000000
262 > [Jupiter:1:(2) 2.494910] [smpi_replay/VERBOSE] 1 compute 76296000 1.000000
263 > [Fafard:2:(3) 2.495424] [smpi_replay/VERBOSE] 2 compute 76296000 1.000000
264 > [Fafard:2:(3) 2.495424] [smpi_replay/INFO] Simulation time 2.495424
266 $ rm -f replay/one_trace
268 p Test of Isend replay with SMPI (one trace for all processes)
270 < replay/actions_with_isend.txt
271 $ mkfile replay/one_trace
273 $ ../../smpi_script/bin/smpirun -ext smpi_replay --log=replay.thresh:critical --log=smpi_replay.thresh:verbose --log=no_loc --cfg=smpi/cpu_threshold:-1 -np 3 -platform ${srcdir:=.}/../platforms/small_platform.xml -hostfile ${srcdir:=.}/hostfile ./replay/smpi_replay replay/one_trace --log=smpi_kernel.thres:warning
274 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'surf/precision' to '1e-9'
275 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'network/model' to 'SMPI'
276 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'network/TCP_gamma' to '4194304'
277 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'smpi/cpu_threshold' to '-1'
278 > [Jupiter:1:(2) 0.000000] [smpi_replay/VERBOSE] 1 Irecv 0 1e6 0.000000
279 > [Jupiter:1:(2) 6.553424] [smpi_replay/VERBOSE] 1 compute 5e8 6.553424
280 > [Jupiter:1:(2) 6.553524] [smpi_replay/VERBOSE] 1 test 0.000100
281 > [Tremblay:0:(1) 10.194200] [smpi_replay/VERBOSE] 0 compute 1e9 10.194200
282 > [Tremblay:0:(1) 10.358662] [smpi_replay/VERBOSE] 0 send 1 1e6 0.164463
283 > [Jupiter:1:(2) 13.106947] [smpi_replay/VERBOSE] 1 compute 5e8 6.553424
284 > [Jupiter:1:(2) 13.106947] [smpi_replay/VERBOSE] 1 wait 0.000000
285 > [Tremblay:0:(1) 20.552862] [smpi_replay/VERBOSE] 0 compute 1e9 10.194200
286 > [Fafard:2:(3) 26.213694] [smpi_replay/VERBOSE] 2 compute 2e9 26.213694
287 > [Fafard:2:(3) 26.213694] [smpi_replay/VERBOSE] 2 Irecv 1 1e6 0.000000
288 > [Jupiter:1:(2) 26.401165] [smpi_replay/VERBOSE] 1 send 2 1e6 13.294218
289 > [Fafard:2:(3) 29.490406] [smpi_replay/VERBOSE] 2 compute 2.5e8 3.276712
290 > [Fafard:2:(3) 29.490606] [smpi_replay/VERBOSE] 2 test 0.000200
291 > [Fafard:2:(3) 32.767318] [smpi_replay/VERBOSE] 2 compute 2.5e8 3.276712
292 > [Fafard:2:(3) 32.767318] [smpi_replay/VERBOSE] 2 Isend 0 1e6 0.000000
293 > [Tremblay:0:(1) 32.920633] [smpi_replay/VERBOSE] 0 recv 2 1e6 12.367771
294 > [Fafard:2:(3) 39.320741] [smpi_replay/VERBOSE] 2 compute 5e8 6.553424
295 > [Fafard:2:(3) 39.320741] [smpi_replay/INFO] Simulation time 39.320741
297 $ rm -f replay/one_trace
299 p Test of Isend replay with SMPI (one trace for all processes)
301 < replay/actions_allReduce.txt
302 $ mkfile replay/one_trace
304 $ ../../smpi_script/bin/smpirun -ext smpi_replay --log=replay.thresh:critical --log=smpi_replay.thresh:verbose --log=no_loc --cfg=smpi/cpu_threshold:-1 -np 3 -platform ${srcdir:=.}/../platforms/small_platform.xml -hostfile ${srcdir:=.}/hostfile ./replay/smpi_replay replay/one_trace --log=smpi_kernel.thres:warning
305 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'surf/precision' to '1e-9'
306 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'network/model' to 'SMPI'
307 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'network/TCP_gamma' to '4194304'
308 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'smpi/cpu_threshold' to '-1'
309 > [Tremblay:0:(1) 5.112775] [smpi_replay/VERBOSE] 0 allReduce 5e4 5e8 5.112775
310 > [Jupiter:1:(2) 6.584135] [smpi_replay/VERBOSE] 1 allReduce 5e4 5e8 6.584135
311 > [Fafard:2:(3) 6.584775] [smpi_replay/VERBOSE] 2 allReduce 5e4 5e8 6.584775
312 > [Tremblay:0:(1) 10.209875] [smpi_replay/VERBOSE] 0 compute 5e8 5.097100
313 > [Jupiter:1:(2) 13.137559] [smpi_replay/VERBOSE] 1 compute 5e8 6.553424
314 > [Fafard:2:(3) 13.138198] [smpi_replay/VERBOSE] 2 compute 5e8 6.553424
315 > [Fafard:2:(3) 13.138198] [smpi_replay/INFO] Simulation time 13.138198
317 $ rm -f replay/one_trace
319 p Test of AllToAll replay with SMPI (one trace for all processes)
321 < replay/actions_alltoall.txt
322 $ mkfile replay/one_trace
324 $ ../../smpi_script/bin/smpirun -ext smpi_replay --log=replay.thresh:critical --log=smpi_replay.thresh:verbose --log=no_loc --cfg=smpi/cpu_threshold:-1 -np 3 -platform ${srcdir:=.}/../platforms/small_platform.xml -hostfile ${srcdir:=.}/hostfile ./replay/smpi_replay replay/one_trace --log=smpi_kernel.thres:warning
325 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'surf/precision' to '1e-9'
326 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'network/model' to 'SMPI'
327 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'network/TCP_gamma' to '4194304'
328 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'smpi/cpu_threshold' to '-1'
329 > [Tremblay:0:(1) 0.004041] [smpi_replay/VERBOSE] 0 allToAll 500 500 0.004041
330 > [Fafard:2:(3) 0.006920] [smpi_replay/VERBOSE] 2 allToAll 500 500 0.006920
331 > [Jupiter:1:(2) 0.006920] [smpi_replay/VERBOSE] 1 allToAll 500 500 0.006920
332 > [Jupiter:1:(2) 0.006920] [smpi_replay/INFO] Simulation time 0.006920
334 $ rm -f replay/one_trace
336 p Test of AllToAllv replay with SMPI (one trace for all processes)
338 < replay/actions_alltoallv.txt
339 $ mkfile replay/one_trace
341 $ ../../smpi_script/bin/smpirun -ext smpi_replay --log=replay.thresh:critical --log=smpi_replay.thresh:verbose --log=no_loc --cfg=smpi/cpu_threshold:-1 -np 3 -platform ${srcdir:=.}/../platforms/small_platform.xml -hostfile ${srcdir:=.}/hostfile ./replay/smpi_replay replay/one_trace --log=smpi_kernel.thres:warning
342 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'surf/precision' to '1e-9'
343 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'network/model' to 'SMPI'
344 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'network/TCP_gamma' to '4194304'
345 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'smpi/cpu_threshold' to '-1'
346 > [Tremblay:0:(1) 0.003999] [smpi_replay/VERBOSE] 0 allToAllV 100 1 40 30 1000 1 80 100 0.003999
347 > [Jupiter:1:(2) 0.006934] [smpi_replay/VERBOSE] 1 allToAllV 1000 80 1 40 1000 40 1 30 0.006934
348 > [Fafard:2:(3) 0.006936] [smpi_replay/VERBOSE] 2 allToAllV 1000 100 30 1 1000 30 40 1 0.006936
349 > [Fafard:2:(3) 0.006936] [smpi_replay/INFO] Simulation time 0.006936
351 $ rm -f replay/one_trace
353 p Test of AllGatherv replay with SMPI (one trace for all processes)
355 < replay/actions_allgatherv.txt
356 $ mkfile replay/one_trace
358 $ ../../smpi_script/bin/smpirun -ext smpi_replay --log=replay.thresh:critical --log=smpi_replay.thresh:verbose --log=no_loc --cfg=smpi/cpu_threshold:-1 -np 3 -platform ${srcdir:=.}/../platforms/small_platform.xml -hostfile ${srcdir:=.}/hostfile ./replay/smpi_replay replay/one_trace --log=smpi_kernel.thres:warning
359 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'surf/precision' to '1e-9'
360 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'network/model' to 'SMPI'
361 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'network/TCP_gamma' to '4194304'
362 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'smpi/cpu_threshold' to '-1'
363 > [Tremblay:0:(1) 0.882872] [smpi_replay/VERBOSE] 0 allGatherV 275427 275427 275427 275427 204020 0 0 0.882872
364 > [Fafard:2:(3) 1.300605] [smpi_replay/VERBOSE] 2 allGatherV 275427 275427 275427 275427 204020 0 0 1.300605
365 > [Jupiter:1:(2) 1.300605] [smpi_replay/VERBOSE] 1 allGatherV 275427 275427 275427 275427 204020 0 0 1.300605
366 > [Jupiter:1:(2) 1.300605] [smpi_replay/INFO] Simulation time 1.300605
368 $ rm -f replay/one_trace
370 p Test of waitall replay with SMPI (one trace for all processes)
372 < replay/actions_waitall.txt
373 $ mkfile replay/one_trace
376 $ ../../smpi_script/bin/smpirun -ext smpi_replay --log=replay.thresh:critical --log=smpi_replay.thresh:verbose --log=no_loc --cfg=smpi/cpu_threshold:-1 -np 3 -platform ${srcdir:=.}/../platforms/small_platform.xml -hostfile ${srcdir:=.}/hostfile ./replay/smpi_replay replay/one_trace --log=smpi_kernel.thres:warning
377 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'surf/precision' to '1e-9'
378 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'network/model' to 'SMPI'
379 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'network/TCP_gamma' to '4194304'
380 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'smpi/cpu_threshold' to '-1'
381 > [Fafard:2:(3) 0.000000] [smpi_replay/VERBOSE] 2 Irecv 1 3000 0.000000
382 > [Fafard:2:(3) 0.000000] [smpi_replay/VERBOSE] 2 Isend 0 3000 0.000000
383 > [Jupiter:1:(2) 0.000000] [smpi_replay/VERBOSE] 1 Isend 0 2000 0.000000
384 > [Jupiter:1:(2) 0.000000] [smpi_replay/VERBOSE] 1 Isend 2 3000 0.000000
385 > [Jupiter:1:(2) 0.000000] [smpi_replay/VERBOSE] 1 waitAll 0.000000
386 > [Tremblay:0:(1) 0.000000] [smpi_replay/VERBOSE] 0 Irecv 1 2000 0.000000
387 > [Tremblay:0:(1) 0.000000] [smpi_replay/VERBOSE] 0 Irecv 2 3000 0.000000
388 > [Tremblay:0:(1) 0.003787] [smpi_replay/VERBOSE] 0 waitAll 0.003787
389 > [Fafard:2:(3) 0.006220] [smpi_replay/VERBOSE] 2 waitAll 0.006220
390 > [Fafard:2:(3) 0.006220] [smpi_replay/INFO] Simulation time 0.006220
392 $ rm -f replay/one_trace