Logo AND Algorithmique Numérique Distribuée

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