1 -- Copyright (c) 2011, 2014. The SimGrid Team.
2 -- All rights reserved.
4 -- This program is free software; you can redistribute it and/or modify it
5 -- under the terms of the license (GNU LGPL) which comes with this package.
9 simgrid.info("Hello From Sender")
10 local receiver = simgrid.host.get_by_name(arg[1])
11 local task_comp = arg[2]
12 local task_comm = arg[3]
13 local rec_alias = arg[4]
16 local m1 = mkmatrix(size, size)
17 local m2 = mkmatrix(size, size)
20 error("Argc should be 4")
22 simgrid.info("Argc=" .. (#arg) .. " (should be 4)")
25 local task = simgrid.task.new("matrix_task", task_comp, task_comm)
29 simgrid.info("Sending " .. simgrid.task.get_name(task) .. " to " .. simgrid.host.name(receiver))
30 simgrid.task.send(task, rec_alias)
31 simgrid.info("Got the Multiplication result ...Bye")