[mpich-commits] [mpich] MPICH primary repository branch, master, updated. v3.1rc3-9-g55ec328

mysql vizuser noreply at mpich.org
Sun Feb 9 12:18:23 CST 2014


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  55ec3281bd929e4ae2b924944d23ee4d5f824886 (commit)
      from  5d595a22d3f00cae36158161c07bbe46e6ce3a61 (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/55ec3281bd929e4ae2b924944d23ee4d5f824886

commit 55ec3281bd929e4ae2b924944d23ee4d5f824886
Author: Ken Raffenetti <raffenet at mcs.anl.gov>
Date:   Fri Feb 7 09:51:43 2014 -0600

    reduce memory usage for large_type_sendrec test
    
    Signed-off-by: Pavan Balaji <balaji at mcs.anl.gov>

diff --git a/test/mpi/datatype/large_type_sendrec.c b/test/mpi/datatype/large_type_sendrec.c
index 60cfbdf..f6500fb 100644
--- a/test/mpi/datatype/large_type_sendrec.c
+++ b/test/mpi/datatype/large_type_sendrec.c
@@ -119,24 +119,24 @@ int main(int argc, char * argv[])
     MPI_ASSERT(MPIX_Type_contiguous_x( (MPI_Count)count, MPI_CHAR, &bigtype));
     MPI_ASSERT(MPI_Type_commit(&bigtype));
 
-    char * rbuf = NULL;
-    char * sbuf = NULL;
-
-    rbuf = malloc( count * sizeof(char)); assert(rbuf!=NULL);
-    sbuf = malloc( count * sizeof(char)); assert(sbuf!=NULL);
-
-    for (i=0; i<count; i++)
-        rbuf[i] = 'a';
-    for (i=0; i<count; i++)
-        sbuf[i] = 'z';
-
     MPI_Request requests[2];
     MPI_Status statuses[2];
 
+    char * rbuf = NULL;
+    char * sbuf = NULL;
+
     if (rank==(size-1)) {
+        rbuf = malloc( count * sizeof(char)); assert(rbuf!=NULL);
+        for (i=0; i<count; i++)
+            rbuf[i] = 'a';
+
         MPI_ASSERT(MPI_Irecv(rbuf, 1, bigtype, 0,      0, MPI_COMM_WORLD, &(requests[1]) ));
     }
     if (rank==0) {
+        sbuf = malloc( count * sizeof(char)); assert(sbuf!=NULL);
+        for (i=0; i<count; i++)
+            sbuf[i] = 'z';
+
         MPI_ASSERT(MPI_Isend(sbuf, 1, bigtype, size-1, 0, MPI_COMM_WORLD, &(requests[0]) ));
     }
 

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

Summary of changes:
 test/mpi/datatype/large_type_sendrec.c |   22 +++++++++++-----------
 1 files changed, 11 insertions(+), 11 deletions(-)


hooks/post-receive
-- 
MPICH primary repository


More information about the commits mailing list