From a8d95290e3e8c4f34e9c75ecb3543551c64659a2 Mon Sep 17 00:00:00 2001
From: "Silas S. Brown" <ssb22@cam.ac.uk>
Date: Wed, 15 Feb 2017 10:02:04 +0000
Subject: [PATCH] Update Annotator Generator

git-svn-id: http://svn.code.sf.net/p/e-guidedog/code/ssb22/adjuster@2715 29193198-4895-4776-b068-10539e920549
---
 annogen.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/annogen.py b/annogen.py
index 95d9f24..be03474 100755
--- a/annogen.py
+++ b/annogen.py
@@ -2911,6 +2911,7 @@ def setup_parallelism():
         "ps -p " + str(os.getpid()) + " -o args") \
         .index("-m mpi4py.futures") # ValueError if not found
       import mpi4py.futures # mpi4py v2.1+
+      import mpi4py.MPI ; assert mpi4py.MPI.COMM_WORLD.size > 1, "mpi4py thinks world size is 1: likely a symptom of incorrectly-configured MPI.  Did you compile mpi4py using the same setup (e.g. MPICH or OpenMPI) as you are running?  mpi4py's config is: "+repr(mpi4py.get_config())
       return mpi4py.futures.MPIPoolExecutor()
     except ValueError: pass # but raise all other exceptions: if we're being run within mpi4py.futures then we want to know about MPI problems
     try:
-- 
GitLab