1 $ rm -rf ./out_ti.txt_files
2 $ rm -rf ./out_in_ti.txt_files
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
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
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
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
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
66 $ sh -c "cat ./out_ti.txt_files/*"
89 $ sh -c "cat ./out_in_ti.txt_files/*"
111 $ rm -rf ./out_ti.txt_files
112 $ rm -rf ./out_in_ti.txt_files
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)
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
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
157 > [rank 3] -> Ginette
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
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
176 $ rm -rf ./out_ti.txt_files
177 $ rm -rf ./out_in_ti.txt_files