[mpich-discuss] I can not make MPI recognizes a dual core

Gus Correa gus at ldeo.columbia.edu
Fri May 21 12:26:10 CDT 2010


Hi

Even in a single core machine it should work (oversubscribing the 
processor), I suppose.

Did you ask for two processes/processors in your mpirun/mpiexec command?

mpiexec -np 2 my_program

"man mpiexec" is also a helpful source of information.


I hope it helps
Gus Correa

Yessica Brinkmann wrote:
> Hello. I am using MPICH2. I am writing my first program in MPI. I
> write the sentences:
> ...
> int id;
> MPI_Comm_rank (MPI_COMM_WORLD, & id);
> if (id == 0)
> / * Master task * /
> (
> ...
> )
> else
> / * Worker task * /
> (
> ...
> )
> And I write other sentences. The issue is that it does not recognize a
> DualCore processor, and takes the machine as it only has one
> processor, indeed, never enters the else.
> I would appreciate very much any help.
> Sincerely,
> Yessica Brinkmann
> _______________________________________________
> mpich-discuss mailing list
> mpich-discuss at mcs.anl.gov
> https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss



More information about the mpich-discuss mailing list