Newsgroups: comp.parallel.mpi
From: Nick Nevin <nevin@osc.edu>
Subject: Re: Interactive Programs in LAM
Organization: Ohio Supercomputer Center
Date: 03 Aug 1996 10:25:17 -0400
Message-ID: <vn2zq4cilyq.fsf@alex.osc.edu>


     > I'm trying to get interactive input in my LAM application, but when I
     > start it with mpirun, another system prompt immediatly appears, and then
     > when my program prompts me for input, each character either is caught by
     > the system and echoed to the screen, or caught by my program and not
     > echoed to the screen.  Which gets each character seems to be totally
     > random.  I am running lamboot and mpirun on node 0, which is also the
     > node which is expecting the input.  This is on a network of Sun Sparcs
     > all running Solaris 2.4, with LAM 6.0 and all 15 patches.  

     > Any suggestions would be welcome.

Use the -w switch to mpirun. This makes mpirun wait for the MPI
application it starts to terminate. What you are seeing is mpirun
terminating immediately after starting the application and now the
application and the shell are competing for input.

---nick.

-=-
Nick Nevin				nevin@osc.edu
Ohio Supercomputer Center		http://www.osc.edu/lam.html

