[mpich-discuss] MPI_Comm_size

xiao zhang littledddna at gmail.com
Mon Jul 6 13:55:28 CDT 2009


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/mpich-discuss/attachments/20090706/c161d92f/attachment.htm>


More information about the mpich-discuss mailing list