Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
9cd7493cc969718d4e28bad03251a492ec426fdd
[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 $ tail -n +3 ./simgrid.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 > 6 0 1 1 0 "rank-0"
154 > 5 4 2 computing "0 1 1"
155 > 5 5 2 action_bcast "0 0.78 0.39"
156 > 6 0 2 1 0 "rank-1"
157 > 6 0 3 1 0 "rank-2"
158 > 12 0 2 1 4
159 > 13 0 2 1
160 > 12 0 2 1 5
161 > 12 0 2 2 4
162 > 13 0 2 2
163 > 12 0 2 2 5
164 > 12 0 2 3 4
165 > 13 0 2 3
166 > 12 0 2 3 5
167 > 13 65.176535 2 3
168 > 12 65.176535 2 3 4
169 > 13 71.729958 2 3
170 > 12 71.729958 2 3 5
171 > 13 73.739750 2 2
172 > 12 73.739750 2 2 4
173 > 13 73.739750 2 1
174 > 12 73.739750 2 1 4
175 > 5 6 2 action_reduce "0 1 0"
176 > 13 76.361119 2 2
177 > 12 76.361119 2 2 5
178 > 13 78.836850 2 1
179 > 12 78.836850 2 1 5
180 > 13 144.013395 2 3
181 > 12 144.013395 2 3 4
182 > 13 150.566818 2 3
183 > 12 150.566818 2 3 6
184 > 13 152.576610 2 2
185 > 12 152.576610 2 2 4
186 > 13 152.576610 2 1
187 > 12 152.576610 2 1 4
188 > 13 155.197979 2 2
189 > 12 155.197979 2 2 6
190 > 13 157.673709 2 1
191 > 12 157.673709 2 1 6
192 > 13 222.850244 2 3
193 > 12 222.850244 2 3 4
194 > 13 222.850245 2 3
195 > 7 222.850245 1 3
196 > 13 231.413469 2 2
197 > 12 231.413469 2 2 4
198 > 13 231.413469 2 1
199 > 12 231.413469 2 1 4
200 > 13 231.413470 2 1
201 > 7 231.413470 1 1
202 > 13 231.413470 2 2
203 > 7 231.413470 1 2
204
205 $ rm -f ./simgrid.trace
206
207 p Another test of trace replay with SMPI (one trace per process)
208 $ ../../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
209 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'maxmin/precision' to '1e-9'
210 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'network/model' to 'SMPI'
211 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'network/TCP_gamma' to '4194304'
212 > [0.000000] [surf_config/INFO] Switching workstation model to compound since you changed the network and/or cpu model(s)
213 > [Tremblay:0:(0) 0.164463] [smpi_replay/VERBOSE] 0 send 1 1e6 0.164463
214 > [Jupiter:1:(0) 0.164463] [smpi_replay/VERBOSE] 1 recv 0 1e6 0.164463
215 > [Jupiter:1:(0) 13.271310] [smpi_replay/VERBOSE] 1 compute 1e9 13.106847
216 > [Jupiter:1:(0) 13.271310] [smpi_replay/VERBOSE] 1 Isend 0 1e6 0.000000
217 > [Jupiter:1:(0) 13.271310] [smpi_replay/VERBOSE] 1 Irecv 0 1e6 0.000000
218 > [Tremblay:0:(0) 13.574474] [smpi_replay/VERBOSE] 0 recv 1 1e6 13.410011
219 > [Jupiter:1:(0) 13.877637] [smpi_replay/VERBOSE] 1 wait 0.606328
220 > [Tremblay:0:(0) 13.877637] [smpi_replay/VERBOSE] 0 send 1 1e6 0.303164
221 > [Tremblay:0:(0) 13.877637] [smpi_replay/INFO] Simulation time 13.8776