[mpich-commits] [mpich] MPICH primary repository branch, master, updated. v3.1.2-125-g1db6b01

Service Account noreply at mpich.org
Wed Aug 27 15:32:54 CDT 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  1db6b019ed9a9181092ed1168b2cdfa5af65c44b (commit)
      from  665c2db7b2fe4bd6d208278fc3a28a210a18445c (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/1db6b019ed9a9181092ed1168b2cdfa5af65c44b

commit 1db6b019ed9a9181092ed1168b2cdfa5af65c44b
Author: Antonio J. Pena <apenya at mcs.anl.gov>
Date:   Wed Aug 27 13:54:53 2014 -0500

    Change buffers in mprobe's test from static to dynamic
    
    This was making our FreeBSD 32 bit platform unhappy, causing segfaults.
    
    Fixes #2160
    
    Signed-off-by: Ken Raffenetti <raffenet at mcs.anl.gov>

diff --git a/test/mpi/pt2pt/mprobe.c b/test/mpi/pt2pt/mprobe.c
index 07edde1..f9abdc6 100644
--- a/test/mpi/pt2pt/mprobe.c
+++ b/test/mpi/pt2pt/mprobe.c
@@ -36,7 +36,7 @@ int main(int argc, char **argv)
     int errs = 0;
     int found, completed;
     int rank, size;
-    int sendbuf[LARGE_SZ], recvbuf[LARGE_SZ];
+    int *sendbuf = NULL, *recvbuf = NULL;
     int count, i;
 #ifdef TEST_MPROBE_ROUTINES
     MPI_Message msg;
@@ -61,6 +61,13 @@ int main(int argc, char **argv)
     }
 
 #ifdef TEST_MPROBE_ROUTINES
+    sendbuf = (int *) malloc(LARGE_SZ * sizeof(int));
+    recvbuf = (int *) malloc(LARGE_SZ * sizeof(int));
+    if (sendbuf == NULL || recvbuf == NULL) {
+        printf("Error in memory allocation\n");
+        MPI_Abort(MPI_COMM_WORLD, 1);
+    }
+
     /* test 0: simple send & mprobe+mrecv */
     if (rank == 0) {
         sendbuf[0] = 0xdeadbeef;
@@ -515,6 +522,9 @@ int main(int argc, char **argv)
     }
     MPI_Type_free(&vectype);
 
+    free(sendbuf);
+    free(recvbuf);
+
     /* TODO MPI_ANY_SOURCE and MPI_ANY_TAG should be tested as well */
     /* TODO a full range of message sizes should be tested too */
     /* TODO threaded tests are also needed, but they should go in a separate

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

Summary of changes:
 test/mpi/pt2pt/mprobe.c |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
MPICH primary repository


More information about the commits mailing list