Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid
[simgrid.git] / examples / smpi / replay / smpi_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 p Test of trace replay with SMPI (one trace for all processes)
5 $ ../../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
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] [xbt_cfg/INFO] Configuration change: Set 'smpi/cpu_threshold' to '1'
10 > [0.000000] [surf_config/INFO] Switching workstation model to compound since you changed the network and/or cpu model(s)
11 > [Tremblay:0:(0) 0.000000] [smpi_replay/VERBOSE] 0 comm_size 3 0.000000
12 > [Fafard:2:(0) 65.176535] [smpi_replay/VERBOSE] 2 bcast 5e8 65.176535
13 > [Fafard:2:(0) 71.729958] [smpi_replay/VERBOSE] 2 compute 5e8 6.553424
14 > [Jupiter:1:(0) 73.739750] [smpi_replay/VERBOSE] 1 bcast 5e8 73.739750
15 > [Tremblay:0:(0) 73.739750] [smpi_replay/VERBOSE] 0 bcast 5e8 73.739750
16 > [Jupiter:1:(0) 76.361119] [smpi_replay/VERBOSE] 1 compute 2e8 2.621369
17 > [Tremblay:0:(0) 78.836850] [smpi_replay/VERBOSE] 0 compute 5e8 5.097100
18 > [Fafard:2:(0) 144.013385] [smpi_replay/VERBOSE] 2 bcast 5e8 72.283426
19 > [Fafard:2:(0) 150.566808] [smpi_replay/VERBOSE] 2 compute 5e8 6.553424
20 > [Jupiter:1:(0) 152.576600] [smpi_replay/VERBOSE] 1 bcast 5e8 76.215480
21 > [Tremblay:0:(0) 152.576600] [smpi_replay/VERBOSE] 0 bcast 5e8 73.739750
22 > [Jupiter:1:(0) 155.197969] [smpi_replay/VERBOSE] 1 compute 2e8 2.621369
23 > [Tremblay:0:(0) 157.673699] [smpi_replay/VERBOSE] 0 compute 5e8 5.097100
24 > [Fafard:2:(0) 222.850234] [smpi_replay/VERBOSE] 2 reduce 5e8 5e8 72.283426
25 > [Jupiter:1:(0) 231.413449] [smpi_replay/VERBOSE] 1 reduce 5e8 5e8 76.215480
26 > [Tremblay:0:(0) 231.413449] [smpi_replay/VERBOSE] 0 reduce 5e8 5e8 73.739750
27 > [Tremblay:0:(0) 231.413449] [smpi_replay/INFO] Simulation time 231.413
28
29
30 p The same with tracing activated
31 $ ../../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
32 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'maxmin/precision' to '1e-9'
33 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'network/model' to 'SMPI'
34 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'network/TCP_gamma' to '4194304'
35 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing' to '1'
36 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing/smpi' to '1'
37 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing/smpi/computing' to '1'
38 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'smpi/cpu_threshold' to '1'
39 > [0.000000] [surf_config/INFO] Switching workstation model to compound since you changed the network and/or cpu model(s)
40 > [Tremblay:0:(0) 231.413449] [smpi_replay/INFO] Simulation time 231.413
41
42
43 $ tail -n +3 ./simgrid.trace
44 > %EventDef PajeDefineContainerType 0
45 > %       Alias string
46 > %       Type string
47 > %       Name string
48 > %EndEventDef
49 > %EventDef PajeDefineVariableType 1
50 > %       Alias string
51 > %       Type string
52 > %       Name string
53 > %       Color color
54 > %EndEventDef
55 > %EventDef PajeDefineStateType 2
56 > %       Alias string
57 > %       Type string
58 > %       Name string
59 > %EndEventDef
60 > %EventDef PajeDefineEventType 3
61 > %       Alias string
62 > %       Type string
63 > %       Name string
64 > %EndEventDef
65 > %EventDef PajeDefineLinkType 4
66 > %       Alias string
67 > %       Type string
68 > %       StartContainerType string
69 > %       EndContainerType string
70 > %       Name string
71 > %EndEventDef
72 > %EventDef PajeDefineEntityValue 5
73 > %       Alias string
74 > %       Type string
75 > %       Name string
76 > %       Color color
77 > %EndEventDef
78 > %EventDef PajeCreateContainer 6
79 > %       Time date
80 > %       Alias string
81 > %       Type string
82 > %       Container string
83 > %       Name string
84 > %EndEventDef
85 > %EventDef PajeDestroyContainer 7
86 > %       Time date
87 > %       Type string
88 > %       Name string
89 > %EndEventDef
90 > %EventDef PajeSetVariable 8
91 > %       Time date
92 > %       Type string
93 > %       Container string
94 > %       Value double
95 > %EndEventDef
96 > %EventDef PajeAddVariable 9
97 > %       Time date
98 > %       Type string
99 > %       Container string
100 > %       Value double
101 > %EndEventDef
102 > %EventDef PajeSubVariable 10
103 > %       Time date
104 > %       Type string
105 > %       Container string
106 > %       Value double
107 > %EndEventDef
108 > %EventDef PajeSetState 11
109 > %       Time date
110 > %       Type string
111 > %       Container string
112 > %       Value string
113 > %EndEventDef
114 > %EventDef PajePushState 12
115 > %       Time date
116 > %       Type string
117 > %       Container string
118 > %       Value string
119 > %EndEventDef
120 > %EventDef PajePopState 13
121 > %       Time date
122 > %       Type string
123 > %       Container string
124 > %EndEventDef
125 > %EventDef PajeResetState 14
126 > %       Time date
127 > %       Type string
128 > %       Container string
129 > %EndEventDef
130 > %EventDef PajeStartLink 15
131 > %       Time date
132 > %       Type string
133 > %       Container string
134 > %       Value string
135 > %       StartContainer string
136 > %       Key string
137 > %EndEventDef
138 > %EventDef PajeEndLink 16
139 > %       Time date
140 > %       Type string
141 > %       Container string
142 > %       Value string
143 > %       EndContainer string
144 > %       Key string
145 > %EndEventDef
146 > %EventDef PajeNewEvent 17
147 > %       Time date
148 > %       Type string
149 > %       Container string
150 > %       Value string
151 > %EndEventDef
152 > 0 1 0 MPI
153 > 2 2 1 MPI_STATE
154 > 4 3 0 1 1 MPI_LINK
155 > 6 0 1 1 0 "rank-0"
156 > 5 4 2 computing "0 1 1"
157 > 5 5 2 action_bcast "0 0.78 0.39"
158 > 6 0 2 1 0 "rank-1"
159 > 6 0 3 1 0 "rank-2"
160 > 12 0 2 1 4
161 > 13 0 2 1
162 > 12 0 2 1 5
163 > 12 0 2 2 4
164 > 13 0 2 2
165 > 12 0 2 2 5
166 > 12 0 2 3 4
167 > 13 0 2 3
168 > 12 0 2 3 5
169 > 13 65.176535 2 3
170 > 12 65.176535 2 3 4
171 > 13 71.729958 2 3
172 > 12 71.729958 2 3 5
173 > 13 73.739750 2 2
174 > 12 73.739750 2 2 4
175 > 13 73.739750 2 1
176 > 12 73.739750 2 1 4
177 > 5 6 2 action_reduce "0 1 0"
178 > 13 76.361119 2 2
179 > 12 76.361119 2 2 5
180 > 13 78.836850 2 1
181 > 12 78.836850 2 1 5
182 > 13 144.013385 2 3
183 > 12 144.013385 2 3 4
184 > 13 150.566808 2 3
185 > 12 150.566808 2 3 6
186 > 13 152.576600 2 2
187 > 12 152.576600 2 2 4
188 > 13 152.576600 2 1
189 > 12 152.576600 2 1 4
190 > 13 155.197969 2 2
191 > 12 155.197969 2 2 6
192 > 13 157.673699 2 1
193 > 12 157.673699 2 1 6
194 > 13 222.850234 2 3
195 > 12 222.850234 2 3 4
196 > 13 222.850234 2 3
197 > 7 222.850234 1 3
198 > 13 231.413449 2 2
199 > 12 231.413449 2 2 4
200 > 13 231.413449 2 2
201 > 7 231.413449 1 2
202 > 13 231.413449 2 1
203 > 12 231.413449 2 1 4
204 > 13 231.413449 2 1
205 > 7 231.413449 1 1
206
207 $ rm -f ./simgrid.trace
208
209 p Another test of trace replay with SMPI (one trace per process)
210 $ ../../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
211 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'maxmin/precision' to '1e-9'
212 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'network/model' to 'SMPI'
213 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'network/TCP_gamma' to '4194304'
214 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'smpi/cpu_threshold' to '1'
215 > [0.000000] [surf_config/INFO] Switching workstation model to compound since you changed the network and/or cpu model(s)
216 > [Tremblay:0:(0) 0.164463] [smpi_replay/VERBOSE] 0 send 1 1e6 0.164463
217 > [Jupiter:1:(0) 0.164463] [smpi_replay/VERBOSE] 1 recv 0 1e6 0.164463
218 > [Jupiter:1:(0) 13.271310] [smpi_replay/VERBOSE] 1 compute 1e9 13.106847
219 > [Jupiter:1:(0) 13.271310] [smpi_replay/VERBOSE] 1 Isend 0 1e6 0.000000
220 > [Jupiter:1:(0) 13.271310] [smpi_replay/VERBOSE] 1 Irecv 0 1e6 0.000000
221 > [Tremblay:0:(0) 13.435773] [smpi_replay/VERBOSE] 0 recv 1 1e6 13.271310
222 > [Jupiter:1:(0) 13.600235] [smpi_replay/VERBOSE] 1 wait 0.328926
223 > [Tremblay:0:(0) 13.600235] [smpi_replay/VERBOSE] 0 send 1 1e6 0.164463
224 > [Tremblay:0:(0) 13.600235] [smpi_replay/INFO] Simulation time 13.6002