[MPICH] Run a wrapped command with MPI

Ralph Butler rbutler at mtsu.edu
Mon May 14 16:09:34 CDT 2007


Make sure you are using the new mpich2 which prefers usage of mpiexec  
instead of mpirun.

I don't have process management systems, grids, etc.  But, on a  
fairly plain
vanilla linux cluster it works fine:

(bp400:65) % mpdtrace
bp400
bp401
(bp400:66) % cat tempsh
#!/bin/sh
/bin/hostname
(bp400:67) % mpiexec  -l -n 2 tempsh
0: bp400
1: bp401


On MonMay 14, at Mon May 14 2:43PM, Matias Alberto Gavinowich wrote:

> Hello:
>
> I am having the following problem.
>
> I can run a comand through mpi invoking:
>
> mpirun -np 2 ./cpi   (I am using my machines.LINUX default file).
>
> Two processes are started, as expected.
>
> Then, I write a wrapper script that looks like:
>
> #!/bin/sh
> ./cpi             (I also tried with a full path)
>
> and I run:
>
> mpirun -np 2 ./cpiwrapper
>
> Only one process is started in this case.
>
> The trick is I need it to work with a wrapper, because jobmanager-pbs
> from globus invokes it this way (with a wrapper script).
>
> AFAIK, I am running MPICH1.
>
> Has anyone come accross this?
>
> Thank you,
>
> Matt
>




More information about the mpich-discuss mailing list