Re: [OMPI users] Using openmpi within python and crashes

2009-07-10 Thread Lisandro Dalcin
What Python version are you using? I would use 'ctypes' modules (available in recent Python's stdlib) in order do open the MPI shared library, next call MPI_Init() from Python code... Of couse, I'm assuming you Fortran code can manage the case of MPI being initialized (by using MPI_Initialized()).

[OMPI users] Using openmpi within python and crashes

2009-07-09 Thread John R. Cary
Our scenario is that we are running python, then importing a module written in Fortran. We run via: mpiexec -n 8 -x PYTHONPATH -x SIDL_DLL_PATH python tokHsmNP8.py where the script calls into Fortran to call MPI_Init. On 8 procs (but not one) we get hangs in the code (on some machines but not