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:=.}/../../../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
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] About to send 1st message '99' to process [1]
19 > [0] Received reply message '100' from process [1]
20 > [1] About to send 1st message '100' to process [2]
21 > [1] About to send back message '100' to process [0]
22 > [1] Received 1st message '99' from process [0]
23 > [1] Received reply message '101' from process [2]
24 > [1] increment message's value to '100'
25 > [2] About to send 1st message '101' to process [3]
26 > [2] About to send back message '101' to process [1]
27 > [2] Received 1st message '100' from process [1]
28 > [2] Received reply message '102' from process [3]
29 > [2] increment message's value to '101'
30 > [3] About to send back message '102' to process [2]
31 > [3] Received 1st message '101' from process [2]
32 > [3] increment message's value to '102'
33 > [rank 0] -> Tremblay
38 $ ${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
39 > [rank 0] -> Tremblay
43 > [Jupiter:1:(2) 0.016798] [smpi_replay/INFO] Simulation time 0.016798
46 $ sh -c "cat ./out_ti.txt_files/*"
69 $ sh -c "cat ./out_in_ti.txt_files/*"
91 $ rm -rf ./out_ti.txt_files
92 $ rm -rf ./out_in_ti.txt_files
96 p Same test, but only using one output file for all processes
97 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)
99 $ ${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
105 > *** Ping-pong test (MPI_Send/MPI_Recv) ***
106 > == pivot=0 : pingpong [0] <--> [1]
107 > == pivot=1 : pingpong [1] <--> [2]
108 > == pivot=2 : pingpong [2] <--> [3]
109 > [0] About to send 1st message '99' to process [1]
110 > [0] Received reply message '100' from process [1]
111 > [1] About to send 1st message '100' to process [2]
112 > [1] About to send back message '100' to process [0]
113 > [1] Received 1st message '99' from process [0]
114 > [1] Received reply message '101' from process [2]
115 > [1] increment message's value to '100'
116 > [2] About to send 1st message '101' to process [3]
117 > [2] About to send back message '101' to process [1]
118 > [2] Received 1st message '100' from process [1]
119 > [2] Received reply message '102' from process [3]
120 > [2] increment message's value to '101'
121 > [3] About to send back message '102' to process [2]
122 > [3] Received 1st message '101' from process [2]
123 > [3] increment message's value to '102'
124 > [rank 0] -> Tremblay
125 > [rank 1] -> Jupiter
127 > [rank 3] -> Ginette
129 $ ${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
130 > [rank 0] -> Tremblay
131 > [rank 1] -> Jupiter
133 > [rank 3] -> Ginette
134 > [Jupiter:1:(2) 0.016798] [smpi_replay/INFO] Simulation time 0.016798
136 $ rm -rf ./out_ti.txt_files
137 $ rm -rf ./out_in_ti.txt_files