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
10 $ ../../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:=.}/replay/replay_platform.xml -hostfile ${srcdir:=.}/hostfile ./smpi_replay ${srcdir:=.}/replay/one_trace
11 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'maxmin/precision' to '1e-9'
12 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'network/model' to 'SMPI'
13 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'network/TCP_gamma' to '4194304'
14 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'smpi/cpu_threshold' to '1'
15 > [0.000000] [surf_config/INFO] Switching workstation model to compound since you changed the network and/or cpu model(s)
16 > [Tremblay:0:(0) 0.000000] [smpi_replay/VERBOSE] 0 comm_size 3 0.000000
17 > [Fafard:2:(0) 65.176535] [smpi_replay/VERBOSE] 2 bcast 5e8 65.176535
18 > [Fafard:2:(0) 71.729958] [smpi_replay/VERBOSE] 2 compute 5e8 6.553424
19 > [Jupiter:1:(0) 73.739750] [smpi_replay/VERBOSE] 1 bcast 5e8 73.739750
20 > [Tremblay:0:(0) 73.739750] [smpi_replay/VERBOSE] 0 bcast 5e8 73.739750
21 > [Jupiter:1:(0) 76.361119] [smpi_replay/VERBOSE] 1 compute 2e8 2.621369
22 > [Tremblay:0:(0) 78.836850] [smpi_replay/VERBOSE] 0 compute 5e8 5.097100
23 > [Fafard:2:(0) 144.013385] [smpi_replay/VERBOSE] 2 bcast 5e8 72.283426
24 > [Fafard:2:(0) 150.566808] [smpi_replay/VERBOSE] 2 compute 5e8 6.553424
25 > [Jupiter:1:(0) 152.576600] [smpi_replay/VERBOSE] 1 bcast 5e8 76.215480
26 > [Tremblay:0:(0) 152.576600] [smpi_replay/VERBOSE] 0 bcast 5e8 73.739750
27 > [Jupiter:1:(0) 155.197969] [smpi_replay/VERBOSE] 1 compute 2e8 2.621369
28 > [Tremblay:0:(0) 157.673699] [smpi_replay/VERBOSE] 0 compute 5e8 5.097100
29 > [Fafard:2:(0) 222.850234] [smpi_replay/VERBOSE] 2 reduce 5e8 5e8 72.283426
30 > [Jupiter:1:(0) 231.413449] [smpi_replay/VERBOSE] 1 reduce 5e8 5e8 76.215480
31 > [Tremblay:0:(0) 231.413449] [smpi_replay/VERBOSE] 0 reduce 5e8 5e8 73.739750
32 > [Tremblay:0:(0) 231.413449] [smpi_replay/INFO] Simulation time 231.413
34 $ rm -f replay/one_trace
36 p The same with tracing activated
38 < replay/actions_bcast.txt
39 $ mkfile replay/one_trace
41 $ ../../bin/smpirun -ext smpi_replay --log=replay.thresh:critical --log=no_loc --cfg=tracing:1 --cfg=tracing/smpi:1 --cfg=tracing/smpi/computing:1 --cfg=smpi/cpu_threshold:1 -np 3 -platform ${srcdir:=.}/replay/replay_platform.xml -hostfile ${srcdir:=.}/hostfile ./smpi_replay ${srcdir:=.}/replay/one_trace
42 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'maxmin/precision' to '1e-9'
43 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'network/model' to 'SMPI'
44 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'network/TCP_gamma' to '4194304'
45 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing' to '1'
46 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing/smpi' to '1'
47 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing/smpi/computing' to '1'
48 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'smpi/cpu_threshold' to '1'
49 > [0.000000] [surf_config/INFO] Switching workstation model to compound since you changed the network and/or cpu model(s)
50 > [Tremblay:0:(0) 231.413449] [smpi_replay/INFO] Simulation time 231.413
52 $ rm -f replay/one_trace
55 $ tail -n +3 ./simgrid.trace
56 > %EventDef PajeDefineContainerType 0
61 > %EventDef PajeDefineVariableType 1
67 > %EventDef PajeDefineStateType 2
72 > %EventDef PajeDefineEventType 3
77 > %EventDef PajeDefineLinkType 4
80 > % StartContainerType string
81 > % EndContainerType string
84 > %EventDef PajeDefineEntityValue 5
90 > %EventDef PajeCreateContainer 6
97 > %EventDef PajeDestroyContainer 7
102 > %EventDef PajeSetVariable 8
108 > %EventDef PajeAddVariable 9
114 > %EventDef PajeSubVariable 10
120 > %EventDef PajeSetState 11
126 > %EventDef PajePushState 12
132 > %EventDef PajePopState 13
137 > %EventDef PajeResetState 14
142 > %EventDef PajeStartLink 15
147 > % StartContainer string
150 > %EventDef PajeEndLink 16
155 > % EndContainer string
158 > %EventDef PajeNewEvent 17
168 > 5 4 2 computing "0 1 1"
169 > 5 5 2 action_bcast "0 0.78 0.39"
189 > 5 6 2 action_reduce "0 1 0"
195 > 12 144.013385 2 3 4
197 > 12 150.566808 2 3 6
199 > 12 152.576600 2 2 4
201 > 12 152.576600 2 1 4
203 > 12 155.197969 2 2 6
205 > 12 157.673699 2 1 6
207 > 12 222.850234 2 3 4
211 > 12 231.413449 2 2 4
215 > 12 231.413449 2 1 4
219 $ rm -f ./simgrid.trace
221 p Another test of trace replay with SMPI (one trace per process)
222 $ ../../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:=.}/replay/replay_platform.xml -hostfile ${srcdir:=.}/hostfile ./smpi_replay ${srcdir:=.}/replay/split_traces
223 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'maxmin/precision' to '1e-9'
224 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'network/model' to 'SMPI'
225 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'network/TCP_gamma' to '4194304'
226 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'smpi/cpu_threshold' to '1'
227 > [0.000000] [surf_config/INFO] Switching workstation model to compound since you changed the network and/or cpu model(s)
228 > [Tremblay:0:(0) 0.164463] [smpi_replay/VERBOSE] 0 send 1 1e6 0.164463
229 > [Jupiter:1:(0) 0.164463] [smpi_replay/VERBOSE] 1 recv 0 1e6 0.164463
230 > [Jupiter:1:(0) 13.271310] [smpi_replay/VERBOSE] 1 compute 1e9 13.106847
231 > [Jupiter:1:(0) 13.271310] [smpi_replay/VERBOSE] 1 Isend 0 1e6 0.000000
232 > [Jupiter:1:(0) 13.271310] [smpi_replay/VERBOSE] 1 Irecv 0 1e6 0.000000
233 > [Tremblay:0:(0) 13.435773] [smpi_replay/VERBOSE] 0 recv 1 1e6 13.271310
234 > [Jupiter:1:(0) 13.600235] [smpi_replay/VERBOSE] 1 wait 0.328926
235 > [Tremblay:0:(0) 13.600235] [smpi_replay/VERBOSE] 0 send 1 1e6 0.164463
236 > [Tremblay:0:(0) 13.600235] [smpi_replay/INFO] Simulation time 13.6002