Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Energy is now a plugin
[simgrid.git] / examples / smpi / energy / energy.tesh
1 p Test smpi bindings for dvfs functions (C example)
2 $ ../../../smpi_script/bin/smpirun -np 2 -hostfile ${srcdir:=.}/hostfile  -platform ${srcdir:=.}/platform.xml --cfg=smpi/cpu_threshold:-1 ${bindir:=.}/se --cfg=plugin:Energy
3 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'maxmin/precision' to '1e-9'
4 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'network/model' to 'SMPI'
5 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'network/TCP_gamma' to '4194304'
6 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'smpi/cpu_threshold' to '-1'
7 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'plugin' to 'Energy'
8 > [0.000000] [surf_config/INFO] Switching workstation model to compound since you changed the network and/or cpu model(s)
9 > [80.000000] [surf_energy/INFO] Total energy (Joules) of host MyHost1: 12900.000000
10 > [80.000000] [surf_energy/INFO] Total energy (Joules) of host MyHost2: 2000.000000
11 > [0.000000] [rank 1] Pstates: 1; Powers: 100000000
12 > [0.000000] [rank 0] Pstates: 3; Powers: 100000000, 50000000, 20000000
13 > [0.000000] [rank 1] Current pstate: 0; Current power: 100000000
14 > [0.000000] [rank 0] Current pstate: 0; Current power: 100000000
15 > [10.000000] [rank 1] Energy consumed: 2000 Joules.
16 > [10.000000] [rank 0] Energy consumed: 2000 Joules.
17 > [10.000000] [rank 0] Current pstate: 1; Current power: 50000000
18 > [30.000000] [rank 0] Energy consumed: 5400 Joules.
19 > [30.000000] [rank 0] Current pstate: 2; Current power: 20000000
20 > [80.000000] [rank 0] Energy consumed: 12900 Joules.