Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[DVFS] Make the Dvfs plugin available
authorChristian Heinrich <franz-christian.heinrich@inria.fr>
Thu, 5 Jul 2018 06:55:53 +0000 (08:55 +0200)
committerChristian Heinrich <franz-christian.heinrich@inria.fr>
Thu, 5 Jul 2018 06:57:53 +0000 (08:57 +0200)
This commit allows users to actually enable the plugin
via smpirun.

src/surf/surf_interface.cpp

index a569bcd..db2ad1f 100644 (file)
@@ -36,12 +36,14 @@ std::vector<simgrid::s4u::Host*> host_that_restart;
 std::set<std::string> watched_hosts;
 extern std::map<std::string, simgrid::surf::StorageType*> storage_types;
 
 std::set<std::string> watched_hosts;
 extern std::map<std::string, simgrid::surf::StorageType*> storage_types;
 
+#include <simgrid/plugins/dvfs.h>   // FIXME: this plug-in should not be linked to the core
 #include <simgrid/plugins/energy.h> // FIXME: this plug-in should not be linked to the core
 #include <simgrid/plugins/load.h>   // FIXME: this plug-in should not be linked to the core
 
 s_surf_model_description_t surf_plugin_description[] = {
     {"host_energy", "Cpu energy consumption.", &sg_host_energy_plugin_init},
     {"link_energy", "Link energy consumption.", &sg_link_energy_plugin_init},
 #include <simgrid/plugins/energy.h> // FIXME: this plug-in should not be linked to the core
 #include <simgrid/plugins/load.h>   // FIXME: this plug-in should not be linked to the core
 
 s_surf_model_description_t surf_plugin_description[] = {
     {"host_energy", "Cpu energy consumption.", &sg_host_energy_plugin_init},
     {"link_energy", "Link energy consumption.", &sg_link_energy_plugin_init},
+    {"host_dvfs", "Dvfs support", &sg_host_dvfs_plugin_init},
     {"host_load", "Cpu load.", &sg_host_load_plugin_init},
     {nullptr, nullptr, nullptr} /* this array must be nullptr terminated */
 };
     {"host_load", "Cpu load.", &sg_host_load_plugin_init},
     {nullptr, nullptr, nullptr} /* this array must be nullptr terminated */
 };