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 p Test of trace replay with SMPI (one trace for all processes)
5 $ ../../bin/smpirun --log=replay.thresh:critical --log=smpi_replay.thresh:verbose --log=no_loc -np 3 -platform ${srcdir:=.}/replay/replay_platform.xml -hostfile ${srcdir:=.}/hostfile ./smpi_replay ${srcdir:=.}/replay/one_trace
6 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'maxmin/precision' to '1e-9'
7 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'network/model' to 'SMPI'
8 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'network/TCP_gamma' to '4194304'
9 > [0.000000] [surf_config/INFO] Switching workstation model to compound since you changed the network and/or cpu model(s)
10 > [Tremblay:0:(0) 0.000000] [smpi_replay/VERBOSE] 0 comm_size 3 0.000000
11 > [Fafard:2:(0) 65.176535] [smpi_replay/VERBOSE] 2 bcast 5e8 65.176535
12 > [Fafard:2:(0) 71.729958] [smpi_replay/VERBOSE] 2 compute 5e8 6.553424
13 > [Jupiter:1:(0) 73.739750] [smpi_replay/VERBOSE] 1 bcast 5e8 73.739750
14 > [Tremblay:0:(0) 73.739750] [smpi_replay/VERBOSE] 0 bcast 5e8 73.739750
15 > [Jupiter:1:(0) 76.361119] [smpi_replay/VERBOSE] 1 compute 2e8 2.621369
16 > [Tremblay:0:(0) 78.836850] [smpi_replay/VERBOSE] 0 compute 5e8 5.097100
17 > [Fafard:2:(0) 144.013395] [smpi_replay/VERBOSE] 2 bcast 5e8 72.283436
18 > [Fafard:2:(0) 150.566818] [smpi_replay/VERBOSE] 2 compute 5e8 6.553424
19 > [Jupiter:1:(0) 152.576610] [smpi_replay/VERBOSE] 1 bcast 5e8 76.215490
20 > [Tremblay:0:(0) 152.576610] [smpi_replay/VERBOSE] 0 bcast 5e8 73.739760
21 > [Jupiter:1:(0) 155.197979] [smpi_replay/VERBOSE] 1 compute 2e8 2.621369
22 > [Tremblay:0:(0) 157.673709] [smpi_replay/VERBOSE] 0 compute 5e8 5.097100
23 > [Fafard:2:(0) 222.850244] [smpi_replay/VERBOSE] 2 reduce 5e8 5e8 72.283426
24 > [Jupiter:1:(0) 231.413469] [smpi_replay/VERBOSE] 1 reduce 5e8 5e8 76.215490
25 > [Tremblay:0:(0) 231.413469] [smpi_replay/VERBOSE] 0 reduce 5e8 5e8 73.739760
26 > [Tremblay:0:(0) 231.413469] [smpi_replay/INFO] Simulation time 231.413
29 p The same with tracing activated
30 $ ../../bin/smpirun --log=replay.thresh:critical --log=no_loc --cfg=tracing:1 --cfg=tracing/smpi:1 --cfg=tracing/smpi/computing:1 -np 3 -platform ${srcdir:=.}/replay/replay_platform.xml -hostfile ${srcdir:=.}/hostfile ./smpi_replay ${srcdir:=.}/replay/one_trace
31 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'maxmin/precision' to '1e-9'
32 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'network/model' to 'SMPI'
33 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'network/TCP_gamma' to '4194304'
34 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing' to '1'
35 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing/smpi' to '1'
36 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing/smpi/computing' to '1'
37 > [0.000000] [surf_config/INFO] Switching workstation model to compound since you changed the network and/or cpu model(s)
38 > [Tremblay:0:(0) 231.413469] [smpi_replay/INFO] Simulation time 231.413
42 > #This file was generated using SimGrid-3.8.0
43 > %EventDef PajeDefineContainerType 0
48 > %EventDef PajeDefineVariableType 1
54 > %EventDef PajeDefineStateType 2
59 > %EventDef PajeDefineEventType 3
64 > %EventDef PajeDefineLinkType 4
67 > % StartContainerType string
68 > % EndContainerType string
71 > %EventDef PajeDefineEntityValue 5
77 > %EventDef PajeCreateContainer 6
84 > %EventDef PajeDestroyContainer 7
89 > %EventDef PajeSetVariable 8
95 > %EventDef PajeAddVariable 9
101 > %EventDef PajeSubVariable 10
107 > %EventDef PajeSetState 11
113 > %EventDef PajePushState 12
119 > %EventDef PajePopState 13
124 > %EventDef PajeResetState 14
129 > %EventDef PajeStartLink 15
134 > % StartContainer string
137 > %EventDef PajeEndLink 16
142 > % EndContainer string
145 > %EventDef PajeNewEvent 17
155 > 5 4 2 computing "0 1 1"
156 > 5 5 2 action_bcast "0 0.78 0.39"
176 > 5 6 2 action_reduce "0 1 0"
182 > 12 144.013395 2 3 4
184 > 12 150.566818 2 3 6
186 > 12 152.576610 2 2 4
188 > 12 152.576610 2 1 4
190 > 12 155.197979 2 2 6
192 > 12 157.673709 2 1 6
194 > 12 222.850244 2 3 4
198 > 12 231.413469 2 2 4
200 > 12 231.413469 2 1 4
206 $ rm -f ./simgrid.trace
208 p Another test of trace replay with SMPI (one trace per process)
209 $ ../../bin/smpirun --log=replay.thresh:critical --log=smpi_replay.thresh:verbose --log=no_loc -np 2 -platform ${srcdir:=.}/replay/replay_platform.xml -hostfile ${srcdir:=.}/hostfile ./smpi_replay ${srcdir:=.}/replay/split_traces
210 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'maxmin/precision' to '1e-9'
211 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'network/model' to 'SMPI'
212 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'network/TCP_gamma' to '4194304'
213 > [0.000000] [surf_config/INFO] Switching workstation model to compound since you changed the network and/or cpu model(s)
214 > [Tremblay:0:(0) 0.164463] [smpi_replay/VERBOSE] 0 send 1 1e6 0.164463
215 > [Jupiter:1:(0) 0.164463] [smpi_replay/VERBOSE] 1 recv 0 1e6 0.164463
216 > [Jupiter:1:(0) 13.271310] [smpi_replay/VERBOSE] 1 compute 1e9 13.106847
217 > [Jupiter:1:(0) 13.271310] [smpi_replay/VERBOSE] 1 Isend 0 1e6 0.000000
218 > [Jupiter:1:(0) 13.271310] [smpi_replay/VERBOSE] 1 Irecv 0 1e6 0.000000
219 > [Tremblay:0:(0) 13.574474] [smpi_replay/VERBOSE] 0 recv 1 1e6 13.410011
220 > [Jupiter:1:(0) 13.877637] [smpi_replay/VERBOSE] 1 wait 0.606328
221 > [Tremblay:0:(0) 13.877637] [smpi_replay/VERBOSE] 0 send 1 1e6 0.303164
222 > [Tremblay:0:(0) 13.877637] [smpi_replay/INFO] Simulation time 13.8776