On 5 October 2016 at 22:29, Mahdi, Sam <sam.mahdi....@my.csun.edu> wrote:
> Hi everyone, > > I had a quick question regarding the compatibility of openmpi and mpi4py. > I have openmpi 1.7.3 and mpi4py 1.3.1. I know these are older versions of > each, but I was having some problems running a program that uses mpi4py and > openmpi, and I wanted to make sure it wasn't a compatibility issue between > the 2 versions of these programs. > > Hi, I'm the author of mpi4py. Could you elaborate on the issues you experienced? I would start by disabling MPI_Init_threads() from mpi4py, for you have to add the following code: import mpi4py.rc mpi4py.rc.threaded = False from mpi4py import MPI But you have to do it at the VERY BEGINNING of your code, more precisely, the two first lines should be used before any attempt to "from mpi4py import MPI". PS: Any chance you can use a newer version of mpi4py, maybe even a git checkout of the master branch? -- Lisandro Dalcin ============ Research Scientist Computer, Electrical and Mathematical Sciences & Engineering (CEMSE) Extreme Computing Research Center (ECRC) King Abdullah University of Science and Technology (KAUST) http://ecrc.kaust.edu.sa/ 4700 King Abdullah University of Science and Technology al-Khawarizmi Bldg (Bldg 1), Office # 0109 Thuwal 23955-6900, Kingdom of Saudi Arabia http://www.kaust.edu.sa Office Phone: +966 12 808-0459
_______________________________________________ users mailing list users@lists.open-mpi.org https://rfd.newmexicoconsortium.org/mailman/listinfo/users