<DIV>
<P>Hello:</P>
<P> Now my problem changes to the following:</P>
<P> I use the function MPI_Comm_rank anf MPI_Comm_sizeĦ£but the reslut is</P>
<P> node1:/usr/cluster # mpiexec -n 2 ./d<BR> HELLOWORLD!process0 of 1 on node1<BR> HELLOWORLD!process0 of 1 on node2</P>
<P> The problem is it should show process0 of 2 on node1 and process 1 of 2 on node2</P>
<P> So,please help me.</P>
<P>The code is the following, so I want to know why like this:</P>
<P>#include <stdio.h><BR>#include "mpi.h"</P>
<P>int main(int argc,char **argv)<BR>{<BR> int myid,numprocs;<BR> int namelen;<BR> char processor_name[MPI_MAX_PROCESSOR_NAME];<BR> MPI_Init(&argc,&argv);<BR> <BR> MPI_Comm_rank(MPI_COMM_WORLD,&myid);<BR> MPI_Comm_size(MPI_COMM_WORLD,&numprocs);<BR> MPI_Get_processor_name(processor_name,&namelen);<BR> printf("HELLOWORLD!process%d of %d on %s\n",myid,numprocs,processor_name);<BR> MPI_Finalize();<BR>return 0;<BR>}</P>
<P> Thank you!</P>
<P> Gugu</P><BR><BR></DIV>
<P><BR><BR><SPAN title="neteasefooter"></SPAN><BR><BR> </P><br><br><span title="neteasefooter"/></span>