Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Make sure that it's ok to execute 0-sized tasks
authormquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Thu, 15 Apr 2010 13:05:24 +0000 (13:05 +0000)
committermquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Thu, 15 Apr 2010 13:05:24 +0000 (13:05 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@7598 48e7efb5-ca39-0410-a469-dd3cf9ba447f

ChangeLog
src/msg/gos.c

index f06b233..6f6f115 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -58,6 +58,7 @@ SimGrid (3.4-svn) unstable; urgency=low
         and call MSG_action_trace_run(NULL)
       You can still have one merged file for all processes.
     - Fix implementation of collective operations
+  * Allow task_execute() on 0-sized tasks (closes #10063)
  SMPI:
   * This is the first release of SimGrid where SMPI is not considered
     beta anymore (even if some corners should still be improved)
index f656ec4..267309b 100644 (file)
@@ -53,6 +53,9 @@ MSG_error_t MSG_task_execute(m_task_t task)
 
   DEBUG1("Computing on %s", MSG_process_self()->simdata->m_host->name);
 
+  if (simdata->comp_amount == 0)
+    return MSG_OK;
+
   simdata->refcount++;
   SIMIX_mutex_lock(simdata->mutex);
   simdata->compute =