[mpich-commits] [mpich] MPICH primary repository branch, master, updated. v3.0.4-407-gcfaa95c

mysql vizuser noreply at mpich.org
Mon Jul 29 14:32:48 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  cfaa95cc36e05cc5df38e6a895c0b9e3abc90128 (commit)
      from  c565e663b28b5304f6d08ab83af34c565ece9e49 (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/cfaa95cc36e05cc5df38e6a895c0b9e3abc90128

commit cfaa95cc36e05cc5df38e6a895c0b9e3abc90128
Author: Ken Raffenetti <raffenet at mcs.anl.gov>
Date:   Mon Jul 29 09:12:22 2013 -0500

    Adds fault tolerance tests.
    
    Adds tests for when -disable-auto-cleanup is enabled and a process
    dies or calls MPI_Abort. There is no communication in these cases.
    
    Signed-off-by: Wesley Bland <wbland at mcs.anl.gov>

diff --git a/test/mpi/Makefile.am b/test/mpi/Makefile.am
index ed82f0e..0ffd429 100644
--- a/test/mpi/Makefile.am
+++ b/test/mpi/Makefile.am
@@ -11,7 +11,7 @@ include $(top_srcdir)/Makefile.mtest
 ACLOCAL_AMFLAGS = -I confdb
 
 static_subdirs = util attr basic datatype coll comm errhan group info init \
-                 pt2pt rma topo errors manual perf mpi_t
+                 pt2pt rma topo errors manual perf mpi_t ft
 all_lang_subdirs = f77 cxx f90
 
 # DIST_SUBDIRS must be a superset of SUBDIRS, and automake must be able to
diff --git a/test/mpi/configure.ac b/test/mpi/configure.ac
index 7339192..55e1790 100644
--- a/test/mpi/configure.ac
+++ b/test/mpi/configure.ac
@@ -1427,6 +1427,7 @@ AC_OUTPUT(maint/testmerge \
           errors/f90/Makefile \
 	  errors/f90/errhan/Makefile \
 	  ckpoint/Makefile \
+	  ft/Makefile \
           manual/Makefile \
           manual/manyconnect \
           manual/mpi_t/Makefile \
diff --git a/test/mpi/ft/Makefile.am b/test/mpi/ft/Makefile.am
new file mode 100644
index 0000000..40061d3
--- /dev/null
+++ b/test/mpi/ft/Makefile.am
@@ -0,0 +1,13 @@
+# -*- Mode: Makefile; -*-
+# vim: set ft=automake :
+#
+# (C) 2011 by Argonne National Laboratory.
+#     See COPYRIGHT in top-level directory.
+#
+
+include $(top_srcdir)/Makefile.mtest
+
+## for all programs that are just built from the single corresponding source
+## file, we don't need per-target _SOURCES rules, automake will infer them
+## correctly
+noinst_PROGRAMS = die abort
diff --git a/test/mpi/ft/abort.c b/test/mpi/ft/abort.c
new file mode 100644
index 0000000..0578fd4
--- /dev/null
+++ b/test/mpi/ft/abort.c
@@ -0,0 +1,27 @@
+/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil ; -*- */
+/*
+ *
+ *  (C) 2003 by Argonne National Laboratory.
+ *      See COPYRIGHT in top-level directory.
+ */
+#include "mpi.h"
+#include <stdio.h>
+
+int main(int argc, char **argv)
+{
+    int rank, size;
+
+    MPI_Init(&argc, &argv);
+    MPI_Comm_rank(MPI_COMM_WORLD, &rank);
+
+    printf("No Errors\n");
+
+    if (rank == 0)
+        MPI_Abort(MPI_COMM_WORLD, MPI_SUCCESS);
+
+    while(1)
+        ;
+
+    MPI_Finalize();
+    return 0;
+}
diff --git a/test/mpi/ft/die.c b/test/mpi/ft/die.c
new file mode 100644
index 0000000..337f14b
--- /dev/null
+++ b/test/mpi/ft/die.c
@@ -0,0 +1,33 @@
+/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil ; -*- */
+/*
+ *
+ *  (C) 2003 by Argonne National Laboratory.
+ *      See COPYRIGHT in top-level directory.
+ */
+#include <mpi.h>
+#include <stdio.h>
+#include <sys/types.h>
+#include <unistd.h>
+#include <signal.h>
+
+int main(int argc, char **argv)
+{
+    int rank, size;
+    pid_t pid;
+
+    MPI_Init(&argc, &argv);
+    MPI_Comm_rank(MPI_COMM_WORLD, &rank);
+
+    if (rank == 1) {
+        pid = getpid();
+        kill(pid, SIGSTOP);
+    }
+
+    MPI_Finalize();
+
+    if (rank == 0) {
+        printf("No Errors\n");
+    }
+
+    return 0;
+}
diff --git a/test/mpi/ft/testlist b/test/mpi/ft/testlist
new file mode 100644
index 0000000..00187ae
--- /dev/null
+++ b/test/mpi/ft/testlist
@@ -0,0 +1,2 @@
+die 4 mpiexecarg=-disable-auto-cleanup timeLimit=10
+abort 2 mpiexecarg=-disable-auto-cleanup timeLimit=10
diff --git a/test/mpi/testlist.in b/test/mpi/testlist.in
index 0a77991..5d32b47 100644
--- a/test/mpi/testlist.in
+++ b/test/mpi/testlist.in
@@ -22,3 +22,4 @@ topo
 @errordir@
 @threadsdir@
 @ckpointdir@
+ft

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

Summary of changes:
 test/mpi/Makefile.am                       |    2 +-
 test/mpi/configure.ac                      |    1 +
 test/mpi/{ckpoint => ft}/Makefile.am       |    2 +-
 test/mpi/{manual/segfault.c => ft/abort.c} |   24 +++++++++++++-----------
 test/mpi/{manual/segfault.c => ft/die.c}   |   28 ++++++++++++++++++----------
 test/mpi/ft/testlist                       |    2 ++
 test/mpi/testlist.in                       |    1 +
 7 files changed, 37 insertions(+), 23 deletions(-)
 copy test/mpi/{ckpoint => ft}/Makefile.am (91%)
 copy test/mpi/{manual/segfault.c => ft/abort.c} (51%)
 copy test/mpi/{manual/segfault.c => ft/die.c} (52%)
 create mode 100644 test/mpi/ft/testlist


hooks/post-receive
-- 
MPICH primary repository


More information about the commits mailing list