[mpich-discuss] mpiexec (hydra) can't run in the background

Manhui Wang wangm9 at cardiff.ac.uk
Fri Oct 29 09:51:21 CDT 2010


I have seen a problem with mpiexec when running a simple hello_world
(see attached hello_world_wait.c) program in the background. The
background job stops after typing any command:
~/testprogram> mpicc hello_world_wait.c -o hello
~/testprogram> mpiexec -np 2 ./hello >output.log &
[1] 19958
~/testprogram> echo hello

[1]+  Stopped                 mpiexec -np 2 ./hello > output.log

It works fine if I run it with </dev/null

mpiexec -np 2 ./hello >output.log </dev/null &

I am using the latest version (MPICH2 1.3), and the hydra is the default
process manage. The problem can be reproduce with mpiexec.hydra for
mpich2 1.2.1p1.

I saw there was a bug report about this
,but now it has been closed/fixed.

Any help would be appreciated.


Manhui  Wang
School of Chemistry, Cardiff University,
Main Building, Park Place,
Cardiff CF10 3AT, UK
Telephone: +44 (0)29208 76637
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hello_world_wait.c
Type: text/x-c++src
Size: 729 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/mpich-discuss/attachments/20101029/09e1800c/attachment.cc>

More information about the mpich-discuss mailing list