Re: [Pympi-users] Problem running pyMPI with OpenMPI
Status: Alpha
Brought to you by:
patmiller
From: Luigi P. <lu...@la...> - 2006-07-18 08:48:09
|
> 2. It appears that your pympi build will actually run non-interactively, > though I suggest you confirm it by creating a non-trivial script, such > as the pi example and running it as a file: > > $ mpirun -np 3 pyMPI pi_test.py It seems to work: $ mpirun -np 3 pyMPI fractal.py Starting computation (groan) process 1 done with computation!! process 2 done with computation!! process 0 done with computation!! Header length is 54 BMP size is (400, 400) Data length is 480000 Pretty output image! For the time being I can test only one CPU, anyway 3 parallel processes started. > 3. If this runs with good output over all cpu's then the probable cause > is the build, you need to add --isatty to the configure, There is an > example of building on Solaris in the mailing list [2005] that discusses > this. Also there are new line config flags that need to be considered. Well, I've tried with these options: $ CC=mpicc; ./configure -prefix=<inst path> --with-includes=-I<mpi path>/include --with-isatty --with-prompt-nl but I get this error: mpicc -DHAVE_CONFIG_H -I. -I. -I. -I<mpi path>/include -I/usr/include/python2.4 -g -O2 -g -O2 -c `test -f 'pyMPI_isatty.c' || echo './'`pyMPI_isatty.c pyMPI_isatty.c:52: error: syntax error before '{' token make[1]: *** [pyMPI_isatty.o] Error 1 make[1]: Leaving directory `<src path>/pyMPI-2.4b4' make: *** [all] Error 2 > 4. If the above test doesn t work, you need to fall back to testing mpi > itself, using the examples in the mpi installation. pympi is effectively > an mpi program, so mpi itself must work for python to work. MPI itself works! Thank you. Luigi |