Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
rename the property used by the energy plugin for clarity
authorMartin Quinson <martin.quinson@loria.fr>
Mon, 26 Jan 2015 20:57:09 +0000 (21:57 +0100)
committerMartin Quinson <martin.quinson@loria.fr>
Mon, 26 Jan 2015 20:57:09 +0000 (21:57 +0100)
examples/platforms/energy_platform.xml
src/surf/plugins/energy.cpp

index cb6d332..837545b 100644 (file)
@@ -7,10 +7,10 @@
   <host id="MyHost1" power="100.0Mf,50.0Mf,20.0Mf" pstate="0" >
         <!--  List of min_power:max_power pairs (in Watts) corresponding to the power consumed when the processor is idle and when it is fully loaded -->
         <!--  The list must contain one power pair for each previously defined pstate-->
   <host id="MyHost1" power="100.0Mf,50.0Mf,20.0Mf" pstate="0" >
         <!--  List of min_power:max_power pairs (in Watts) corresponding to the power consumed when the processor is idle and when it is fully loaded -->
         <!--  The list must contain one power pair for each previously defined pstate-->
-        <prop id="power_per_state" value="95.0:200.0, 93.0:170.0, 90.0:150.0" />
+        <prop id="watt_per_state" value="95.0:200.0, 93.0:170.0, 90.0:150.0" />
   </host>
   <host id="MyHost2" power="100.0Mf" >
   </host>
   <host id="MyHost2" power="100.0Mf" >
-        <prop id="power_per_state" value="95.0:200.0" />
+        <prop id="watt_per_state" value="95.0:200.0" />
   </host>
 
   <link id="link1" bandwidth="100kBps" latency="0"/>
   </host>
 
   <link id="link1" bandwidth="100kBps" latency="0"/>
index 4fd94ac..6c55cf4 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2010, 2012-2014. The SimGrid Team.
+/* Copyright (c) 2010, 2012-2015. The SimGrid Team.
  * All rights reserved.                                                     */
 
 /* This program is free software; you can redistribute it and/or modify it
  * All rights reserved.                                                     */
 
 /* This program is free software; you can redistribute it and/or modify it
@@ -10,7 +10,7 @@
 /** @addtogroup SURF_plugin_energy
  *
  *
 /** @addtogroup SURF_plugin_energy
  *
  *
- *  BlaBla energy
+ *  This is the energy plugin, enabling to account not only for computation time, but also for the dissipated energy in the simulated platform.
  */
 
 XBT_LOG_EXTERNAL_CATEGORY(surf_kernel);
  */
 
 XBT_LOG_EXTERNAL_CATEGORY(surf_kernel);
@@ -144,7 +144,7 @@ xbt_dynar_t CpuEnergy::getWattsRangeList()
        if (cpu->getProperties() == NULL)
                return NULL;
 
        if (cpu->getProperties() == NULL)
                return NULL;
 
-       char* all_power_values_str = (char*)xbt_dict_get_or_null(cpu->getProperties(), "power_per_state");
+       char* all_power_values_str = (char*)xbt_dict_get_or_null(cpu->getProperties(), "watt_per_state");
 
        if (all_power_values_str == NULL)
                return NULL;
 
        if (all_power_values_str == NULL)
                return NULL;