Mike -- You might want to make sure there's no clash of mpiexec/mpirun
executables between LAM and another flavor of MPI (MPICH for example).
The reason I am saying that is: mpiexec, for MPICH out of OSC, does not
take the -np switch thought MPICH's mpirun does. (I believe, though, that
MPICH has its own mpiexec or equivalent these days, though I've never
tried it)
Cheers, Arvind
On 2005-11-09 16:58 (-0500), Jeff Squyres had pondered:
> What version of LAM are you using? This does not cause a problem for
> me. For example:
>
> [16:57] eddie:~/mpi % cat hello.c
> #include <stdio.h>
> #include <mpi.h>
> #include <stdlib.h>
>
> int main(int argc, char **argv)
> {
> int rank = 0, size = 0;
> char hostname[BUFSIZ];
>
> MPI_Init(&argc, &argv);
> MPI_Comm_rank(MPI_COMM_WORLD, &rank);
> MPI_Comm_size(MPI_COMM_WORLD, &size);
> gethostname(hostname);
> printf("Hello, world! I am %d of %d (argv: %s)\n", rank, size,
> argv[1]);
>
> MPI_Finalize();
> return 0;
> }
> [16:57] eddie:~/mpi % mpicc hello.c -o hello
> [16:57] eddie:~/mpi % mpirun -np 2 hello hfoo
> Hello, world! I am 0 of 2 (argv: hfoo)
> Hello, world! I am 1 of 2 (argv: hfoo)
> [16:57] eddie:~/mpi % mpiexec -np 2 hello hfoo
> Hello, world! I am 1 of 2 (argv: hfoo)
> Hello, world! I am 0 of 2 (argv: hfoo)
>
>
>
>
> On Nov 9, 2005, at 12:47 PM, Michael Lees wrote:
>
> > Is there any reason why
> >
> > mpirun -np 1 appName arg1 arg2 arg3
> > works and
> >
> > mpiexec -np 1 appName arg1 arg2 arg3
> > does not?
> >
> > From the manual page any arguments after appName should be passed
> > transparently to mpirun?
> > Am I missing something? appName in the second case fails becuase it
> > receives no command line arguments?
> >
> > Cheers
> > --
> > Mike
> >
> >
> > This message has been checked for viruses but the contents of an
> > attachment
> > may still contain software viruses, which could damage your
> > computer system:
> > you are advised to perform your own checks. Email communications
> > with the
> > University of Nottingham may be monitored as permitted by UK
> > legislation.
> >
> > _______________________________________________
> > This list is archived at http://www.lam-mpi.org/MailArchives/lam/
> >
>
> _______________________________________________
> This list is archived at http://www.lam-mpi.org/MailArchives/lam/
>
_____________________________________________________________________
Arvind Gopu | High Performance Computing Group| (UITS-RAC-HPC) @ IU
HPC website: http://www.indiana.edu/~rac/hpc |
My website: http://cs.indiana.edu/~agopu |
|