X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/785b584576154c7ed738502ce20874313f5bf2a3..d302716a88c3b53523cf376b36de4956e5976918:/examples/s4u/exec-ptask/s4u-exec-ptask.tesh?ds=inline diff --git a/examples/s4u/exec-ptask/s4u-exec-ptask.tesh b/examples/s4u/exec-ptask/s4u-exec-ptask.tesh new file mode 100644 index 0000000000..2c9aa6f299 --- /dev/null +++ b/examples/s4u/exec-ptask/s4u-exec-ptask.tesh @@ -0,0 +1,16 @@ +#! ./tesh + +$ ${bindir:=.}/s4u-energy-ptask$EXEEXT ${platfdir}/energy_platform.xml --energy --cfg=host/model:ptask_L07 "--log=root.fmt:[%10.6r]%e(%i:%P@%h)%e%m%n" +> [ 0.000000] (0:maestro@) Configuration change: Set 'host/model' to 'ptask_L07' +> [ 0.000000] (0:maestro@) Switching to the L07 model to handle parallel tasks. +> [ 0.000000] (1:test@MyHost1) First, build a classical parallel task, with 1 Gflop to execute on each node, and 10MB to exchange between each pair +> [300.000000] (1:test@MyHost1) We can do the same with a timeout of one second enabled. +> [301.000000] (1:test@MyHost1) Then, build a parallel task involving only computations and no communication (1 Gflop per node) +> [311.000000] (1:test@MyHost1) Then, build a parallel task with no computation nor communication (synchro only) +> [311.000000] (1:test@MyHost1) Finally, trick the ptask to do a 'remote execution', on host MyHost2 +> [321.000000] (1:test@MyHost1) Goodbye now! +> [321.000000] (0:maestro@) Total energy consumption: 157960.888889 Joules (used hosts: 157960.888889 Joules; unused/idle hosts: 0.000000) +> [321.000000] (0:maestro@) Simulation done. +> [321.000000] (0:maestro@) Energy consumption of host MyHost1: 30560.888889 Joules +> [321.000000] (0:maestro@) Energy consumption of host MyHost2: 64200.000000 Joules +> [321.000000] (0:maestro@) Energy consumption of host MyHost3: 63200.000000 Joules