Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branch 'master' into rework-energy-plugin-2.0
authorMartin Quinson <624847+mquinson@users.noreply.github.com>
Wed, 9 Oct 2019 15:42:18 +0000 (17:42 +0200)
committerGitHub <noreply@github.com>
Wed, 9 Oct 2019 15:42:18 +0000 (17:42 +0200)
1  2 
src/plugins/host_energy.cpp

@@@ -339,11 -340,8 +339,12 @@@ void HostEnergy::init_watts_range_list(
      std::vector<std::string> all_power_values;
      boost::split(all_power_values, old_prop, boost::is_any_of(","));
  
-     std::string msg = std::string("DEPRECATION WARNING: Property 'watt_per_state' will not work after v3.28.\n");
 +    xbt_assert(all_power_values.size() == (unsigned)host_->get_pstate_count(),
 +               "Invalid XML file. Found %lu energetic profiles for %d pstates",
 +               all_power_values.size(), host_->get_pstate_count());
 +
+     // XBT_ATTRIB_DEPRECATED_v327: puting this macro name here so that we find it during the deprecation cleanups of v3.28
+     std::string msg = std::string("DEPRECATION WARNING: Property 'watt_per_state' will only work until v3.28.\n");
      msg += std::string("The old syntax 'Idle:OneCore:AllCores' must be converted into 'Idle:Epsilon:AllCores' to "
                         "properly model the consumption of non-whole tasks on mono-core hosts. Here are the values to "
                         "use for host '") +