[mvapich-discuss] can't run mvapich MPI job in background

Sayantan Sur surs at cse.ohio-state.edu
Wed Apr 19 11:55:24 EDT 2006


Hello Benjamin,

Thanks for reporting this to the list. I gave backgrounding a shot, and
was able to successfully do it. I trivially added a sleep(10) in cpi.c
(a simple MPI test found in $MVAPICH/examples/basic). Here is what I got:

<---------------

[surs at nfs basic]$ ~/mvapich-0.9.7/bin/mpirun_rsh -np 2 node01 node02
./cpi &
[1] 27225
[surs at nfs basic]$ Process 0 of 2 on node01
Process 1 of 2 on node02

[surs at nfs basic]$ 
[surs at nfs basic]$ 
[surs at nfs basic]$ 
[surs at nfs basic]$ fg
~/mvapich-0.9.7/bin/mpirun_rsh -np 2 node01 node02 ./cpi
pi is approximately 3.1415926544231318, Error is 0.0000000008333387
wall clock time = 0.002203

--------------->

Note that the "Process 1 of 2" etc. print statements get executed before
the sleep and they are forwarded to the terminal. After a few seconds, I
foreground the process and the application completes.

>     [rutt at node23 test]$ mpirun_rsh -rsh -np 2 node23 node24 ./mpi-hello-world &
>     [1] 2257
>     [rutt at node23 test]$ 
>     [1]+  Stopped                 mpirun_rsh -rsh -np 2 node23 node24 ./mpi-hello-world

I am wondering why you get a message "Stopped"? Ideally, the process is
just backgrounded ... not stopped. Did you by chance hit Ctrl-Z on your
keyboard?

Thanks,
Sayantan.

-- 
http://www.cse.ohio-state.edu/~surs


More information about the mvapich-discuss mailing list