List Info

Thread: LAM: mpirun with fork/exec




LAM: mpirun with fork/exec
user name
2006-06-08 03:06:57
On Jun 7, 2006, at 5:41 PM, Pedro Bastos wrote:

> I am wasting a precious time trying to
"mpirun" my program from  
> another
> process (using fork and exec*)  I have a
daemon to configure the MPI
> program by creating a parameter file. Then the daemon
calls the MPI  
> program.
>
> The deal is that nothing happens. No error message,
nothing. Using  
> shell the
> program runs smoothly.
>
> What am I missing? Is there a better solution?

I haven't tried directly calling fork/exec to start mpirun
in a  
while, but it should work just fine (after all, that's
basically at  
the heart of what the shell does to start mpirun).  Are you
sure  
mpirun is starting?  Are you doing anything special with the
file  
descriptors (so that error messages might get lost?).  I
would  
recommend double checking that mpirun is starting properly,
then try  
to follow where mpirun hangs or dies.  That should help in
figuring  
out where your application is failing.

Brian

-- 
   Brian Barrett
   LAM/MPI developer and all around nice guy
   Have a LAM/MPI day: http://www.lam-mpi.org/


_______________________________________________
This list is archived at http://www.l
am-mpi.org/MailArchives/lam/
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )