]> AND Public Git Repository - simgrid.git/blobdiff - src/surf/host_ptask_L07.cpp
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Also run the energy tests with ptask_L07 model.
[simgrid.git] / src / surf / host_ptask_L07.cpp
index 0c04470e33f20a85b3816afcd48f119084c7b58d..38b170910194ce42bdecc213ed3bf4d8765bd8f9 100644 (file)
@@ -16,6 +16,7 @@
 #include "src/surf/platform.hpp"
 
 XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(surf_host);
+XBT_LOG_EXTERNAL_CATEGORY(xbt_cfg);
 
 /**************************************/
 /*** Resource Creation & Destruction **/
@@ -29,13 +30,15 @@ static void ptask_netlink_parse_init(sg_platf_link_cbarg_t link)
 
 void surf_host_model_init_ptask_L07(void)
 {
-  XBT_INFO("Switching to the L07 model to handle parallel tasks.");
+  XBT_CINFO(xbt_cfg,"Switching to the L07 model to handle parallel tasks.");
   xbt_assert(!surf_cpu_model_pm, "CPU model type already defined");
   xbt_assert(!surf_network_model, "network model type already defined");
 
   // Define the callbacks to parse the XML
   simgrid::surf::on_link.connect(ptask_netlink_parse_init);
-  simgrid::surf::on_postparse.connect(host_add_traces);
+  simgrid::surf::on_postparse.connect([](){
+      surf_host_model->addTraces();
+  });
 
   surf_host_model = new simgrid::surf::HostL07Model();
   xbt_dynar_push(all_existing_models, &surf_host_model);