RE: [Pympi-users] Idle as the console/ TCP locked down, so IDLE loopback doesn't work
Status: Alpha
Brought to you by:
patmiller
From: Julian C. <rjc...@cs...> - 2005-08-18 20:33:04
|
Hi Pat, I tried it: Idle seems to work, but it appears that there is no communication with the sub-process. I made it hang by doing following: >>> import mpi >>> mpi.size 2 >>> r = mpi.rank * 2 >>> mpi.reduce(r, mpi.SUM) Looking at the stack for the master process yields following: (i.e. it seems to be waiting for a reply, but nothing was ever sent, so I can t be sure that the child even exec'd any of the statements) 12626: /home/jcook/python/Python-2.4/bin/pyMPI -i pyMPI_idle.py -n -p4pg /iro ----------------- lwp# 1 / thread# 1 -------------------- fef9d5fc poll (ffbe7030, 1, 2328) fef4d534 select (6, 0, 0, ffbe7038, fefbf1bc, ffbe7030) + 348 feddaa28 select (1, 2aa908, 0, ffffffff, 0, 613968) + 34 001721ec recv_message (2c8938, 2c7ee0, 1, ffffffff, 357d38, 357dc1) + 2c 00171f58 p4_recv (2c8938, 2c7ee0, ffbe72d8, 2c9138, ffbe72ec, 3bc528) + 78 00179aa8 MPID_CH_Check_incoming (2cc4d0, 1, 200, 1, 3db, 4) + 348 00161c44 MPID_RecvComplete (ffbeb408, ffbebb94, ffbeb500, 35bf58, 1, 3db) + 124 00163fe8 MPID_RecvDatatype (3be268, ffbebbb0, 1, 35bf58, 1, 3db) + 88 001190f0 MPI_Recv (ffbebbb0, 1, 87, 1, 3db, 85) + 2d8 00064b10 pyMPI_recv (387920, 1, 3db, 0, 0, 0) + 1d8 00059db8 pyMPI_collective (387920, 0, 3a2fec, 0, 0, 613968) + 290 0005c270 reduction (ffbebf08, 613968, 0, 0, 0, 0) + 500 0005d7b8 pyMPI_collective_reduce (387920, 613968, 0, 5d788, 3d6c60, 4a2658) + 30 000c3cfc call_function (613968, 35f268, 0, 3d6c60, ffbec08c, 43aaec) + 3b8 000c0d10 PyEval_EvalFrame (bd20c, 26f0fc, 26f0f0, 253c54, 35f268, 0) + 38c8 000c2304 PyEval_EvalCodeEx (0, 378a50, 0, 0, 0, 0) + 9f8 000bd1d4 PyEval_EvalCode (69b3a0, 378a50, 378a50, 1, 0, 2582d4) + 28 000c55c4 exec_statement (2557d8, 69b3a0, 378a50, 0, 4396e0, 378a50) + 29c ....everything before this removed..I can send the whole thing if you want it. FYI: See my email from yesterday - check if you can switch off loopback with '-n' i.e. % mpirun -np 2 ./pyMPI -i pyMPI_idle.py -n in PyShell.py -n is documented as "run IDLE without a subprocess" -----Original Message----- From: pym...@li... [mailto:pym...@li...]On Behalf Of Pat Miller Sent: Wednesday, August 17, 2005 12:47 PM To: rjc...@cs...; pym...@li... Subject: Re: [Pympi-users] Idle as the console Perhaps % mpirun -np 2 ./pyMPI -i pyMPI_idle.py ..snip.. |