X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/1b30f00857843f1cee60814ed519ff82e8ef4787..d54bd673caabfaf797eef66bea11c265759a8652:/src/msg/gos.c diff --git a/src/msg/gos.c b/src/msg/gos.c index f656ec4e79..7b6367d36c 100644 --- a/src/msg/gos.c +++ b/src/msg/gos.c @@ -53,6 +53,12 @@ MSG_error_t MSG_task_execute(m_task_t task) DEBUG1("Computing on %s", MSG_process_self()->simdata->m_host->name); + if (simdata->computation_amount == 0) { +#ifdef HAVE_TRACING + TRACE_msg_task_execute_end (task); +#endif + return MSG_OK; + } simdata->refcount++; SIMIX_mutex_lock(simdata->mutex); simdata->compute =