Logo AND Algorithmique Numérique Distribuée

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