[MPICH] Re: [torqueusers] Run a wrapped command with MPI
Garrick Staples
garrick at clusterresources.com
Mon May 14 16:04:03 CDT 2007
On Mon, May 14, 2007 at 04:43:24PM -0300, Matias Alberto Gavinowich alleged:
> 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?
You need to pass the arguments from the MPI launcher.
#!/bin/sh
./cpi "$@"
More information about the mpich-discuss
mailing list