Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
user bound is now stored at Action level and not modified by LMM
authorFrederic Suter <frederic.suter@cc.in2p3.fr>
Tue, 9 Mar 2021 15:28:56 +0000 (16:28 +0100)
committerFrederic Suter <frederic.suter@cc.in2p3.fr>
Tue, 9 Mar 2021 15:28:56 +0000 (16:28 +0100)
Then it can be passed from old to new action when migrating the Exec

src/kernel/activity/ExecImpl.cpp

index 849707c..0f925c9 100644 (file)
@@ -270,9 +270,7 @@ ActivityImpl* ExecImpl::migrate(s4u::Host* to)
     new_action->set_remains(old_action->get_remains());
     new_action->set_activity(this);
     new_action->set_sharing_penalty(old_action->get_sharing_penalty());
-
-    // FIXME: the user-defined bound seem to not be kept by LMM, that seem to overwrite it for the multi-core modeling.
-    // I hope that the user did not provide any.
+    new_action->set_user_bound(old_action->get_user_bound());
 
     old_action->set_activity(nullptr);
     old_action->cancel();