double priority, double bound, sg_host_t host)
{
return simgrid::simix::simcall([name, category, flops_amount, priority, bound, host] {
- return simgrid::kernel::activity::ExecImplPtr(
- new simgrid::kernel::activity::ExecImpl(std::move(name), std::move(category)))
+ return simgrid::kernel::activity::ExecImplPtr(new simgrid::kernel::activity::ExecImpl())
+ ->set_name(name)
+ ->set_tracing_category(category)
->set_host(host)
->start(flops_amount, priority, bound);
});
if (bytes_amount != nullptr)
bytes_parallel_amount = std::vector<double>(bytes_amount, bytes_amount + host_nb * host_nb);
return simgrid::simix::simcall([name, hosts, flops_parallel_amount, bytes_parallel_amount, timeout] {
- return simgrid::kernel::activity::ExecImplPtr(new simgrid::kernel::activity::ExecImpl(std::move(name), ""))
+ return simgrid::kernel::activity::ExecImplPtr(new simgrid::kernel::activity::ExecImpl())
+ ->set_name(name)
->set_timeout(timeout)
->start(hosts, flops_parallel_amount, bytes_parallel_amount);
});