- simdata->set_used();
-
- if (simdata->host_nb > 0) {
- simdata->compute =
- boost::static_pointer_cast<simgrid::kernel::activity::ExecImpl>(simcall_execution_parallel_start(
- std::move(task->simdata->get_name()), simdata->host_nb, simdata->host_list,
- simdata->flops_parallel_amount, simdata->bytes_parallel_amount, -1.0, timeout));
- XBT_DEBUG("Parallel execution action created: %p", simdata->compute.get());
- if (task->simdata->has_tracing_category())
- simgrid::simix::simcall(
- [task] { task->simdata->compute->set_category(std::move(task->simdata->get_tracing_category())); });
+ task->set_used();
+
+ if (task->host_nb > 0) {
+ task->compute = boost::static_pointer_cast<simgrid::kernel::activity::ExecImpl>(
+ simcall_execution_parallel_start(std::move(task->get_name()), task->host_nb, task->host_list,
+ task->flops_parallel_amount, task->bytes_parallel_amount, -1.0, timeout));
+ XBT_DEBUG("Parallel execution action created: %p", task->compute.get());
+ if (task->has_tracing_category())
+ simgrid::simix::simcall([task] { task->compute->set_category(std::move(task->get_tracing_category())); });