File: energy-exec-ptask.tesh

package info (click to toggle)
simgrid 4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 38,980 kB
  • sloc: cpp: 123,583; ansic: 66,779; python: 8,358; java: 6,406; fortran: 6,079; f90: 5,123; xml: 4,587; sh: 2,337; perl: 1,436; makefile: 105; lisp: 49; javascript: 7; sed: 6
file content (15 lines) | stat: -rw-r--r-- 1,286 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/env tesh

$ ${bindir:=.}/c-energy-exec-ptask ${platfdir:=.}/energy_platform.xml --energy "--log=root.fmt:[%10.6r]%e(%i:%a@%h)%e%m%n"
> [  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