From: Arnaud Giersch Date: Tue, 2 Apr 2019 09:47:00 +0000 (+0200) Subject: Remove superfluous simcall. X-Git-Tag: v3.22.1~29 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/1ed359ee7868e2bfd8bc04b0f5e06f0039e0189e?ds=sidebyside Remove superfluous simcall. --- diff --git a/examples/deprecated/java/energy/pstate/energy-pstate.tesh b/examples/deprecated/java/energy/pstate/energy-pstate.tesh index 669135617c..38db7a6b92 100644 --- a/examples/deprecated/java/energy/pstate/energy-pstate.tesh +++ b/examples/deprecated/java/energy/pstate/energy-pstate.tesh @@ -7,8 +7,8 @@ $ ${javacmd:=java} -classpath ${classpath:=.} energy/pstate/Main ${srcdir:=.}/.. > [MyHost2:dvfs_test:(3) 0.000000] [java/INFO] Count of Processor states=3 > [MyHost2:dvfs_test:(3) 0.000000] [java/INFO] Current power peak=1.0E8 > [MyHost1:dvfs_test:(2) 1.000000] [java/INFO] Task1 simulation time: 1.0 -> [MyHost2:dvfs_test:(3) 1.000000] [java/INFO] Task1 simulation time: 1.0 > [MyHost1:dvfs_test:(2) 1.000000] [java/INFO] Changing power peak value to 2.0E7 (at index 2) +> [MyHost2:dvfs_test:(3) 1.000000] [java/INFO] Task1 simulation time: 1.0 > [MyHost2:dvfs_test:(3) 1.000000] [java/INFO] Changing power peak value to 2.0E7 (at index 2) > [MyHost1:dvfs_test:(2) 1.000000] [java/INFO] Current power peak=2.0E7 > [MyHost2:dvfs_test:(3) 1.000000] [java/INFO] Current power peak=2.0E7 diff --git a/examples/python/exec-dvfs/exec-dvfs.tesh b/examples/python/exec-dvfs/exec-dvfs.tesh index 0e6b08b25e..215897badf 100644 --- a/examples/python/exec-dvfs/exec-dvfs.tesh +++ b/examples/python/exec-dvfs/exec-dvfs.tesh @@ -8,8 +8,8 @@ $ ${pythoncmd:=python3} ${PYTHON_TOOL_OPTIONS:=} ${srcdir:=.}/exec-dvfs.py ${pla > [ 0.000000] (2:dvfs_test@MyHost2) Count of Processor states=3 > [ 0.000000] (2:dvfs_test@MyHost2) Current power peak=100000000.000000 > [ 1.000000] (1:dvfs_test@MyHost1) Task1 duration: 1.00 -> [ 1.000000] (2:dvfs_test@MyHost2) Task1 duration: 1.00 > [ 1.000000] (1:dvfs_test@MyHost1) Changing power peak value to 20000000.000000 (at index 2) +> [ 1.000000] (2:dvfs_test@MyHost2) Task1 duration: 1.00 > [ 1.000000] (2:dvfs_test@MyHost2) Changing power peak value to 20000000.000000 (at index 2) > [ 1.000000] (1:dvfs_test@MyHost1) Current power peak=20000000.000000 > [ 1.000000] (2:dvfs_test@MyHost2) Current power peak=20000000.000000 @@ -26,8 +26,8 @@ $ ${pythoncmd:=python3} ${PYTHON_TOOL_OPTIONS:=} ${srcdir:=.}/exec-dvfs.py ${pla > [ 0.000000] (2:dvfs_test@MyHost2) Count of Processor states=3 > [ 0.000000] (2:dvfs_test@MyHost2) Current power peak=100000000.000000 > [ 1.000000] (1:dvfs_test@MyHost1) Task1 duration: 1.00 -> [ 1.000000] (2:dvfs_test@MyHost2) Task1 duration: 1.00 > [ 1.000000] (1:dvfs_test@MyHost1) Changing power peak value to 20000000.000000 (at index 2) +> [ 1.000000] (2:dvfs_test@MyHost2) Task1 duration: 1.00 > [ 1.000000] (2:dvfs_test@MyHost2) Changing power peak value to 20000000.000000 (at index 2) > [ 1.000000] (1:dvfs_test@MyHost1) Current power peak=20000000.000000 > [ 1.000000] (2:dvfs_test@MyHost2) Current power peak=20000000.000000 diff --git a/examples/s4u/exec-dvfs/s4u-exec-dvfs.tesh b/examples/s4u/exec-dvfs/s4u-exec-dvfs.tesh index 1b2aecd073..3b8a702866 100644 --- a/examples/s4u/exec-dvfs/s4u-exec-dvfs.tesh +++ b/examples/s4u/exec-dvfs/s4u-exec-dvfs.tesh @@ -8,8 +8,8 @@ $ ${bindir:=.}/s4u-exec-dvfs$EXEEXT ${platfdir}/energy_platform.xml "--log=root. > [ 0.000000] (2:dvfs_test@MyHost2) Count of Processor states=3 > [ 0.000000] (2:dvfs_test@MyHost2) Current power peak=100000000.000000 > [ 1.000000] (1:dvfs_test@MyHost1) Task1 duration: 1.00 -> [ 1.000000] (2:dvfs_test@MyHost2) Task1 duration: 1.00 > [ 1.000000] (1:dvfs_test@MyHost1) Changing power peak value to 20000000.000000 (at index 2) +> [ 1.000000] (2:dvfs_test@MyHost2) Task1 duration: 1.00 > [ 1.000000] (2:dvfs_test@MyHost2) Changing power peak value to 20000000.000000 (at index 2) > [ 1.000000] (1:dvfs_test@MyHost1) Current power peak=20000000.000000 > [ 1.000000] (2:dvfs_test@MyHost2) Current power peak=20000000.000000 @@ -27,8 +27,8 @@ $ ${bindir:=.}/s4u-exec-dvfs$EXEEXT ${platfdir}/energy_cluster.xml "--log=root.f > [ 0.000000] (2:dvfs_test@MyHost2) Count of Processor states=3 > [ 0.000000] (2:dvfs_test@MyHost2) Current power peak=100000000.000000 > [ 1.000000] (1:dvfs_test@MyHost1) Task1 duration: 1.00 -> [ 1.000000] (2:dvfs_test@MyHost2) Task1 duration: 1.00 > [ 1.000000] (1:dvfs_test@MyHost1) Changing power peak value to 20000000.000000 (at index 2) +> [ 1.000000] (2:dvfs_test@MyHost2) Task1 duration: 1.00 > [ 1.000000] (2:dvfs_test@MyHost2) Changing power peak value to 20000000.000000 (at index 2) > [ 1.000000] (1:dvfs_test@MyHost1) Current power peak=20000000.000000 > [ 1.000000] (2:dvfs_test@MyHost2) Current power peak=20000000.000000 diff --git a/examples/smpi/energy/f77/energy.tesh b/examples/smpi/energy/f77/energy.tesh index a311eb6ce4..3b4e9e100b 100644 --- a/examples/smpi/energy/f77/energy.tesh +++ b/examples/smpi/energy/f77/energy.tesh @@ -2,12 +2,12 @@ p Test smpi bindings for dvfs functions (Fortran 77 example) $ ../../../smpi_script/bin/smpirun -np 2 -hostfile ${srcdir:=.}/hostfile -platform ${srcdir:=.}/../../platforms/energy_platform.xml --cfg=smpi/simulate-computation:no ${bindir:=.}/f77/sef --cfg=plugin:host_energy --log=smpi_kernel.thres:warning --log=xbt_cfg.thres:warning --cfg=smpi/wtime:0 > [ 0.00000000] [rank 0] 3 pstates available -> [ 0.00000000] [rank 1] 3 pstates available > [ 0.00000000] [rank 0] Power: 100000000.0000 -> [ 0.00000000] [rank 1] Power: 100000000.0000 > [ 0.00000000] [rank 0] Power: 50000000.0000 -> [ 0.00000000] [rank 1] Power: 50000000.0000 > [ 0.00000000] [rank 0] Power: 20000000.0000 +> [ 0.00000000] [rank 1] 3 pstates available +> [ 0.00000000] [rank 1] Power: 100000000.0000 +> [ 0.00000000] [rank 1] Power: 50000000.0000 > [ 0.00000000] [rank 1] Power: 20000000.0000 > [ 0.00000000] [rank 0] Current pstate: 0; Current power: 100000000.0000 > [ 0.00000000] [rank 1] Current pstate: 0; Current power: 100000000.0000 diff --git a/examples/smpi/energy/f90/energy.tesh b/examples/smpi/energy/f90/energy.tesh index 033b99d1b2..1b759d4785 100644 --- a/examples/smpi/energy/f90/energy.tesh +++ b/examples/smpi/energy/f90/energy.tesh @@ -2,12 +2,12 @@ p Test smpi bindings for dvfs functions (Fortran 90 example) $ ../../../smpi_script/bin/smpirun -np 2 -hostfile ${srcdir:=.}/hostfile -platform ${srcdir:=.}/../../platforms/energy_platform.xml --cfg=smpi/simulate-computation:no ${bindir:=.}/f90/sef90 --cfg=plugin:host_energy --log=smpi_kernel.thres:warning --log=xbt_cfg.thres:warning --cfg=smpi/wtime:0 > [ 0.00000000] [rank 0] 3 pstates available -> [ 0.00000000] [rank 1] 3 pstates available > [ 0.00000000] [rank 0] Power: 100000000.0000 -> [ 0.00000000] [rank 1] Power: 100000000.0000 > [ 0.00000000] [rank 0] Power: 50000000.0000 -> [ 0.00000000] [rank 1] Power: 50000000.0000 > [ 0.00000000] [rank 0] Power: 20000000.0000 +> [ 0.00000000] [rank 1] 3 pstates available +> [ 0.00000000] [rank 1] Power: 100000000.0000 +> [ 0.00000000] [rank 1] Power: 50000000.0000 > [ 0.00000000] [rank 1] Power: 20000000.0000 > [ 0.00000000] [rank 0] Current pstate: 0; Current power: 100000000.0000 > [ 0.00000000] [rank 1] Current pstate: 0; Current power: 100000000.0000 diff --git a/src/s4u/s4u_Host.cpp b/src/s4u/s4u_Host.cpp index e4e0b0ff06..b2731c416e 100644 --- a/src/s4u/s4u_Host.cpp +++ b/src/s4u/s4u_Host.cpp @@ -216,7 +216,7 @@ void Host::set_speed_profile(kernel::profile::Profile* p) /** @brief Get the peak processor speed (in flops/s), at the specified pstate */ double Host::get_pstate_speed(int pstate_index) const { - return simix::simcall([this, pstate_index] { return this->pimpl_cpu->get_pstate_peak_speed(pstate_index); }); + return this->pimpl_cpu->get_pstate_peak_speed(pstate_index); } /** @brief Get the peak computing speed in flops/s at the current pstate, NOT taking the external load into account. diff --git a/teshsuite/msg/energy-pstate/energy-pstate.tesh b/teshsuite/msg/energy-pstate/energy-pstate.tesh index 6dddbd6893..7d47505640 100644 --- a/teshsuite/msg/energy-pstate/energy-pstate.tesh +++ b/teshsuite/msg/energy-pstate/energy-pstate.tesh @@ -8,8 +8,8 @@ $ ${bindir:=.}/energy-pstate$EXEEXT ${platfdir}/energy_platform.xml "--log=root. > [ 0.000000] (2:dvfs_test@MyHost2) Count of Processor states=3 > [ 0.000000] (2:dvfs_test@MyHost2) Current power peak=100000000.000000 > [ 1.000000] (1:dvfs_test@MyHost1) Task1 simulation time: 1.000000e+00 -> [ 1.000000] (2:dvfs_test@MyHost2) Task1 simulation time: 1.000000e+00 > [ 1.000000] (1:dvfs_test@MyHost1) Changing power peak value to 20000000.000000 (at index 2) +> [ 1.000000] (2:dvfs_test@MyHost2) Task1 simulation time: 1.000000e+00 > [ 1.000000] (2:dvfs_test@MyHost2) Changing power peak value to 20000000.000000 (at index 2) > [ 1.000000] (1:dvfs_test@MyHost1) Current power peak=20000000.000000 > [ 1.000000] (2:dvfs_test@MyHost2) Current power peak=20000000.000000 @@ -29,8 +29,8 @@ $ ${bindir:=.}/energy-pstate$EXEEXT ${platfdir}/energy_cluster.xml "--log=root.f > [ 0.000000] (2:dvfs_test@MyHost2) Count of Processor states=3 > [ 0.000000] (2:dvfs_test@MyHost2) Current power peak=100000000.000000 > [ 1.000000] (1:dvfs_test@MyHost1) Task1 simulation time: 1.000000e+00 -> [ 1.000000] (2:dvfs_test@MyHost2) Task1 simulation time: 1.000000e+00 > [ 1.000000] (1:dvfs_test@MyHost1) Changing power peak value to 20000000.000000 (at index 2) +> [ 1.000000] (2:dvfs_test@MyHost2) Task1 simulation time: 1.000000e+00 > [ 1.000000] (2:dvfs_test@MyHost2) Changing power peak value to 20000000.000000 (at index 2) > [ 1.000000] (1:dvfs_test@MyHost1) Current power peak=20000000.000000 > [ 1.000000] (2:dvfs_test@MyHost2) Current power peak=20000000.000000