RE: [Pympi-users] Idle as the console/ idlelib.PyShell.ModifiedInterpreter
Status: Alpha
Brought to you by:
patmiller
From: Julian C. <rjc...@cs...> - 2005-08-18 17:23:45
|
Hi Pat I re-built pyMPI from cvs and was able to re-produce your test. For instance, see following test: Python 2.4 (pyMPI 2.1b4) on sunos5 Type "copyright", "credits" or "license()" for more information. ... IDLE 1.1 ==== No Subprocess ==== >>> import mpi >>> jump = mpi.rank * 25000 >>> mpi.synchronizedWrite( mpi.rank,jump,"\n" ) 0 0 1 25000 >>> It WILL freeze if you don't use '-n' in the command line though i.e. % mpirun -np 4 pyMPI -i pyMPI_idle.py -n HOWEVER If I load and run a script from within Idle: 1. This statement calc's to zero because mpi.rank appears to not return a number: jump = TotalSteps * (mpi.rank + offset) 2. This statement causes a perma-freeze, until I kill everything: mpi.synchronizedWrite( mpi.rank,jump,"\n" ) (At this point the master process (mpi.rank = 0) is stuck in recv_message() ) Both statements appeared to work when I ran them interactively regards Julian Cook |