Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
icomms are async (and there is no peer!!)
[simgrid.git] / examples / msg / async-wait / async-wait.tesh
1 #! ./tesh
2
3 p Test1 MSG_comm_test() with Sleep_sender > Sleep_receiver
4
5 ! output sort 19
6 $ $SG_TEST_EXENV ${bindir:=.}/async-wait ${srcdir:=.}/small_platform_fatpipe.xml ${srcdir:=.}/../msg/async-wait/async-wait_d.xml "--log=root.fmt:[%10.6r]%e(%i:%P@%h)%e%m%n"
7 > [  0.000000] (1:sender@Tremblay) sleep_start_time : 5.000000 , sleep_test_time : 0.100000
8 > [  0.000000] (2:receiver@Ruby) sleep_start_time : 1.000000 , sleep_test_time : 0.100000
9 > [  1.000000] (2:receiver@Ruby) Wait to receive a task
10 > [  5.000000] (1:sender@Tremblay) Send to receiver-0 Task_0
11 > [  5.100000] (1:sender@Tremblay) Send to receiver-0 Task_1
12 > [  5.100000] (2:receiver@Ruby) Received "Task_0"
13 > [  5.100000] (2:receiver@Ruby) Processing "Task_0"
14 > [  5.609710] (2:receiver@Ruby) "Task_0" done
15 > [  5.609710] (2:receiver@Ruby) Wait to receive a task
16 > [  5.700000] (1:sender@Tremblay) Send to receiver-0 Task_2
17 > [  5.709710] (2:receiver@Ruby) Received "Task_1"
18 > [  5.709710] (2:receiver@Ruby) Processing "Task_1"
19 > [  6.219420] (2:receiver@Ruby) "Task_1" done
20 > [  6.219420] (2:receiver@Ruby) Wait to receive a task
21 > [  6.300000] (1:sender@Tremblay) Send to receiver-0 finalize
22 > [  6.319420] (2:receiver@Ruby) Received "Task_2"
23 > [  6.319420] (2:receiver@Ruby) Processing "Task_2"
24 > [  6.829130] (2:receiver@Ruby) "Task_2" done
25 > [  6.829130] (2:receiver@Ruby) Wait to receive a task
26 > [  6.900000] (1:sender@Tremblay) Goodbye now!
27 > [  6.929130] (0:maestro@) Simulation time 6.92913
28 > [  6.929130] (2:receiver@Ruby) Received "finalize"
29 > [  6.929130] (2:receiver@Ruby) I'm done. See you!
30
31 p Test2 MSG_comm_test() with Sleep_sender < Sleep_receiver
32
33 ! output sort 19
34 $ $SG_TEST_EXENV ${bindir:=.}/async-wait ${srcdir:=.}/small_platform_fatpipe.xml ${srcdir:=.}/../msg/async-wait/async-wait2_d.xml "--log=root.fmt:[%10.6r]%e(%i:%P@%h)%e%m%n"
35 > [  0.000000] (1:sender@Tremblay) sleep_start_time : 1.000000 , sleep_test_time : 0.100000
36 > [  0.000000] (2:receiver@Ruby) sleep_start_time : 5.000000 , sleep_test_time : 0.100000
37 > [  1.000000] (1:sender@Tremblay) Send to receiver-0 Task_0
38 > [  5.000000] (2:receiver@Ruby) Wait to receive a task
39 > [  5.100000] (1:sender@Tremblay) Send to receiver-0 Task_1
40 > [  5.100000] (2:receiver@Ruby) Received "Task_0"
41 > [  5.100000] (2:receiver@Ruby) Processing "Task_0"
42 > [  5.609710] (2:receiver@Ruby) "Task_0" done
43 > [  5.609710] (2:receiver@Ruby) Wait to receive a task
44 > [  5.700000] (1:sender@Tremblay) Send to receiver-0 Task_2
45 > [  5.709710] (2:receiver@Ruby) Received "Task_1"
46 > [  5.709710] (2:receiver@Ruby) Processing "Task_1"
47 > [  6.219420] (2:receiver@Ruby) "Task_1" done
48 > [  6.219420] (2:receiver@Ruby) Wait to receive a task
49 > [  6.300000] (1:sender@Tremblay) Send to receiver-0 finalize
50 > [  6.319420] (2:receiver@Ruby) Received "Task_2"
51 > [  6.319420] (2:receiver@Ruby) Processing "Task_2"
52 > [  6.829130] (2:receiver@Ruby) "Task_2" done
53 > [  6.829130] (2:receiver@Ruby) Wait to receive a task
54 > [  6.900000] (1:sender@Tremblay) Goodbye now!
55 > [  6.929130] (0:maestro@) Simulation time 6.92913
56 > [  6.929130] (2:receiver@Ruby) Received "finalize"
57 > [  6.929130] (2:receiver@Ruby) I'm done. See you!
58
59 p Test1 MSG_comm_wait() with Sleep_sender > Sleep_receiver
60
61 ! output sort 19
62 $ $SG_TEST_EXENV ${bindir:=.}/async-wait ${srcdir:=.}/small_platform_fatpipe.xml ${srcdir:=.}/../msg/async-wait/async-wait3_d.xml "--log=root.fmt:[%10.6r]%e(%i:%P@%h)%e%m%n"
63 > [  0.000000] (1:sender@Tremblay) sleep_start_time : 5.000000 , sleep_test_time : 0.000000
64 > [  0.000000] (2:receiver@Ruby) sleep_start_time : 1.000000 , sleep_test_time : 0.000000
65 > [  1.000000] (2:receiver@Ruby) Wait to receive a task
66 > [  5.000000] (1:sender@Tremblay) Send to receiver-0 Task_0
67 > [  5.004022] (1:sender@Tremblay) Send to receiver-0 Task_1
68 > [  5.004022] (2:receiver@Ruby) Received "Task_0"
69 > [  5.004022] (2:receiver@Ruby) Processing "Task_0"
70 > [  5.513732] (2:receiver@Ruby) "Task_0" done
71 > [  5.513732] (2:receiver@Ruby) Wait to receive a task
72 > [  5.517753] (1:sender@Tremblay) Send to receiver-0 Task_2
73 > [  5.517753] (2:receiver@Ruby) Received "Task_1"
74 > [  5.517753] (2:receiver@Ruby) Processing "Task_1"
75 > [  6.027463] (2:receiver@Ruby) "Task_1" done
76 > [  6.027463] (2:receiver@Ruby) Wait to receive a task
77 > [  6.031485] (1:sender@Tremblay) Send to receiver-0 finalize
78 > [  6.031485] (2:receiver@Ruby) Received "Task_2"
79 > [  6.031485] (2:receiver@Ruby) Processing "Task_2"
80 > [  6.541195] (2:receiver@Ruby) "Task_2" done
81 > [  6.541195] (2:receiver@Ruby) Wait to receive a task
82 > [  6.543146] (0:maestro@) Simulation time 6.54315
83 > [  6.543146] (1:sender@Tremblay) Goodbye now!
84 > [  6.543146] (2:receiver@Ruby) Received "finalize"
85 > [  6.543146] (2:receiver@Ruby) I'm done. See you!
86
87
88 p Test2 MSG_comm_wait() with Sleep_sender < Sleep_receiver
89
90 ! output sort 19
91 $ $SG_TEST_EXENV ${bindir:=.}/async-wait ${srcdir:=.}/small_platform_fatpipe.xml ${srcdir:=.}/../msg/async-wait/async-wait4_d.xml "--log=root.fmt:[%10.6r]%e(%i:%P@%h)%e%m%n"
92 > [  0.000000] (1:sender@Tremblay) sleep_start_time : 1.000000 , sleep_test_time : 0.000000
93 > [  0.000000] (2:receiver@Ruby) sleep_start_time : 5.000000 , sleep_test_time : 0.000000
94 > [  1.000000] (1:sender@Tremblay) Send to receiver-0 Task_0
95 > [  5.000000] (2:receiver@Ruby) Wait to receive a task
96 > [  5.004022] (1:sender@Tremblay) Send to receiver-0 Task_1
97 > [  5.004022] (2:receiver@Ruby) Received "Task_0"
98 > [  5.004022] (2:receiver@Ruby) Processing "Task_0"
99 > [  5.513732] (2:receiver@Ruby) "Task_0" done
100 > [  5.513732] (2:receiver@Ruby) Wait to receive a task
101 > [  5.517753] (1:sender@Tremblay) Send to receiver-0 Task_2
102 > [  5.517753] (2:receiver@Ruby) Received "Task_1"
103 > [  5.517753] (2:receiver@Ruby) Processing "Task_1"
104 > [  6.027463] (2:receiver@Ruby) "Task_1" done
105 > [  6.027463] (2:receiver@Ruby) Wait to receive a task
106 > [  6.031485] (1:sender@Tremblay) Send to receiver-0 finalize
107 > [  6.031485] (2:receiver@Ruby) Received "Task_2"
108 > [  6.031485] (2:receiver@Ruby) Processing "Task_2"
109 > [  6.541195] (2:receiver@Ruby) "Task_2" done
110 > [  6.541195] (2:receiver@Ruby) Wait to receive a task
111 > [  6.543146] (0:maestro@) Simulation time 6.54315
112 > [  6.543146] (1:sender@Tremblay) Goodbye now!
113 > [  6.543146] (2:receiver@Ruby) Received "finalize"
114 > [  6.543146] (2:receiver@Ruby) I'm done. See you!