Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Restructure teshsuite smpi
[simgrid.git] / teshsuite / smpi / pingpong / TI_output.tesh
1 $ rm -rf ./out_ti.txt_files
2 $ rm -rf ./out_in_ti.txt_files
3
4 p Test output of time independent tracing
5 p generate a trace with pingpong, and replay itself, then check that output trace of the second run is the same as in the first (once sorted)
6 ! setenv LD_LIBRARY_PATH=../../lib
7 ! output sort
8 $ ${bindir:=.}/../../../bin/smpirun -trace-ti --cfg=tracing/filename:out_in_ti.txt --cfg=smpi/cpu_threshold:-1 -map -hostfile ../hostfile -platform ../../../examples/msg/small_platform.xml -np 4 ${bindir:=.}/pingpong -q --log=smpi_kernel.thres:warning
9 >     *** Ping-pong test (MPI_Send/MPI_Recv) ***
10 > == pivot=0 : pingpong [0] <--> [1]
11 > == pivot=1 : pingpong [1] <--> [2]
12 > == pivot=2 : pingpong [2] <--> [3]
13 > [0.000000] [surf_config/INFO] Switching workstation model to compound since you changed the network and/or cpu model(s)
14 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing' to 'yes'
15 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing/filename' to 'smpi_simgrid.txt'
16 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing/smpi' to 'yes'
17 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing/smpi/format' to 'TI'
18 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing/smpi/computing' to 'yes'
19 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'maxmin/precision' to '1e-9'
20 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'surf/precision' to '1e-9'
21 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'network/model' to 'SMPI'
22 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'network/TCP_gamma' to '4194304'
23 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing/filename' to 'out_in_ti.txt'
24 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'smpi/cpu_threshold' to '-1'
25 > [0] About to send 1st message '99' to process [1]
26 > [0] Received reply message '100' from process [1]
27 > [1] About to send 1st message '100' to process [2]
28 > [1] About to send back message '100' to process [0]
29 > [1] Received 1st message '99' from process [0]
30 > [1] Received reply message '101' from process [2]
31 > [1] increment message's value to  '100'
32 > [2] About to send 1st message '101' to process [3]
33 > [2] About to send back message '101' to process [1]
34 > [2] Received 1st message '100' from process [1]
35 > [2] Received reply message '102' from process [3]
36 > [2] increment message's value to  '101'
37 > [3] About to send back message '102' to process [2]
38 > [3] Received 1st message '101' from process [2]
39 > [3] increment message's value to  '102'
40 > [rank 0] -> Tremblay
41 > [rank 1] -> Jupiter
42 > [rank 2] -> Fafard
43 > [rank 3] -> Ginette
44
45 $ ${bindir:=.}/../../../bin/smpirun -ext smpi_replay --log=replay.:critical -trace-ti --cfg=tracing/filename:out_ti.txt --cfg=smpi/cpu_threshold:-1 -map -hostfile ../hostfile -platform ../../../examples/msg/small_platform.xml -np 4 ${bindir:=.}/../../../examples/smpi/smpi_replay ./out_in_ti.txt --log=smpi_kernel.thres:warning
46 > [rank 0] -> Tremblay
47 > [rank 1] -> Jupiter
48 > [rank 2] -> Fafard
49 > [rank 3] -> Ginette
50 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing' to 'yes'
51 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing/filename' to 'smpi_simgrid.txt'
52 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing/smpi' to 'yes'
53 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing/smpi/format' to 'TI'
54 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing/smpi/computing' to 'yes'
55 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'maxmin/precision' to '1e-9'
56 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'surf/precision' to '1e-9'
57 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'network/model' to 'SMPI'
58 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'network/TCP_gamma' to '4194304'
59 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing/filename' to 'out_ti.txt'
60 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'smpi/cpu_threshold' to '-1'
61 > [0.000000] [surf_config/INFO] Switching workstation model to compound since you changed the network and/or cpu model(s)
62 > [Jupiter:1:(0) 0.016798] [smpi_replay/INFO] Simulation time 0.016798
63
64 ! output sort
65 $ sh -c "cat ./out_ti.txt_files/*"
66 > 0 init
67 > 0 send 1 1 1
68 > 0 recv 1 1 1
69 > 0 finalize
70 > 1 init
71 > 1 recv 0 1 1
72 > 1 send 0 1 1
73 > 1 send 2 1 1
74 > 1 recv 2 1 1
75 > 1 finalize
76 > 2 init
77 > 2 recv 1 1 1
78 > 2 send 1 1 1
79 > 2 send 3 1 1
80 > 2 recv 3 1 1
81 > 2 finalize
82 > 3 init
83 > 3 recv 2 1 1
84 > 3 send 2 1 1
85 > 3 finalize
86
87 ! output sort
88 $ sh -c "cat ./out_in_ti.txt_files/*"
89 > 0 init
90 > 0 send 1 1 1
91 > 0 recv 1 1 1
92 > 0 finalize
93 > 1 init
94 > 1 recv 0 1 1
95 > 1 send 0 1 1
96 > 1 send 2 1 1
97 > 1 recv 2 1 1
98 > 1 finalize
99 > 2 init
100 > 2 recv 1 1 1
101 > 2 send 1 1 1
102 > 2 send 3 1 1
103 > 2 recv 3 1 1
104 > 2 finalize
105 > 3 init
106 > 3 recv 2 1 1
107 > 3 send 2 1 1
108 > 3 finalize
109
110 $ rm -rf ./out_ti.txt_files
111 $ rm -rf ./out_in_ti.txt_files
112 $ rm out_ti.txt
113 $ rm out_in_ti.txt
114
115
116
117 p Same test, but only using one output file for all processes
118 p generate a trace with pingpong, and replay itself, then check that output trace of the second run is the same as in the first (once sorted)
119 ! output sort
120 $ ${bindir:=.}/../../../bin/smpirun -trace-ti --cfg=tracing/filename:out_in_ti.txt --cfg=tracing/smpi/format/ti_one_file:yes -map -hostfile ../hostfile -platform ../../../examples/msg/small_platform.xml -np 4 ${bindir:=.}/pingpong -q --log=smpi_kernel.thres:warning
121 >     *** Ping-pong test (MPI_Send/MPI_Recv) ***
122 > == pivot=0 : pingpong [0] <--> [1]
123 > == pivot=1 : pingpong [1] <--> [2]
124 > == pivot=2 : pingpong [2] <--> [3]
125 > [0.000000] [surf_config/INFO] Switching workstation model to compound since you changed the network and/or cpu model(s)
126 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing' to 'yes'
127 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing/filename' to 'smpi_simgrid.txt'
128 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing/smpi' to 'yes'
129 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing/smpi/format' to 'TI'
130 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing/smpi/computing' to 'yes'
131 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'maxmin/precision' to '1e-9'
132 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'surf/precision' to '1e-9'
133 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'network/model' to 'SMPI'
134 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'network/TCP_gamma' to '4194304'
135 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing/filename' to 'out_in_ti.txt'
136 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing/smpi/format/ti_one_file' to 'yes'
137 > [0] About to send 1st message '99' to process [1]
138 > [0] Received reply message '100' from process [1]
139 > [1] About to send 1st message '100' to process [2]
140 > [1] About to send back message '100' to process [0]
141 > [1] Received 1st message '99' from process [0]
142 > [1] Received reply message '101' from process [2]
143 > [1] increment message's value to  '100'
144 > [2] About to send 1st message '101' to process [3]
145 > [2] About to send back message '101' to process [1]
146 > [2] Received 1st message '100' from process [1]
147 > [2] Received reply message '102' from process [3]
148 > [2] increment message's value to  '101'
149 > [3] About to send back message '102' to process [2]
150 > [3] Received 1st message '101' from process [2]
151 > [3] increment message's value to  '102'
152 > [rank 0] -> Tremblay
153 > [rank 1] -> Jupiter
154 > [rank 2] -> Fafard
155 > [rank 3] -> Ginette
156
157 $ ${bindir:=.}/../../../bin/smpirun -ext smpi_replay --log=replay.:critical -trace-ti --cfg=tracing/filename:out_ti.txt --cfg=tracing/smpi/format/ti_one_file:yes -map -hostfile ../hostfile -platform ../../../examples/msg/small_platform.xml -np 4 ${bindir:=.}/../../../examples/smpi/smpi_replay ./out_in_ti.txt --log=smpi_kernel.thres:warning
158 > [rank 0] -> Tremblay
159 > [rank 1] -> Jupiter
160 > [rank 2] -> Fafard
161 > [rank 3] -> Ginette
162 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing' to 'yes'
163 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing/filename' to 'smpi_simgrid.txt'
164 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing/smpi' to 'yes'
165 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing/smpi/format' to 'TI'
166 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing/smpi/computing' to 'yes'
167 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'maxmin/precision' to '1e-9'
168 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'surf/precision' to '1e-9'
169 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'network/model' to 'SMPI'
170 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'network/TCP_gamma' to '4194304'
171 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing/filename' to 'out_ti.txt'
172 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing/smpi/format/ti_one_file' to 'yes'
173 > [0.000000] [surf_config/INFO] Switching workstation model to compound since you changed the network and/or cpu model(s)
174 > [Jupiter:1:(0) 0.016798] [smpi_replay/INFO] Simulation time 0.016798
175
176
177
178 $ rm -rf ./out_ti.txt_files
179 $ rm -rf ./out_in_ti.txt_files
180 $ rm out_ti.txt
181 $ rm out_in_ti.txt
182
183
184