1 p Test output of time independent tracing
2 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)
3 ! setenv LD_LIBRARY_PATH=../../lib
5 $ ../../smpi_script/bin/smpirun -trace-ti --cfg=tracing/filename:out_in_ti.txt -map -hostfile ${srcdir:=.}/hostfile -platform ${srcdir:=.}/../../examples/msg/small_platform.xml -np 4 ./pingpong -q
6 > *** Ping-pong test (MPI_Send/MPI_Recv) ***
7 > == pivot=0 : pingpong [0] <--> [1]
8 > == pivot=1 : pingpong [1] <--> [2]
9 > == pivot=2 : pingpong [2] <--> [3]
10 > [0.000000] [surf_config/INFO] Switching workstation model to compound since you changed the network and/or cpu model(s)
11 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing' to 'yes'
12 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing/filename' to 'smpi_simgrid.txt'
13 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing/smpi' to 'yes'
14 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing/smpi/format' to 'TI'
15 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing/smpi/computing' to 'yes'
16 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'maxmin/precision' to '1e-9'
17 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'network/model' to 'SMPI'
18 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'network/TCP_gamma' to '4194304'
19 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing/filename' to 'out_in_ti.txt'
20 > [0] About to send 1st message '99' to process [1]
21 > [0] Received reply message '100' from process [1]
22 > [1] About to send 1st message '100' to process [2]
23 > [1] About to send back message '100' to process [0]
24 > [1] Received 1st message '99' from process [0]
25 > [1] Received reply message '101' from process [2]
26 > [1] increment message's value to '100'
27 > [2] About to send 1st message '101' to process [3]
28 > [2] About to send back message '101' to process [1]
29 > [2] Received 1st message '100' from process [1]
30 > [2] Received reply message '102' from process [3]
31 > [2] increment message's value to '101'
32 > [3] About to send back message '102' to process [2]
33 > [3] Received 1st message '101' from process [2]
34 > [3] increment message's value to '102'
35 > [rank 0] -> Tremblay
41 $ mkfile replay_in.txt
43 $ ../../smpi_script/bin/smpirun -ext smpi_replay --log=replay.:critical -trace-ti --cfg=tracing/filename:out_ti.txt -map -hostfile ${srcdir:=.}/hostfile -platform ${srcdir:=.}/../../examples/msg/small_platform.xml -np 4 ../../examples/smpi/smpi_replay ./replay_in.txt
44 > [rank 0] -> Tremblay
48 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing' to 'yes'
49 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing/filename' to 'smpi_simgrid.txt'
50 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing/smpi' to 'yes'
51 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing/smpi/format' to 'TI'
52 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing/smpi/computing' to 'yes'
53 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'maxmin/precision' to '1e-9'
54 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'network/model' to 'SMPI'
55 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'network/TCP_gamma' to '4194304'
56 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing/filename' to 'out_ti.txt'
57 > [0.000000] [surf_config/INFO] Switching workstation model to compound since you changed the network and/or cpu model(s)
58 > [Jupiter:1:(0) 0.016798] [smpi_replay/INFO] Simulation time 0.0167976
60 $ sort out_in_ti.txt -o out_in_ti_sorted.txt
61 $ sort out_ti.txt -o out_ti_sorted.txt
67 $ rm out_ti_sorted.txt
68 $ rm out_in_ti_sorted.txt