Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
use our new toys
authorFrederic Suter <frederic.suter@cc.in2p3.fr>
Fri, 20 Jul 2018 11:48:14 +0000 (13:48 +0200)
committerFrederic Suter <frederic.suter@cc.in2p3.fr>
Fri, 20 Jul 2018 11:48:14 +0000 (13:48 +0200)
src/s4u/s4u_Actor.cpp
src/s4u/s4u_Exec.cpp

index 3548aba..b1f7456 100644 (file)
@@ -285,12 +285,12 @@ XBT_PUBLIC void sleep_until(double timeout)
 
 void execute(double flops)
 {
 
 void execute(double flops)
 {
-  get_host()->execute(flops);
+  execute(flops, 1.0 /* priority */);
 }
 
 void execute(double flops, double priority)
 {
 }
 
 void execute(double flops, double priority)
 {
-  get_host()->execute(flops, priority);
+  exec_init(flops)->set_priority(priority)->start()->wait();
 }
 
 void parallel_execute(int host_nb, s4u::Host** host_list, double* flops_amount, double* bytes_amount, double timeout)
 }
 
 void parallel_execute(int host_nb, s4u::Host** host_list, double* flops_amount, double* bytes_amount, double timeout)
index 2d8cb19..52f05cb 100644 (file)
@@ -15,8 +15,7 @@ namespace s4u {
 
 Activity* Exec::start()
 {
 
 Activity* Exec::start()
 {
-  pimpl_ = simcall_execution_start("", flops_amount_, 1. / priority_, 0., host_);
-  boost::static_pointer_cast<simgrid::kernel::activity::ExecImpl>(pimpl_)->set_bound(bound_);
+  pimpl_ = simcall_execution_start("", flops_amount_, 1. / priority_, bound_, host_);
   state_ = State::STARTED;
   return this;
 }
   state_ = State::STARTED;
   return this;
 }