Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
rearrange lua example in separate simulation component files
[simgrid.git] / examples / lua / mult_matrix.tesh
index 8f10b12..c2891fa 100644 (file)
@@ -2,15 +2,13 @@
 
 # Later modify the commande and specify the platform and deployment path
 
-# The setenv is mandatory until the make install only
-! setenv LUA_CPATH=../../lib/lua/5.1/?.so;
-
-$ lua mult_matrix.lua
-> [Inmos:Sender:(1) 0.000000] [lua/INFO] Hello From Sender
-> [Inmos:Sender:(1) 0.000000] [lua/INFO] Argc=4 (should be 4)
-> [Inmos:Sender:(1) 0.000000] [lua/INFO] Sending matrix_task to Bellevue
-> [Bellevue:Receiver:(2) 0.000000] [lua/INFO] Hello From Receiver
-> [Bellevue:Receiver:(2) 0.000000] [lua/INFO] Receiving Task from Inmos
-> [Bellevue:Receiver:(2) 0.030276] [lua/INFO] Calcul is done ... Bye
-> [Inmos:Sender:(1) 0.030276] [lua/INFO] Got the Multiplication result ...Bye
-> [0.030276] [lua/INFO] Simulation's over.See you.
+! output sort
+$ lua mult_matrix.lua "--log=root.fmt:[%10.6r]%e(%i:%P@%h)%e%m%n"
+> [  0.000000] (1:Sender@Inmos) Hello From Sender
+> [  0.000000] (1:Sender@Inmos) Argc=4 (should be 4)
+> [  0.000000] (1:Sender@Inmos) Sending matrix_task to Bellevue
+> [  0.000000] (2:Receiver@Bellevue) Hello From Receiver
+> [  0.000000] (2:Receiver@Bellevue) Receiving Task from Inmos
+> [  0.030276] (0:@) Simulation's over.See you.
+> [  0.030276] (1:Sender@Inmos) Got the Multiplication result ...Bye
+> [  0.030276] (2:Receiver@Bellevue) Calcul is done ... Bye