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 $ ../../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
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
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
45 > [rank 0] -> Tremblay
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.0167975
63 $ find ./out_ti.txt_files -type f -exec cat {} \;
86 $ find ./out_in_ti.txt_files -type f -exec cat {} \;
108 $ rm -rf ./out_ti.txt_files
109 $ rm -rf ./out_in_ti.txt_files
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)
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
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
152 > [rank 3] -> Ginette
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
155 > [rank 0] -> Tremblay
156 > [rank 1] -> Jupiter
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.0167976
174 $ rm -rf ./out_ti.txt_files
175 $ rm -rf ./out_in_ti.txt_files