It depends on how you launch your program. Did you use "mpirun"?
Check out the mpirun man page for instructions and examples on how to
use mpirun.
If you just ran your program in serial (e.g., "./hello"), it is likely
that MPI_Comm_size will report only 1 process in MPI_COMM_WORLD.
On Oct 11, 2004, at 1:40 AM, Carine Castillon wrote:
> Hello,
>
> I am beginner in mpi programming and I have a question about
> mpi_comm_size.
> I am writing my first mpi program, the famous "Hello World", but when I
> execute it on a bi-processor, mpi_comm_size displays only one
> processor.
>
> Here is the programming line of mpi_size_comm :
> MPI_Comm_size(MPI_COMM_WORLD, &p);
>
> Can you tell me why mpi_comm_size doesn't display two processors ?
>
> thanks in advance ofr your answer.
>
> Have a good day,
>
> Carine.
>
>
>
> _______________________________________________
> This list is archived at http://www.lam-mpi.org/MailArchives/lam/
>
--
{+} Jeff Squyres
{+} jsquyres_at_[hidden]
{+} http://www.lam-mpi.org/
|