Lamboot simply establishes a universe in which parallel jobs can
run. To get a MPI_COMM_WORLD of size greater than one, you need to
use mpirun or mpiexec. "./foo" will always launch a MPI_COMM_WORLD
size of 1 (known as a "singleton").
See the mpirun(1) man page for more details, and the LAM/MPI User's
Guide.
On Jul 26, 2007, at 2:33 PM, Deanna DiBernardi wrote:
> I am working on a Beowulf Computer Cluster and when I try and run
> programs that
> implement MPI, it states that the size is set to 1. (The size of my
> cluster is
> 4.) I lamboot all the nodes through a lam-bhost.def file and they boot
> successfully. I determined this by running MPI_Comm_size through
> Octave:
>
> octave:> [info size] = MPI_Comm_size(MPI_COMM_WORLD)
> info=0
> size=1
>
> Also, when I run the programs that implement MPI, they state that the
> number of
> processors is 1. Is there any way to manually set MPI_Comm_size, or
> is there
> something that I am doing wrong while lambooting the cluster?
> I am not "mpirun-ing" the programs either, I'm simply entering the
> directory and
> "./-ing" them. Should I be doing something different?
> Forgive me, I'm new! Thanks for the help!
> Deanna
> _______________________________________________
> This list is archived at http://www.lam-mpi.org/MailArchives/lam/
--
Jeff Squyres
Cisco Systems
|