Logo AND Algorithmique Numérique Distribuée

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