Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Remove old fixme
authorBruno Donassolo <bruno.donassolo@inria.fr>
Thu, 5 Aug 2021 13:43:30 +0000 (15:43 +0200)
committerBruno Donassolo <bruno.donassolo@inria.fr>
Mon, 9 Aug 2021 08:46:53 +0000 (10:46 +0200)
These fixmes was necessary to implement multi-models.
By now, we stick with only 1 model.

src/kernel/activity/CommImpl.cpp
src/kernel/activity/ExecImpl.cpp
src/simdag/sd_task.cpp
src/surf/host_clm03.cpp

index 1724a85..a91af44 100644 (file)
@@ -306,9 +306,9 @@ CommImpl* CommImpl::start()
     from_ = from_ != nullptr ? from_ : src_actor_->get_host();
     to_   = to_ != nullptr ? to_ : dst_actor_->get_host();
 
-    /* FIXME[donassolo]: getting the network_model from the origin host
-     * Soon we need to change this function to first get the routes and later
-     * create the respective surf actions */
+    /* Getting the network_model from the origin host
+     * Valid while we have a single network model, otherwise we would need to change this function to first get the
+     * routes and later create the respective surf actions */
     auto net_model = from_->get_netpoint()->get_englobing_zone()->get_network_model();
 
     surf_action_ = net_model->communicate(from_, to_, size_, rate_);
index 996b833..fd486bb 100644 (file)
@@ -87,7 +87,7 @@ ExecImpl* ExecImpl::start()
         surf_action_->set_user_bound(bound_);
       }
     } else {
-      // FIXME[donassolo]: verify if all hosts belongs to the same netZone?
+      // get the model from first host since we have only 1 by now
       auto host_model = hosts_.front()->get_netpoint()->get_englobing_zone()->get_host_model();
       surf_action_    = host_model->execute_parallel(hosts_, flops_amounts_.data(), bytes_amounts_.data(), -1);
     }
index 9583196..a00b21f 100644 (file)
@@ -802,7 +802,6 @@ void SD_task_run(SD_task_t task)
   XBT_VERB("Executing task '%s'", task->name);
 
   /* Beware! The scheduling data are now used by the surf action directly! no copy was done */
-  // FIXME[donassolo]: verify if all hosts belongs to the same netZone?
   auto host_model = (*task->allocation).front()->get_netpoint()->get_englobing_zone()->get_host_model();
   task->surf_action =
       host_model->execute_parallel(*task->allocation, task->flops_amount, task->bytes_amount, task->rate);
index ef0e7fc..24e73a2 100644 (file)
@@ -57,9 +57,6 @@ kernel::resource::Action* HostCLM03Model::execute_parallel(const std::vector<s4u
                                                            double rate)
 {
   kernel::resource::Action* action = nullptr;
-  /* FIXME[donassolo]: getting the network_model from the origin host
-   * Soon we need to change this function to first get the routes and later
-   * create the respective surf actions */
   auto net_model = host_list[0]->get_netpoint()->get_englobing_zone()->get_network_model();
   if ((host_list.size() == 1) && (has_cost(bytes_amount, 0) <= 0) && (has_cost(flops_amount, 0) > 0)) {
     action = host_list[0]->get_cpu()->execution_start(flops_amount[0]);