Not sure what going on... Could you try to launch a simple C program
calling MPI_Init_thread() asking for MPI_THREAD_MULTIPLE?
There are three possible roots for this issue.
1) Your MPI installation is broken. Have you tried to run a trivial,
pure-C program?
2) Your MPI does not fully support threads. You could try to:
2.a) Compile simple C program calling MPI_Init_thread() asking for
MPI_THREAD_MULTIPLE, and see what happens.
2.b) add these two line at the VERY beginning of demo/helloworld.py,
BEFORE the line "from mpi4py import MPI"
import mpi4py.rc
mpi4py.rc.threaded = False
3) Perhaps there is a problem with shared libraries... Before "from
mpi4py import MPI", could you use ctypes to load the MPICH2 shared
library using RTLD_GLOBAL? You should add a line like
import ctypes
ctypes.CDLL("/full/path/to/libmpich.so", ctypes.RTLD_GLOBAL)
--
Lisandro Dalcín
---------------
Centro Internacional de Métodos Computacionales en Ingeniería (CIMEC)
Instituto de Desarrollo Tecnológico para la Industria Química (INTEC)
Consejo Nacional de Investigaciones Científicas y Técnicas (CONICET)
PTLC - Güemes 3450, (3000) Santa Fe, Argentina
Tel/Fax:
+54-(0)342-451.1594