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/cpu_threshold:-1 -map -hostfile ../hostfile -platform ../../../examples/platforms/small_platform.xml -np 4 ${bindir:=.}/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-3'
20 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'surf/precision' to '1e-9'
21 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'network/model' to 'SMPI'
22 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'network/TCP_gamma' to '4194304'
23 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing/filename' to 'out_in_ti.txt'
24 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'smpi/cpu_threshold' to '-1'
25 > [0] About to send 1st message '99' to process [1]
26 > [0] Received reply message '100' from process [1]
27 > [1] About to send 1st message '100' to process [2]
28 > [1] About to send back message '100' to process [0]
29 > [1] Received 1st message '99' from process [0]
30 > [1] Received reply message '101' from process [2]
31 > [1] increment message's value to '100'
32 > [2] About to send 1st message '101' to process [3]
33 > [2] About to send back message '101' to process [1]
34 > [2] Received 1st message '100' from process [1]
35 > [2] Received reply message '102' from process [3]
36 > [2] increment message's value to '101'
37 > [3] About to send back message '102' to process [2]
38 > [3] Received 1st message '101' from process [2]
39 > [3] increment message's value to '102'
40 > [rank 0] -> Tremblay
45 $ ${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/smpi_replay ./out_in_ti.txt --log=smpi_kernel.thres:warning
46 > [rank 0] -> Tremblay
50 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing' to 'yes'
51 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing/filename' to 'smpi_simgrid.txt'
52 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing/smpi' to 'yes'
53 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing/smpi/format' to 'TI'
54 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing/smpi/computing' to 'yes'
55 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'maxmin/precision' to '1e-3'
56 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'surf/precision' to '1e-9'
57 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'network/model' to 'SMPI'
58 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'network/TCP_gamma' to '4194304'
59 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing/filename' to 'out_ti.txt'
60 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'smpi/cpu_threshold' to '-1'
61 > [0.000000] [surf_config/INFO] Switching workstation model to compound since you changed the network and/or cpu model(s)
62 > [Jupiter:1:(0) 0.016798] [smpi_replay/INFO] Simulation time 0.016798
65 $ sh -c "cat ./out_ti.txt_files/*"
88 $ sh -c "cat ./out_in_ti.txt_files/*"
110 $ rm -rf ./out_ti.txt_files
111 $ rm -rf ./out_in_ti.txt_files
117 p Same test, but only using one output file for all processes
118 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)
120 $ ${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:=.}/pingpong -q --log=smpi_kernel.thres:warning
121 > *** Ping-pong test (MPI_Send/MPI_Recv) ***
122 > == pivot=0 : pingpong [0] <--> [1]
123 > == pivot=1 : pingpong [1] <--> [2]
124 > == pivot=2 : pingpong [2] <--> [3]
125 > [0.000000] [surf_config/INFO] Switching workstation model to compound since you changed the network and/or cpu model(s)
126 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing' to 'yes'
127 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing/filename' to 'smpi_simgrid.txt'
128 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing/smpi' to 'yes'
129 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing/smpi/format' to 'TI'
130 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing/smpi/computing' to 'yes'
131 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'maxmin/precision' to '1e-3'
132 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'surf/precision' to '1e-9'
133 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'network/model' to 'SMPI'
134 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'network/TCP_gamma' to '4194304'
135 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing/filename' to 'out_in_ti.txt'
136 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing/smpi/format/ti_one_file' to 'yes'
137 > [0] About to send 1st message '99' to process [1]
138 > [0] Received reply message '100' from process [1]
139 > [1] About to send 1st message '100' to process [2]
140 > [1] About to send back message '100' to process [0]
141 > [1] Received 1st message '99' from process [0]
142 > [1] Received reply message '101' from process [2]
143 > [1] increment message's value to '100'
144 > [2] About to send 1st message '101' to process [3]
145 > [2] About to send back message '101' to process [1]
146 > [2] Received 1st message '100' from process [1]
147 > [2] Received reply message '102' from process [3]
148 > [2] increment message's value to '101'
149 > [3] About to send back message '102' to process [2]
150 > [3] Received 1st message '101' from process [2]
151 > [3] increment message's value to '102'
152 > [rank 0] -> Tremblay
153 > [rank 1] -> Jupiter
155 > [rank 3] -> Ginette
157 $ ${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/smpi_replay ./out_in_ti.txt --log=smpi_kernel.thres:warning
158 > [rank 0] -> Tremblay
159 > [rank 1] -> Jupiter
161 > [rank 3] -> Ginette
162 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing' to 'yes'
163 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing/filename' to 'smpi_simgrid.txt'
164 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing/smpi' to 'yes'
165 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing/smpi/format' to 'TI'
166 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing/smpi/computing' to 'yes'
167 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'maxmin/precision' to '1e-3'
168 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'surf/precision' to '1e-9'
169 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'network/model' to 'SMPI'
170 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'network/TCP_gamma' to '4194304'
171 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing/filename' to 'out_ti.txt'
172 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing/smpi/format/ti_one_file' to 'yes'
173 > [0.000000] [surf_config/INFO] Switching workstation model to compound since you changed the network and/or cpu model(s)
174 > [Jupiter:1:(0) 0.016798] [smpi_replay/INFO] Simulation time 0.016798
178 $ rm -rf ./out_ti.txt_files
179 $ rm -rf ./out_in_ti.txt_files