[mpich-commits] [mpich] MPICH primary repository branch, master, updated. v3.0.4-333-gf47c806

mysql vizuser noreply at mpich.org
Tue Jul 9 15:50:47 CDT 2013


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "MPICH primary repository".

The branch, master has been updated
       via  f47c806f6736a269d02846de77996ff199354394 (commit)
      from  14b4acc7e789de66e68a1224ad11fe1e1b817c34 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.mpich.org/mpich.git/commitdiff/f47c806f6736a269d02846de77996ff199354394

commit f47c806f6736a269d02846de77996ff199354394
Author: Rob Latham <robl at mcs.anl.gov>
Date:   Tue Jul 2 18:41:52 2013 +0000

    small memory management cleanups
    
    missed a free of an unused array in one case, and freed some arrays
    immediately after calling MPI_Alltoallv in an attempt to chip away at
    memory footprint.

diff --git a/src/mpi/romio/adio/ad_bg/ad_bg_wrcoll.c b/src/mpi/romio/adio/ad_bg/ad_bg_wrcoll.c
index 976160c..c9312f3 100644
--- a/src/mpi/romio/adio/ad_bg/ad_bg_wrcoll.c
+++ b/src/mpi/romio/adio/ad_bg/ad_bg_wrcoll.c
@@ -1331,6 +1331,7 @@ static void ADIOI_W_Exchange_data_alltoallv(
                            min_st_offset, fd_size, fd_start, fd_end, 
                            send_buf_idx, curr_to_proc, done_to_proc, iter,
                            buftype_extent);
+	ADIOI_Free(send_buf);
     }
 
   /* alltoallv */
@@ -1339,6 +1340,9 @@ static void ADIOI_W_Exchange_data_alltoallv(
             all_recv_buf, recv_size, rdispls, MPI_BYTE,
             fd->comm ); 
 
+    ADIOI_Free( all_send_buf );
+    ADIOI_Free(sdispls);
+
   /* data sieving pre-read */
   /* To avoid a read-modify-write, check if there are holes in the 
      data to be written. For this, merge the (sorted) offset lists
@@ -1416,9 +1420,7 @@ static void ADIOI_W_Exchange_data_alltoallv(
     }
     
     ADIOI_Free( tmp_len );
-    ADIOI_Free( all_send_buf );
     ADIOI_Free( all_recv_buf );
-    ADIOI_Free(sdispls);
     ADIOI_Free(rdispls);
     return; 
 }   

-----------------------------------------------------------------------

Summary of changes:
 src/mpi/romio/adio/ad_bg/ad_bg_wrcoll.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
MPICH primary repository


More information about the commits mailing list