Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add new entry in Release_Notes.
[simgrid.git] / examples / smpi / replay / replay-override-replayer.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_override
9 ! timeout 60
10
11 $ ../../smpi_script/bin/smpirun -no-privatize -replay replay/one_trace_override --log=replay.thresh:critical --log=smpi_replay.thresh:verbose --log=no_loc -np 3 -platform ${srcdir:=.}/../platforms/small_platform.xml -hostfile ${srcdir:=.}/hostfile --log=smpi_config.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.015536] [smpi_replay/VERBOSE] 1 bcast 5e4 0.015536
14 > [Fafard:2:(3) 0.016118] [smpi_replay/VERBOSE] 2 bcast 5e4 0.016118
15 > [Jupiter:1:(2) 2.636906] [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.112636] [smpi_replay/VERBOSE] 1 bcast 5e4 2.475730
19 > [Fafard:2:(3) 6.569541] [smpi_replay/VERBOSE] 2 compute 5e8 6.553424
20 > [Fafard:2:(3) 6.585659] [smpi_replay/VERBOSE] 2 bcast 5e4 0.016118
21 > [Jupiter:1:(2) 7.734005] [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.139083] [smpi_replay/VERBOSE] 2 compute 5e8 6.553424
24 > [Jupiter:1:(2) 14.287429] [smpi_replay/VERBOSE] 1 reduce 5e4 5e8 6.553424
25 > [Tremblay:0:(1) 18.252300] [smpi_replay/VERBOSE] 0 reduce 5e4 5e8 8.058101
26 > [Fafard:2:(3) 19.692506] [smpi_replay/VERBOSE] 2 reduce 5e4 5e8 6.553424
27 > [Fafard:2:(3) 19.692506] [smpi_replay/INFO] Simulation time 19.692506
28
29 $ rm -f replay/one_trace_override
30
31 p The same with tracing activated
32
33 < replay/actions_bcast.txt
34 $ mkfile replay/one_trace_override
35
36 $ ../../smpi_script/bin/smpirun -no-privatize -replay replay/one_trace_override --log=replay.thresh:critical --log=no_loc  --cfg=tracing:yes --cfg=tracing/smpi:yes --cfg=tracing/smpi/computing:yes --cfg=tracing/filename:./simgrid_override.trace  -np 3 -platform ${srcdir:=.}/../platforms/small_platform.xml -hostfile ${srcdir:=.}/hostfile  --log=smpi_config.thres:warning --log=xbt_cfg.thres:warning
37 > [Fafard:2:(3) 19.692506] [smpi_replay/INFO] Simulation time 19.692506
38
39 # $ rm -f replay/one_trace_override
40
41 $ tail -n +3 ./simgrid_override.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 > 6 0.000000 2 1 0 "rank-1"
157 > 6 0.000000 3 1 0 "rank-2"
158 > 5 6 2 smpi_replay_run_init "0 1 0"
159 > 5 7 2 computing "0 1 1"
160 > 5 8 2 action_bcast "0 0.78 0.39"
161 > 12 0.000000 2 1 6
162 > 13 0.000000 2 1
163 > 12 0.000000 2 2 6
164 > 13 0.000000 2 2
165 > 12 0.000000 2 3 6
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 7
172 > 5 9 2 action_reduce "0 1 0"
173 > 5 10 2 smpi_replay_run_finalize "0 1 0"
174 > 13 0.015536 2 2
175 > 12 0.015536 2 2 7
176 > 13 0.016118 2 3
177 > 12 0.016118 2 3 7
178 > 13 2.636906 2 2
179 > 12 2.636906 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 7
184 > 13 5.112636 2 2
185 > 12 5.112636 2 2 7
186 > 13 6.569541 2 3
187 > 12 6.569541 2 3 8
188 > 13 6.585659 2 3
189 > 12 6.585659 2 3 7
190 > 13 7.734005 2 2
191 > 12 7.734005 2 2 9
192 > 12 7.734005 2 2 7
193 > 13 10.194200 2 1
194 > 12 10.194200 2 1 9
195 > 13 13.139083 2 3
196 > 12 13.139083 2 3 9
197 > 12 13.139083 2 3 7
198 > 12 13.155200 2 1 7
199 > 13 14.287429 2 2
200 > 13 14.287429 2 2
201 > 12 14.287429 2 2 10
202 > 13 14.287429 2 2
203 > 7 14.287429 1 2
204 > 13 18.252300 2 1
205 > 13 18.252300 2 1
206 > 12 18.252300 2 1 10
207 > 13 18.252300 2 1
208 > 7 18.252300 1 1
209 > 13 19.692506 2 3
210 > 13 19.692506 2 3
211 > 12 19.692506 2 3 10
212 > 13 19.692506 2 3
213 > 7 19.692506 1 3
214
215 $ rm -f ./simgrid_override.trace
216
217 p Another test of trace replay with SMPI (one trace per process)
218
219 < replay/actions0.txt
220 < replay/actions1.txt
221 $ mkfile ./split_traces_tesh_override
222
223 $ ../../smpi_script/bin/smpirun -no-privatize -replay ./split_traces_tesh_override --log=smpi_replay.thresh:verbose --log=no_loc  -np 2 -platform ${srcdir:=.}/../platforms/small_platform.xml -hostfile ${srcdir:=.}/hostfile --log=smpi_config.thres:warning --log=xbt_cfg.thres:warning
224 > [Tremblay:0:(1) 0.171838] [smpi_replay/VERBOSE] 0 send 1 0 1e6 0.171838
225 > [Jupiter:1:(2) 0.171838] [smpi_replay/VERBOSE] 1 recv 0 0 1e6 0.171838
226 > [Jupiter:1:(2) 13.278685] [smpi_replay/VERBOSE] 1 compute 1e9 13.106847
227 > [Jupiter:1:(2) 13.278685] [smpi_replay/VERBOSE] 1 isend 0 1 1e6 0.000000
228 > [Jupiter:1:(2) 13.278685] [smpi_replay/VERBOSE] 1 irecv 0 2 1e6 0.000000
229 > [Tremblay:0:(1) 13.450522] [smpi_replay/VERBOSE] 0 recv 1 1 1e6 13.278685
230 > [Jupiter:1:(2) 13.622360] [smpi_replay/VERBOSE] 1 wait 0 1 2 0.343675
231 > [Tremblay:0:(1) 13.622360] [smpi_replay/VERBOSE] 0 send 1 2 1e6 0.171838
232 > [Jupiter:1:(2) 13.622360] [smpi_replay/INFO] Simulation time 13.622360
233
234 $ rm -f ./split_traces_tesh_override
235
236 p Test of barrier replay with SMPI (one trace for all processes)
237
238 < replay/actions_barrier.txt
239 $ mkfile replay/one_trace_override
240
241 $ ../../smpi_script/bin/smpirun -no-privatize -replay replay/one_trace_override --log=replay.thresh:critical --log=smpi_replay.thresh:verbose --log=no_loc  -np 3 -platform ${srcdir:=.}/../platforms/small_platform.xml -hostfile ${srcdir:=.}/hostfile --log=smpi_config.thres:warning --log=xbt_cfg.thres:warning
242 > [Tremblay:0:(1) 1.565197] [smpi_replay/VERBOSE] 0 send 1 0 1e7 1.565197
243 > [Jupiter:1:(2) 1.565197] [smpi_replay/VERBOSE] 1 recv 0 0 1e7 1.565197
244 > [Tremblay:0:(1) 1.569181] [smpi_replay/VERBOSE] 0 barrier 0.003984
245 > [Jupiter:1:(2) 1.572128] [smpi_replay/VERBOSE] 1 barrier 0.006931
246 > [Fafard:2:(3) 1.573164] [smpi_replay/VERBOSE] 2 barrier 1.573164
247 > [Tremblay:0:(1) 2.569181] [smpi_replay/VERBOSE] 0 compute 98095000 1.000000
248 > [Jupiter:1:(2) 2.572128] [smpi_replay/VERBOSE] 1 compute 76296000 1.000000
249 > [Fafard:2:(3) 2.573164] [smpi_replay/VERBOSE] 2 compute 76296000 1.000000
250 > [Fafard:2:(3) 2.573164] [smpi_replay/INFO] Simulation time 2.573164
251
252 $ rm -f replay/one_trace_override
253
254 p Test of isend replay with SMPI (one trace for all processes)
255
256 < replay/actions_with_isend.txt
257 $ mkfile replay/one_trace_override
258
259 $ ../../smpi_script/bin/smpirun -no-privatize -replay replay/one_trace_override --log=replay.thresh:critical --log=smpi_replay.thresh:verbose --log=no_loc  -np 3 -platform ${srcdir:=.}/../platforms/small_platform.xml -hostfile ${srcdir:=.}/hostfile --log=smpi_config.thres:warning --log=xbt_cfg.thres:warning
260 > [Jupiter:1:(2) 0.000000] [smpi_replay/VERBOSE] 1 irecv 0 0 1e6 0.000000
261 > [Jupiter:1:(2) 6.553424] [smpi_replay/VERBOSE] 1 compute 5e8 6.553424
262 > [Jupiter:1:(2) 6.553524] [smpi_replay/VERBOSE] 1 test 0 1 0 0.000100
263 > [Tremblay:0:(1) 10.194200] [smpi_replay/VERBOSE] 0 compute 1e9 10.194200
264 > [Tremblay:0:(1) 10.366037] [smpi_replay/VERBOSE] 0 send 1 0 1e6 0.171838
265 > [Jupiter:1:(2) 13.106947] [smpi_replay/VERBOSE] 1 compute 5e8 6.553424
266 > [Jupiter:1:(2) 13.106947] [smpi_replay/VERBOSE] 1 wait 0 1 0 0.000000
267 > [Tremblay:0:(1) 20.560237] [smpi_replay/VERBOSE] 0 compute 1e9 10.194200
268 > [Fafard:2:(3) 26.213694] [smpi_replay/VERBOSE] 2 compute 2e9 26.213694
269 > [Fafard:2:(3) 26.213694] [smpi_replay/VERBOSE] 2 irecv 1 1 1e6 0.000000
270 > [Jupiter:1:(2) 26.408540] [smpi_replay/VERBOSE] 1 send 2 1 1e6 13.301593
271 > [Fafard:2:(3) 29.490406] [smpi_replay/VERBOSE] 2 compute 2.5e8 3.276712
272 > [Fafard:2:(3) 29.490606] [smpi_replay/VERBOSE] 2 test 1 2 1 0.000200
273 > [Fafard:2:(3) 32.767318] [smpi_replay/VERBOSE] 2 compute 2.5e8 3.276712
274 > [Fafard:2:(3) 32.767318] [smpi_replay/VERBOSE] 2 wait 1 2 1 0.000000
275 > [Fafard:2:(3) 32.767318] [smpi_replay/VERBOSE] 2 isend 0 2 1e6 0.000000
276 > [Tremblay:0:(1) 32.927150] [smpi_replay/VERBOSE] 0 recv 2 2 1e6 12.366914
277 > [Fafard:2:(3) 39.320741] [smpi_replay/VERBOSE] 2 compute 5e8 6.553424
278 > [Fafard:2:(3) 39.320741] [smpi_replay/INFO] Simulation time 39.320741
279
280 $ rm -f replay/one_trace_override
281
282 p Test of AllReduce replay with SMPI (one trace for all processes)
283
284 < replay/actions_allreduce.txt
285 $ mkfile replay/one_trace_override
286
287 $ ../../smpi_script/bin/smpirun -no-privatize -replay replay/one_trace_override --log=replay.thresh:critical --log=smpi_replay.thresh:verbose --log=no_loc  -np 3 -platform ${srcdir:=.}/../platforms/small_platform.xml -hostfile ${srcdir:=.}/hostfile --log=smpi_config.thres:warning --log=xbt_cfg.thres:warning
288 > [Tremblay:0:(1) 5.113218] [smpi_replay/VERBOSE] 0 allreduce 5e4 5e8 5.113218
289 > [Jupiter:1:(2) 6.585077] [smpi_replay/VERBOSE] 1 allreduce 5e4 5e8 6.585077
290 > [Fafard:2:(3) 6.585659] [smpi_replay/VERBOSE] 2 allreduce 5e4 5e8 6.585659
291 > [Tremblay:0:(1) 10.210317] [smpi_replay/VERBOSE] 0 compute 5e8 5.097100
292 > [Jupiter:1:(2) 13.138501] [smpi_replay/VERBOSE] 1 compute 5e8 6.553424
293 > [Fafard:2:(3) 13.139083] [smpi_replay/VERBOSE] 2 compute 5e8 6.553424
294 > [Fafard:2:(3) 13.139083] [smpi_replay/INFO] Simulation time 13.139083
295
296 $ rm -f replay/one_trace_override
297
298 p Test of AllToAll replay with SMPI (one trace for all processes)
299
300 < replay/actions_alltoall.txt
301 $ mkfile replay/one_trace_override
302
303 $ ../../smpi_script/bin/smpirun -no-privatize -replay replay/one_trace_override --log=replay.thresh:critical --log=smpi_replay.thresh:verbose --log=no_loc  -np 3 -platform ${srcdir:=.}/../platforms/small_platform.xml -hostfile ${srcdir:=.}/hostfile --log=smpi_config.thres:warning --log=xbt_cfg.thres:warning
304 > [Tremblay:0:(1) 0.004253] [smpi_replay/VERBOSE] 0 alltoall 500 500 0.004253
305 > [Fafard:2:(3) 0.007159] [smpi_replay/VERBOSE] 2 alltoall 500 500 0.007159
306 > [Jupiter:1:(2) 0.007159] [smpi_replay/VERBOSE] 1 alltoall 500 500 0.007159
307 > [Jupiter:1:(2) 0.007159] [smpi_replay/INFO] Simulation time 0.007159
308
309 $ rm -f replay/one_trace_override
310
311 p Test of AllToAllv replay with SMPI (one trace for all processes)
312
313 < replay/actions_alltoallv.txt
314 $ mkfile replay/one_trace_override
315
316 $ ../../smpi_script/bin/smpirun -no-privatize -replay replay/one_trace_override --log=replay.thresh:critical --log=smpi_replay.thresh:verbose --log=no_loc  -np 3 -platform ${srcdir:=.}/../platforms/small_platform.xml -hostfile ${srcdir:=.}/hostfile --log=smpi_config.thres:warning --log=xbt_cfg.thres:warning
317 > [Tremblay:0:(1) 0.004007] [smpi_replay/VERBOSE] 0 alltoallv 100 1 40 30 1000 1 80 100 0.004007
318 > [Jupiter:1:(2) 0.006942] [smpi_replay/VERBOSE] 1 alltoallv 1000 80 1 40 1000 40 1 30 0.006942
319 > [Fafard:2:(3) 0.006944] [smpi_replay/VERBOSE] 2 alltoallv 1000 100 30 1 1000 30 40 1 0.006944
320 > [Fafard:2:(3) 0.006944] [smpi_replay/INFO] Simulation time 0.006944
321
322 $ rm -f replay/one_trace_override
323
324 p Test of AllGatherv replay with SMPI (one trace for all processes)
325
326 < replay/actions_allgatherv.txt
327 $ mkfile replay/one_trace_override
328
329 $ ../../smpi_script/bin/smpirun -no-privatize -replay replay/one_trace_override --log=replay.thresh:critical --log=smpi_replay.thresh:verbose --log=no_loc  -np 4 -platform ${srcdir:=.}/../platforms/small_platform.xml -hostfile ${srcdir:=.}/hostfile --log=smpi_config.thres:warning --log=xbt_cfg.thres:warning
330 > [Tremblay:0:(1) 1.440359] [smpi_replay/VERBOSE] 0 allgatherv 275427 275427 275427 275427 204020 0 0 1.440359
331 > [Ginette:3:(4) 1.814751] [smpi_replay/VERBOSE] 3 allgatherv 204020 275427 275427 275427 204020 0 0 1.814751
332 > [Fafard:2:(3) 2.001913] [smpi_replay/VERBOSE] 2 allgatherv 275427 275427 275427 275427 204020 0 0 2.001913
333 > [Jupiter:1:(2) 2.001913] [smpi_replay/VERBOSE] 1 allgatherv 275427 275427 275427 275427 204020 0 0 2.001913
334 > [Jupiter:1:(2) 2.001913] [smpi_replay/INFO] Simulation time 2.001913
335
336 $ rm -f replay/one_trace_override
337
338 p Test of waitall replay with SMPI (one trace for all processes)
339
340 < replay/actions_waitall.txt
341 $ mkfile replay/one_trace_override
342
343 ! output sort 19
344 $ ../../smpi_script/bin/smpirun -no-privatize -replay replay/one_trace_override --log=replay.thresh:critical --log=smpi_replay.thresh:verbose --log=no_loc  -np 3 -platform ${srcdir:=.}/../platforms/small_platform.xml -hostfile ${srcdir:=.}/hostfile --log=smpi_config.thres:warning --log=xbt_cfg.thres:warning
345 > [Tremblay:0:(1) 0.000000] [smpi_replay/VERBOSE] 0 irecv 1 0 2000 0.000000
346 > [Jupiter:1:(2) 0.000000] [smpi_replay/VERBOSE] 1 isend 0 0 2000 0.000000
347 > [Fafard:2:(3) 0.000000] [smpi_replay/VERBOSE] 2 irecv 1 1 3000 0.000000
348 > [Tremblay:0:(1) 0.000000] [smpi_replay/VERBOSE] 0 irecv 2 2 3000 0.000000
349 > [Jupiter:1:(2) 0.000000] [smpi_replay/VERBOSE] 1 isend 2 1 3000 0.000000
350 > [Jupiter:1:(2) 0.000000] [smpi_replay/VERBOSE] 1 waitall 0.000000
351 > [Fafard:2:(3) 0.000000] [smpi_replay/VERBOSE] 2 isend 0 2 3000 0.000000
352 > [Tremblay:0:(1) 0.003820] [smpi_replay/VERBOSE] 0 waitall 0.003820
353 > [Fafard:2:(3) 0.006258] [smpi_replay/VERBOSE] 2 waitall 0.006258
354 > [Fafard:2:(3) 0.006258] [smpi_replay/INFO] Simulation time 0.006258
355
356 $ rm -f replay/one_trace_override