[mpich-commits] [mpich] MPICH primary repository branch, master, updated. v3.1b1-169-g3b56a29

mysql vizuser noreply at mpich.org
Thu Oct 31 19:08:09 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  3b56a29cdfd5407c73dc6b836e15c0d460d35d82 (commit)
       via  46fe18d7f83d39a70acee9c9091ce8f0053f42ce (commit)
      from  0746bdd3f136cf132f8598a67e7ea444f6aab178 (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/3b56a29cdfd5407c73dc6b836e15c0d460d35d82

commit 3b56a29cdfd5407c73dc6b836e15c0d460d35d82
Author: Pavan Balaji <balaji at mcs.anl.gov>
Date:   Wed Oct 30 22:38:28 2013 -0500

    Mark nbtest as xfail.
    
    Signed-off-by: Xin Zhao <xinzhao3 at illinois.edu>

diff --git a/test/mpi/rma/testlist b/test/mpi/rma/testlist
index c773322..1cf3ae3 100644
--- a/test/mpi/rma/testlist
+++ b/test/mpi/rma/testlist
@@ -106,4 +106,4 @@ mutex_bench_shared 4 mpiversion=3.0
 mutex_bench_shm 4 mpiversion=3.0
 rma-contig 4 mpiversion=3.0 timeLimit=600
 badrma 2 mpiversion=3.0
-nb_test 2 mpiversion=3.0
+nb_test 2 mpiversion=3.0 xfail=ticket1910

http://git.mpich.org/mpich.git/commitdiff/46fe18d7f83d39a70acee9c9091ce8f0053f42ce

commit 46fe18d7f83d39a70acee9c9091ce8f0053f42ce
Author: Pavan Balaji <balaji at mcs.anl.gov>
Date:   Wed Oct 30 22:17:02 2013 -0500

    Added a nonblocking MPI_Test test.
    
    MPICH currently blocks in MPI_Test.  This test forces a case where the
    program will deadlock if MPI_Test is not nonblocking.
    
    Signed-off-by: Xin Zhao <xinzhao3 at illinois.edu>

diff --git a/test/mpi/rma/Makefile.am b/test/mpi/rma/Makefile.am
index b059648..87b506c 100644
--- a/test/mpi/rma/Makefile.am
+++ b/test/mpi/rma/Makefile.am
@@ -120,7 +120,8 @@ noinst_PROGRAMS =          \
     mutex_bench_shared     \
     mutex_bench_shm        \
     rma-contig             \
-    badrma
+    badrma                 \
+    nb_test
 
 strided_acc_indexed_LDADD       = $(LDADD) -lm
 strided_acc_onelock_LDADD       = $(LDADD) -lm
diff --git a/test/mpi/rma/nb_test.c b/test/mpi/rma/nb_test.c
new file mode 100644
index 0000000..0fae2da
--- /dev/null
+++ b/test/mpi/rma/nb_test.c
@@ -0,0 +1,42 @@
+/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil ; -*- */
+/*
+ *  (C) 2001 by Argonne National Laboratory.
+ *      See COPYRIGHT in top-level directory.
+ */
+#include <stdio.h>
+#include <mpi.h>
+#include <mpitest.h>
+
+int main(int argc, char *argv[])
+{
+    MPI_Win win;
+    int flag, tmp, rank;
+    int base[1024], errs = 0;
+    MPI_Request req;
+
+    MTest_Init(&argc,&argv);
+    MPI_Comm_rank(MPI_COMM_WORLD, &rank);
+
+    MPI_Win_create(base, 1024 * sizeof(int), sizeof(int), MPI_INFO_NULL, MPI_COMM_WORLD, &win);
+
+    if (rank == 0) {
+        MPI_Win_lock(MPI_LOCK_EXCLUSIVE, 0, 0, win);
+        MPI_Barrier(MPI_COMM_WORLD);
+        MPI_Barrier(MPI_COMM_WORLD);
+        MPI_Win_unlock(0, win);
+    }
+    else {
+        MPI_Barrier(MPI_COMM_WORLD);
+        MPI_Win_lock(MPI_LOCK_EXCLUSIVE, 0, 0, win);
+        MPI_Rput(&tmp, 1, MPI_INT, 0, 0, 1, MPI_INT, win, &req);
+        MPI_Test(&req, &flag, MPI_STATUS_IGNORE);
+        MPI_Barrier(MPI_COMM_WORLD);
+        MPI_Win_unlock(0, win);
+    }
+
+    MPI_Win_free(&win);
+
+    MTest_Finalize(errs);
+    MPI_Finalize();
+    return 0;
+}
diff --git a/test/mpi/rma/testlist b/test/mpi/rma/testlist
index 84f5646..c773322 100644
--- a/test/mpi/rma/testlist
+++ b/test/mpi/rma/testlist
@@ -106,3 +106,4 @@ mutex_bench_shared 4 mpiversion=3.0
 mutex_bench_shm 4 mpiversion=3.0
 rma-contig 4 mpiversion=3.0 timeLimit=600
 badrma 2 mpiversion=3.0
+nb_test 2 mpiversion=3.0

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

Summary of changes:
 test/mpi/rma/Makefile.am |    3 ++-
 test/mpi/rma/nb_test.c   |   42 ++++++++++++++++++++++++++++++++++++++++++
 test/mpi/rma/testlist    |    1 +
 3 files changed, 45 insertions(+), 1 deletions(-)
 create mode 100644 test/mpi/rma/nb_test.c


hooks/post-receive
-- 
MPICH primary repository


More information about the commits mailing list