Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
propagate the user bound down to the action
authorFrederic Suter <frederic.suter@cc.in2p3.fr>
Tue, 9 Mar 2021 13:55:51 +0000 (14:55 +0100)
committerFrederic Suter <frederic.suter@cc.in2p3.fr>
Tue, 9 Mar 2021 13:55:51 +0000 (14:55 +0100)
src/kernel/activity/ExecImpl.cpp
src/plugins/vm/VirtualMachineImpl.cpp

index e643483..d7e4ad8 100644 (file)
@@ -115,8 +115,10 @@ ExecImpl* ExecImpl::start()
       surf_action_->set_sharing_penalty(sharing_penalty_);
       surf_action_->set_category(get_tracing_category());
 
-      if (bound_ > 0)
+      if (bound_ > 0) {
         surf_action_->set_bound(bound_);
+        surf_action_->set_user_bound(bound_);
+      }
     } else {
       surf_action_ = surf_host_model->execute_parallel(hosts_, flops_amounts_.data(), bytes_amounts_.data(), -1);
     }
index a9906c1..eefe1e5 100644 (file)
@@ -320,6 +320,7 @@ void VirtualMachineImpl::set_physical_host(s4u::Host* destination)
 void VirtualMachineImpl::set_bound(double bound)
 {
   user_bound_ = bound;
+  action_->set_user_bound(user_bound_);
   update_action_weight();
 }