[mpich2-commits] r7914 - mpich2/trunk/src/mpi/pt2pt

goodell at mcs.anl.gov goodell at mcs.anl.gov
Fri Feb 4 16:55:44 CST 2011


Author: goodell
Date: 2011-02-04 16:55:44 -0600 (Fri, 04 Feb 2011)
New Revision: 7914

Modified:
   mpich2/trunk/src/mpi/pt2pt/waitall.c
Log:
bugfix: missing progress_start/end in r7827

Thanks to Joe Ratterman @ IBM for reporting this obvious bug.

Reviewed by buntinas at .

Modified: mpich2/trunk/src/mpi/pt2pt/waitall.c
===================================================================
--- mpich2/trunk/src/mpi/pt2pt/waitall.c	2011-02-04 22:09:45 UTC (rev 7913)
+++ mpich2/trunk/src/mpi/pt2pt/waitall.c	2011-02-04 22:55:44 UTC (rev 7914)
@@ -104,6 +104,7 @@
      * Possible variation: permit request_ptrs[i]==NULL at the cost of an
      * additional branch inside the for-loop below. */
     if (optimize) {
+        MPID_Progress_start(&progress_state);
         for (i = 0; i < count; ++i) {
             while (!MPID_Request_is_complete(request_ptrs[i])) {
                 mpi_errno = MPID_Progress_wait(&progress_state);
@@ -120,6 +121,8 @@
             if (mpi_errno) MPIU_ERR_POP(mpi_errno);
         }
 
+        MPID_Progress_end(&progress_state);
+
         goto fn_exit;
     }
 



More information about the mpich2-commits mailing list