Logo AND Algorithmique Numérique Distribuée

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