X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/215334a90eeaaccc35c8359cffd9c869cf57ccdc..9fd6cbc6c3b06f4b09e3c3339ffb3cc8a68f9bfa:/src/msg/msg_gos.cpp diff --git a/src/msg/msg_gos.cpp b/src/msg/msg_gos.cpp index 62bed03094..84d1c06fc2 100644 --- a/src/msg/msg_gos.cpp +++ b/src/msg/msg_gos.cpp @@ -65,13 +65,14 @@ msg_error_t MSG_parallel_task_execute_with_timeout(msg_task_t task, double timeo task->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->category != nullptr) + simcall_set_category(simdata->compute, task->category); } else { simdata->compute = boost::static_pointer_cast( - simcall_execution_start(task->name ?: "", simdata->flops_amount, simdata->priority, simdata->bound, - MSG_process_get_host(MSG_process_self()))); + simcall_execution_start(task->name ?: "", task->category ?: "", simdata->flops_amount, simdata->priority, + simdata->bound, MSG_process_get_host(MSG_process_self()))); } - if (task->category != nullptr) - simcall_set_category(simdata->compute, task->category); + comp_state = simcall_execution_wait(simdata->compute); simdata->setNotUsed();