Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Reduce the size of partial shared malloc tests.
[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 ! setenv LD_LIBRARY_PATH=../../lib
7 ! output sort
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
9 >
10 >
11 >
12 >
13 >
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
34 > [rank 1] -> Jupiter
35 > [rank 2] -> Fafard
36 > [rank 3] -> Ginette
37
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
40 > [rank 1] -> Jupiter
41 > [rank 2] -> Fafard
42 > [rank 3] -> Ginette
43 > [Jupiter:1:(2) 0.016798] [smpi_replay/INFO] Simulation time 0.016798
44
45 ! output sort
46 $ sh -c "cat ./out_ti.txt_files/*"
47 > 0 init
48 > 0 send 1 1 1
49 > 0 recv 1 1 1
50 > 0 finalize
51 > 1 init
52 > 1 recv 0 1 1
53 > 1 send 0 1 1
54 > 1 send 2 1 1
55 > 1 recv 2 1 1
56 > 1 finalize
57 > 2 init
58 > 2 recv 1 1 1
59 > 2 send 1 1 1
60 > 2 send 3 1 1
61 > 2 recv 3 1 1
62 > 2 finalize
63 > 3 init
64 > 3 recv 2 1 1
65 > 3 send 2 1 1
66 > 3 finalize
67
68 ! output sort
69 $ sh -c "cat ./out_in_ti.txt_files/*"
70 > 0 init
71 > 0 send 1 1 1
72 > 0 recv 1 1 1
73 > 0 finalize
74 > 1 init
75 > 1 recv 0 1 1
76 > 1 send 0 1 1
77 > 1 send 2 1 1
78 > 1 recv 2 1 1
79 > 1 finalize
80 > 2 init
81 > 2 recv 1 1 1
82 > 2 send 1 1 1
83 > 2 send 3 1 1
84 > 2 recv 3 1 1
85 > 2 finalize
86 > 3 init
87 > 3 recv 2 1 1
88 > 3 send 2 1 1
89 > 3 finalize
90
91 $ rm -rf ./out_ti.txt_files
92 $ rm -rf ./out_in_ti.txt_files
93 $ rm out_ti.txt
94 $ rm out_in_ti.txt
95
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)
98 ! output sort
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
100 >
101 >
102 >
103 >
104 >
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
126 > [rank 2] -> Fafard
127 > [rank 3] -> Ginette
128
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
132 > [rank 2] -> Fafard
133 > [rank 3] -> Ginette
134 > [Jupiter:1:(2) 0.016798] [smpi_replay/INFO] Simulation time 0.016798
135
136 $ rm -rf ./out_ti.txt_files
137 $ rm -rf ./out_in_ti.txt_files
138 $ rm out_ti.txt
139 $ rm out_in_ti.txt