Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid into...
[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 --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
27
28
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
39
40
41 $ cat ./simgrid.trace
42 > #This file was generated using SimGrid-3.8.0
43 > %EventDef PajeDefineContainerType 0
44 > %       Alias string
45 > %       Type string
46 > %       Name string
47 > %EndEventDef
48 > %EventDef PajeDefineVariableType 1
49 > %       Alias string
50 > %       Type string
51 > %       Name string
52 > %       Color color
53 > %EndEventDef
54 > %EventDef PajeDefineStateType 2
55 > %       Alias string
56 > %       Type string
57 > %       Name string
58 > %EndEventDef
59 > %EventDef PajeDefineEventType 3
60 > %       Alias string
61 > %       Type string
62 > %       Name string
63 > %EndEventDef
64 > %EventDef PajeDefineLinkType 4
65 > %       Alias string
66 > %       Type string
67 > %       StartContainerType string
68 > %       EndContainerType string
69 > %       Name string
70 > %EndEventDef
71 > %EventDef PajeDefineEntityValue 5
72 > %       Alias string
73 > %       Type string
74 > %       Name string
75 > %       Color color
76 > %EndEventDef
77 > %EventDef PajeCreateContainer 6
78 > %       Time date
79 > %       Alias string
80 > %       Type string
81 > %       Container string
82 > %       Name string
83 > %EndEventDef
84 > %EventDef PajeDestroyContainer 7
85 > %       Time date
86 > %       Type string
87 > %       Name string
88 > %EndEventDef
89 > %EventDef PajeSetVariable 8
90 > %       Time date
91 > %       Type string
92 > %       Container string
93 > %       Value double
94 > %EndEventDef
95 > %EventDef PajeAddVariable 9
96 > %       Time date
97 > %       Type string
98 > %       Container string
99 > %       Value double
100 > %EndEventDef
101 > %EventDef PajeSubVariable 10
102 > %       Time date
103 > %       Type string
104 > %       Container string
105 > %       Value double
106 > %EndEventDef
107 > %EventDef PajeSetState 11
108 > %       Time date
109 > %       Type string
110 > %       Container string
111 > %       Value string
112 > %EndEventDef
113 > %EventDef PajePushState 12
114 > %       Time date
115 > %       Type string
116 > %       Container string
117 > %       Value string
118 > %EndEventDef
119 > %EventDef PajePopState 13
120 > %       Time date
121 > %       Type string
122 > %       Container string
123 > %EndEventDef
124 > %EventDef PajeResetState 14
125 > %       Time date
126 > %       Type string
127 > %       Container string
128 > %EndEventDef
129 > %EventDef PajeStartLink 15
130 > %       Time date
131 > %       Type string
132 > %       Container string
133 > %       Value string
134 > %       StartContainer string
135 > %       Key string
136 > %EndEventDef
137 > %EventDef PajeEndLink 16
138 > %       Time date
139 > %       Type string
140 > %       Container string
141 > %       Value string
142 > %       EndContainer string
143 > %       Key string
144 > %EndEventDef
145 > %EventDef PajeNewEvent 17
146 > %       Time date
147 > %       Type string
148 > %       Container string
149 > %       Value string
150 > %EndEventDef
151 > 0 1 0 MPI
152 > 2 2 1 MPI_STATE
153 > 4 3 0 1 1 MPI_LINK
154 > 6 0 1 1 0 "rank-0"
155 > 5 4 2 computing "0 1 1"
156 > 5 5 2 action_bcast "0 0.78 0.39"
157 > 6 0 2 1 0 "rank-1"
158 > 6 0 3 1 0 "rank-2"
159 > 12 0 2 1 4
160 > 13 0 2 1
161 > 12 0 2 1 5
162 > 12 0 2 2 4
163 > 13 0 2 2
164 > 12 0 2 2 5
165 > 12 0 2 3 4
166 > 13 0 2 3
167 > 12 0 2 3 5
168 > 13 65.176535 2 3
169 > 12 65.176535 2 3 4
170 > 13 71.729958 2 3
171 > 12 71.729958 2 3 5
172 > 13 73.739750 2 2
173 > 12 73.739750 2 2 4
174 > 13 73.739750 2 1
175 > 12 73.739750 2 1 4
176 > 5 6 2 action_reduce "0 1 0"
177 > 13 76.361119 2 2
178 > 12 76.361119 2 2 5
179 > 13 78.836850 2 1
180 > 12 78.836850 2 1 5
181 > 13 144.013395 2 3
182 > 12 144.013395 2 3 4
183 > 13 150.566818 2 3
184 > 12 150.566818 2 3 6
185 > 13 152.576610 2 2
186 > 12 152.576610 2 2 4
187 > 13 152.576610 2 1
188 > 12 152.576610 2 1 4
189 > 13 155.197979 2 2
190 > 12 155.197979 2 2 6
191 > 13 157.673709 2 1
192 > 12 157.673709 2 1 6
193 > 13 222.850244 2 3
194 > 12 222.850244 2 3 4
195 > 13 222.850244 2 3
196 > 7 222.850244 1 3
197 > 13 231.413469 2 2
198 > 12 231.413469 2 2 4
199 > 13 231.413469 2 2
200 > 7 231.413469 1 2
201 > 13 231.413469 2 1
202 > 12 231.413469 2 1 4
203 > 13 231.413469 2 1
204 > 7 231.413469 1 1
205
206
207 $ rm -f ./simgrid.trace
208
209 p Another test of trace replay with SMPI (one trace per process)
210 $ ../../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
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] [surf_config/INFO] Switching workstation model to compound since you changed the network and/or cpu model(s)
215 > [Tremblay:0:(0) 0.164463] [smpi_replay/VERBOSE] 0 send 1 1e6 0.164463
216 > [Jupiter:1:(0) 0.164463] [smpi_replay/VERBOSE] 1 recv 0 1e6 0.164463
217 > [Jupiter:1:(0) 13.271310] [smpi_replay/VERBOSE] 1 compute 1e9 13.106847
218 > [Jupiter:1:(0) 13.271310] [smpi_replay/VERBOSE] 1 Isend 0 1e6 0.000000
219 > [Jupiter:1:(0) 13.271310] [smpi_replay/VERBOSE] 1 Irecv 0 1e6 0.000000
220 > [Tremblay:0:(0) 13.574474] [smpi_replay/VERBOSE] 0 recv 1 1e6 13.410011
221 > [Jupiter:1:(0) 13.877637] [smpi_replay/VERBOSE] 1 wait 0.606328
222 > [Tremblay:0:(0) 13.877637] [smpi_replay/VERBOSE] 0 send 1 1e6 0.303164
223 > [Tremblay:0:(0) 13.877637] [smpi_replay/INFO] Simulation time 13.8776