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)
7 $ ${bindir:=.}/../../../smpi_script/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 --log=xbt_cfg.thres:warning
13 > *** Ping-pong test (MPI_Send/MPI_Recv) ***
14 > == pivot=0 : pingpong [0] <--> [1]
15 > == pivot=1 : pingpong [1] <--> [2]
16 > == pivot=2 : pingpong [2] <--> [3]
17 > [0] About to send 1st message '99' to process [1]
18 > [0] Received reply message '100' from process [1]
19 > [1] About to send 1st message '100' to process [2]
20 > [1] About to send back message '100' to process [0]
21 > [1] Received 1st message '99' from process [0]
22 > [1] Received reply message '101' from process [2]
23 > [1] increment message's value to '100'
24 > [2] About to send 1st message '101' to process [3]
25 > [2] About to send back message '101' to process [1]
26 > [2] Received 1st message '100' from process [1]
27 > [2] Received reply message '102' from process [3]
28 > [2] increment message's value to '101'
29 > [3] About to send back message '102' to process [2]
30 > [3] Received 1st message '101' from process [2]
31 > [3] increment message's value to '102'
32 > [rank 0] -> Tremblay
37 $ ${bindir:=.}/../../../smpi_script/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 --log=xbt_cfg.thres:warning
38 > [rank 0] -> Tremblay
42 > [Jupiter:1:(2) 0.016798] [smpi_replay/INFO] Simulation time 0.016798
45 $ sh -c "cat ./out_ti.txt_files/*"
68 $ sh -c "cat ./out_in_ti.txt_files/*"
90 $ rm -rf ./out_ti.txt_files
91 $ rm -rf ./out_in_ti.txt_files
95 p Same test, but only using one output file for all processes
96 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)
98 $ ${bindir:=.}/../../../smpi_script/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 --log=xbt_cfg.thres:warning
104 > *** Ping-pong test (MPI_Send/MPI_Recv) ***
105 > == pivot=0 : pingpong [0] <--> [1]
106 > == pivot=1 : pingpong [1] <--> [2]
107 > == pivot=2 : pingpong [2] <--> [3]
108 > [0] About to send 1st message '99' to process [1]
109 > [0] Received reply message '100' from process [1]
110 > [1] About to send 1st message '100' to process [2]
111 > [1] About to send back message '100' to process [0]
112 > [1] Received 1st message '99' from process [0]
113 > [1] Received reply message '101' from process [2]
114 > [1] increment message's value to '100'
115 > [2] About to send 1st message '101' to process [3]
116 > [2] About to send back message '101' to process [1]
117 > [2] Received 1st message '100' from process [1]
118 > [2] Received reply message '102' from process [3]
119 > [2] increment message's value to '101'
120 > [3] About to send back message '102' to process [2]
121 > [3] Received 1st message '101' from process [2]
122 > [3] increment message's value to '102'
123 > [rank 0] -> Tremblay
124 > [rank 1] -> Jupiter
126 > [rank 3] -> Ginette
128 $ ${bindir:=.}/../../../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 ../hostfile -platform ../../../examples/platforms/small_platform.xml -np 4 ${bindir:=.}/../../../examples/smpi/replay/smpi_replay ./out_in_ti.txt --log=smpi_kernel.thres:warning --log=xbt_cfg.thres:warning
129 > [rank 0] -> Tremblay
130 > [rank 1] -> Jupiter
132 > [rank 3] -> Ginette
133 > [Jupiter:1:(2) 0.016798] [smpi_replay/INFO] Simulation time 0.016798
135 $ rm -rf ./out_ti.txt_files
136 $ rm -rf ./out_in_ti.txt_files