python setup.py build --mpi=openmpi
In [1]: from mpi4py import MPI
In [2]: mpiinfo = MPI.Info.Create()
In [3]: import sys
In [4]: comm= MPI.COMM_SELF.Spawn(sys.executable,args=['./test.py'],info=mpiinfo,maxprocs=1)
hello
---------------------------------------------------------------------------
Exception Traceback (most recent call last)
<ipython-input-4-0f0df0acb1b0> in <module>()
----> 1 comm= MPI.COMM_SELF.Spawn(sys.executable,args=['./test.py'],info=mpiinfo,maxprocs=1)
MPI/Comm.pyx in mpi4py.MPI.Intracomm.Spawn (src/mpi4py.MPI.c:113260)()
Exception: MPI_ERR_SPAWN: could not spawn processes
I wonder if my way of installing OpenMPI is wrong or how I can fix this.
Thanks
--
You received this message because you are subscribed to the Google Groups "mpi4py" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mpi4py+unsubscribe@googlegroups.com.
To post to this group, send email to mpi...@googlegroups.com.
Visit this group at https://groups.google.com/group/mpi4py.
To view this discussion on the web visit https://groups.google.com/d/msgid/mpi4py/15d23538-a705-4f9f-b430-3d451f319161%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to mpi4py+un...@googlegroups.com.