Re: [Pympi-users] softload_setup.py file
Status: Alpha
Brought to you by:
patmiller
From: Pat M. <pat...@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=. make all-am 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 running install_lib copying build/lib.linux-i686-2.4/mpi.so -> . % % # Invoke normal, sequential python % 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 >>> mpi.size 1 >>> % mpirun -np 3 python -c 'import mpi; print mpi.rank' 0 1 2 % -- 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. -- Plato |