[mpich-discuss] MPI_Comm_size

Pavan Balaji balaji at mcs.anl.gov
Mon Jul 6 13:59:54 CDT 2009


Can you run examples/cpi or examples/f77/fpi?

I just want to make sure you are not running into this problem: 
http://wiki.mcs.anl.gov/mpich2/index.php/Frequently_Asked_Questions#Q:_All_my_processes_get_rank_0.

  -- Pavan

On 07/06/2009 01:55 PM, xiao zhang wrote:
> HI~ Everyone: i have a little doubt about the funtion:
> MPI_Comm_size
> If I call it like:
> 
> include 'mpif.h'
> integer :: ierr
> call MPI_Init(ierr)
> call MPI_Comm_size(MPI_COMM_WORLD,*mgroupsize*,ierr)
> 
> Then I use 8 processors to run the program, the return value of 
> *mgroupsize *should be 8. Is that right?
> If it is right, the return value for me is just 1.   What would be the 
> possible problem?
>  
>  I am really new to this and thank you very much
>                                    Xia

-- 
Pavan Balaji
http://www.mcs.anl.gov/~balaji


More information about the mpich-discuss mailing list