Can someone explain what this file does. It looks like it's related to the
soft load feature i.e. starting python instead or pympi. But then there is
also pyMPI_softload.c. Can someone explain how this feature works and how to
build it, since it did not get created during the build process.
From: Pat Miller <patmiller@ll...> - 2005-03-07 16:11:32
The softload stuff is not built by default because it is hard to
make it work uniformily across OS's and MPI architectures. So,
if you want it, you have to build it in a separate step. I
don't consider this feature "working" as yet. I need to update
the pyMPI_linker to fix some compiler issues. In theory, it should
work like this.
% python softload_setup.py install --install-lib=.
building 'mpi' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -I/home/pjmiller/pub/Linux/include/python2.4 -c pyMPI_softload.c -o build/temp.linux-i686-2.4/pyMPI_softload.o
gcc -pthread -shared build/temp.linux-i686-2.4/pyMPI_softload.o -L/home/pjmiller/sourceforge/pyMPI -lpyMPI -o build/lib.linux-i686-2.4/mpi.so
copying build/lib.linux-i686-2.4/mpi.so -> .
% # Invoke normal, sequential python
Python 2.4 (#1, Dec 1 2004, 08:43:03)
[GCC 3.2.3 20030502 (Red Hat Linux 3.2.3-42)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import mpi
% mpirun -np 3 python -c 'import mpi; print mpi.rank'
Pat Miller | (925) 423-0309 | http://www.llnl.gov/CASC/people/pmiller
Access to power must be confined to those who are not in love with it.