Hi Murtaza,

One thing you could do is to not run the program in the background (by 
removing the & at the end).

Another option, if you want to run in the background, is to redirect 
stdin from /dev/null by adding this to the end of your program 
invokation:

    < /dev/null &


Here's an explanation of why:

  Running an MPI job in the background is supported only when stdin is
  redirected.

  The mpirun process is still connected to the tty when a job is placed
  in the background.  One of the things that mpirun polls for is input
  from stdin.  If it happens to be polling for stdin when a user types in
  a window after putting an MPI job in the background, and stdin has not
  been redirected, the job will abort upon receiving a SIGTTIN signal.
  This behavior is intermittent, depending on whether mpirun happens to
  be looking for and sees any stdin input.

  The following examples show how to run an MPI job in the background.

  For a job that uses input_file as stdin:

    mpirun -np 2 ./a.out < input_file > output &

  For a job that does not use stdin:

    mpirun -np 2 ./a.out < /dev/null  > output &


from here:
http://mrbayes.csit.fsu.edu/wiki/index.php/FAQ#How_do_I_run_MrBayes_MPI_.28parallel.29_version_in_the_background_on_an_SGI_machine.3F


Best,
Matt




On Thu, 8 May 2008, Murtaza Askari wrote:

> Hi All,
>
>   I am really new to MEEP and Linux. When I generate the band structure
> using parallel meep and gather the frequencies I see the following
> printed over and over again in my output file and it corrupts the list
> of frequencies for some of the k points.
>
> "mpiexec_beast (handle_stdin_input 1067): stdin problem; if pgm is run in
> background, redirect from /dev/null"
>
> How do I get rid of it?
>
> best regards
> Murtaza Askari
> PhD Candidate
> Photonics Research Group
> School of ECE
> Georgia Institute of Technology
>
>
>
> _______________________________________________
> meep-discuss mailing list
> [email protected]
> http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss
>

_______________________________________________
meep-discuss mailing list
[email protected]
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss

Reply via email to