Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Run test in binary dir.
[simgrid.git] / teshsuite / smpi / pt2pt-pingpong / TI_output.tesh
1 $ rm -rf ./out_ti.txt_files
2 $ rm -rf ./out_in_ti.txt_files
3
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 ! output sort
7 $ ${bindir:=.}/../../../smpi_script/bin/smpirun -trace-ti --cfg=tracing/filename:out_in_ti.txt --cfg=smpi/simulate-computation:no -map -hostfile ${srcdir:=.}/../hostfile -platform ${srcdir:=.}/../../../examples/platforms/small_platform.xml -np 4 ${bindir:=.}/pt2pt-pingpong -q --log=smpi_kernel.thres:warning --log=xbt_cfg.thres:warning
8 >
9 >
10 >
11 >
12 >
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
33 > [rank 1] -> Jupiter
34 > [rank 2] -> Fafard
35 > [rank 3] -> Ginette
36
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 ${srcdir:=.}/../hostfile -platform ${srcdir:=.}/../../../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
39 > [rank 1] -> Jupiter
40 > [rank 2] -> Fafard
41 > [rank 3] -> Ginette
42 > [Jupiter:1:(2) 0.016798] [smpi_replay/INFO] Simulation time 0.016798
43
44 ! output sort
45 $ sh -c "cat ./out_ti.txt_files/*"
46 > 0 init
47 > 0 send 1 1 1
48 > 0 recv 1 1 1
49 > 0 finalize
50 > 1 init
51 > 1 recv 0 1 1
52 > 1 send 0 1 1
53 > 1 send 2 1 1
54 > 1 recv 2 1 1
55 > 1 finalize
56 > 2 init
57 > 2 recv 1 1 1
58 > 2 send 1 1 1
59 > 2 send 3 1 1
60 > 2 recv 3 1 1
61 > 2 finalize
62 > 3 init
63 > 3 recv 2 1 1
64 > 3 send 2 1 1
65 > 3 finalize
66
67 ! output sort
68 $ sh -c "cat ./out_in_ti.txt_files/*"
69 > 0 init
70 > 0 send 1 1 1
71 > 0 recv 1 1 1
72 > 0 finalize
73 > 1 init
74 > 1 recv 0 1 1
75 > 1 send 0 1 1
76 > 1 send 2 1 1
77 > 1 recv 2 1 1
78 > 1 finalize
79 > 2 init
80 > 2 recv 1 1 1
81 > 2 send 1 1 1
82 > 2 send 3 1 1
83 > 2 recv 3 1 1
84 > 2 finalize
85 > 3 init
86 > 3 recv 2 1 1
87 > 3 send 2 1 1
88 > 3 finalize
89
90 $ rm -rf ./out_ti.txt_files
91 $ rm -rf ./out_in_ti.txt_files
92 $ rm out_ti.txt
93 $ rm out_in_ti.txt
94
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)
97 ! output sort
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 ${srcdir:=.}/../hostfile -platform ${srcdir:=.}/../../../examples/platforms/small_platform.xml -np 4 ${bindir:=.}/pt2pt-pingpong -q --log=smpi_kernel.thres:warning --log=xbt_cfg.thres:warning
99 >
100 >
101 >
102 >
103 >
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
125 > [rank 2] -> Fafard
126 > [rank 3] -> Ginette
127
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 ${srcdir:=.}/../hostfile -platform ${srcdir:=.}/../../../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
131 > [rank 2] -> Fafard
132 > [rank 3] -> Ginette
133 > [Jupiter:1:(2) 0.016798] [smpi_replay/INFO] Simulation time 0.016798
134
135 $ rm -rf ./out_ti.txt_files
136 $ rm -rf ./out_in_ti.txt_files
137 $ rm out_ti.txt
138 $ rm out_in_ti.txt