* communication either */
for (size_t i = 0; i < host_nb; i++) {
model->get_maxmin_system()->expand(host_list[i]->get_cpu()->get_constraint(), get_variable(),
- (flops_amount == nullptr ? 0.0 : flops_amount[i]));
+ (flops_amount == nullptr ? 0.0 : flops_amount[i]), true);
}
if (bytes_amount != nullptr) {
get_model()->get_maxmin_system()->update_constraint_bound(get_constraint(), get_core_count() * speed_.peak * speed_.scale);
while (const auto* var = get_constraint()->get_variable(&elem)) {
- auto* action = static_cast<L07Action*>(var->get_id());
+ const auto* action = static_cast<L07Action*>(var->get_id());
action->update_bound();
}
latency_.peak = value;
while (const auto* var = get_constraint()->get_variable(&elem)) {
- auto* action = static_cast<L07Action*>(var->get_id());
+ const auto* action = static_cast<L07Action*>(var->get_id());
action->update_bound();
}
}
}
}
-double L07Action::calculate_network_bound()
+double L07Action::calculate_network_bound() const
{
double lat_current = 0.0;
double lat_bound = std::numeric_limits<double>::max();
return lat_bound;
}
-double L07Action::calculate_cpu_bound()
+double L07Action::calculate_cpu_bound() const
{
double cpu_bound = std::numeric_limits<double>::max();
return cpu_bound;
}
-void L07Action::update_bound()
+void L07Action::update_bound() const
{
double bound = std::min(calculate_network_bound(), calculate_cpu_bound());