- for (int i = 0; i < host_nb; i++)
- if (flops_amount[i] > 0)
- nb_used_host++;
-
- XBT_DEBUG("Creating a parallel task (%p) with %d hosts and %d unique links.", this, host_nb, nb_link);
- this->p_computationAmount = flops_amount;
- this->p_communicationAmount = bytes_amount;
- this->m_latency = latency;
- this->m_rate = rate;
-
- this->p_variable = lmm_variable_new(model->getMaxminSystem(), this, 1.0,
- (rate > 0 ? rate : -1.0),
- host_nb + nb_link);
-
- if (this->m_latency > 0)
- lmm_update_variable_weight(model->getMaxminSystem(), this->getVariable(), 0.0);
-
- for (int i = 0; i < host_nb; i++)
- lmm_expand(model->getMaxminSystem(), host_list[i]->pimpl_cpu->getConstraint(),
- this->getVariable(), flops_amount[i]);
+ XBT_DEBUG("Creating a parallel task (%p) with %zu hosts and %zu unique links.", this, host_nb, link_nb);
+ latency_ = latency;