Hola Jairo...
I haven't build pyMPI with MPICH2 though I had expected that it would
work. I have a parallel Fedora machine at home so I can try this over
the weekend and let you know if I can repeat your results.
Cheers,
Pat
On 12/1/06, Jairo Serrano <jai...@gm...> wrote:
> Good Morning !
>
> I dont know if is possible use pyMPI with MPICH2, but i have a problem:
>
> [root@I202-05 mpich2-1.0.4p1]# mpiexec -n 3 pyMPI helloworld.py
> I202-05 send the message
>
> and there are no more answers !!!
>
>
> The machines are Fedora Core 5 on DELL Dimension 3000, 3 CPU's identical:
>
> [root@I202-05 mpich2-1.0.4p1]# uname -a
> Linux I202-05 2.6.15-1.2054_FC5 #1 Tue Mar 14 15:48:33 EST 2006 i686 i686
> i386 GNU/Linux
>
> pyMPI-2.4b2 and MPICH 2 1.0.4p1 is installed :
>
> [root@I202-05 mpich2-1.0.4p1]# which mpiexec
> /usr/local/bin/mpiexec
> [root@I202-05 mpich2-1.0.4p1]# which mpicc
> /usr/local/bin/mpicc
> [root@I202-05 mpich2-1.0.4p1 ]# which mpd
> /usr/local/bin/mpd
> [root@I202-05 mpich2-1.0.4p1]# which mpirun
> /usr/local/bin/mpirun
> [root@I202-05 mpich2-1.0.4p1]# which pyMPI
> /usr/bin/pyMPI
>
> Then I got up the mpd daemon:
> [root@I202-05 mpich2-1.0.4p1]# mpdboot -n 3
> [root@I202-05 mpich2-1.0.4p1]#
>
> i ran mpdtrace and cpi:
> [root@I202-05 mpich2-1.0.4p1]# mpdtrace
> I202-05
> I202-01
> I202-04
> [root@I202-05 mpich2-1.0.4p1]# mpiexec -n 3 examples/cpi
> Process 0 of 3 is on I202-05
> Process 1 of 3 is on I202-01
> Process 2 of 3 is on I202-04
> pi is approximately 3.1415926544231323, Error is 0.0000000008333392
> wall clock time = 0.003288
>
> My python program helloworld.py:
> -----------------------------------------------
> 1 import mpi
> 2 from socket import gethostname;
> 3
> 4 if mpi.rank==0:
> 5 print 'message sent by', gethostname()
> 6 mens='i am the process'
> 7 for i in range(mpi.size):
> 8 mpi.send(mens,i);
> 9
> 10 else:
> 11 msg,status=mpi.recv()
> 12 print msg, mpi.rank,' of ',mpi.size
> 13 print 'message received by', gethostname()
> -----------------------------------------------
>
>
> I hope that you could help me !!! thanks a lot !!!
> --
> jDSL
> Bucaramanga, Colombia
> UIS Rugby Club (c) 2006
> SCALAR - EISI - UIS
>
|