These fixmes was necessary to implement multi-models.
By now, we stick with only 1 model.
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_);
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);
}
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);
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]);