A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Introduce a Trait to deal with autorestart matter in ActorImpl, and fix bugs
[simgrid.git]
/
src
/
surf
/
ptask_L07.cpp
diff --git
a/src/surf/ptask_L07.cpp
b/src/surf/ptask_L07.cpp
index b92dedcd0a6a414a46a602beee07784925e817cd..9039cff2055547c7b272da9a3da55cf986ccb171 100644
(file)
--- a/
src/surf/ptask_L07.cpp
+++ b/
src/surf/ptask_L07.cpp
@@
-35,7
+35,8
@@
void surf_host_model_init_ptask_BMF()
{
XBT_CINFO(xbt_cfg, "Switching to the BMF model to handle parallel tasks.");
- auto* system = new simgrid::kernel::lmm::BmfSystem(false);
+ bool select = simgrid::config::get_value<bool>("bmf/selective-update");
+ auto* system = new simgrid::kernel::lmm::BmfSystem(select);
auto host_model = std::make_shared<simgrid::kernel::resource::HostL07Model>("Host_Ptask", system);
auto* engine = simgrid::kernel::EngineImpl::get_instance();
engine->add_model(host_model);
@@
-204,8
+205,8
@@
L07Action::L07Action(Model* model, const std::vector<s4u::Host*>& host_list, con
/* Expand it for the CPUs even if there is nothing to compute, to make sure that it gets expended even if there is no
* communication either */
for (size_t i = 0; i < host_list.size(); i++) {
- model->get_maxmin_system()->expand(host_list[i]->get_cpu()->get_constraint(), get_variable(),
- (flops_amount == nullptr ? 0.0 : flops_amount[i]));
+ model->get_maxmin_system()->expand
_add
(host_list[i]->get_cpu()->get_constraint(), get_variable(),
+
(flops_amount == nullptr ? 0.0 : flops_amount[i]));
}
if (bytes_amount != nullptr) {