[MPICH] Message passing between two programs on two machines without smpd

Jayesh Krishna jayesh at mcs.anl.gov
Wed Jun 20 13:13:56 CDT 2007


 Hi,
  I had tried running cpi.exe (icpi.c - provided with the MPICH2
installation) which broadcasts the no of iterations from the root process to
other processes and it worked for me (after setting PMI env variables).
  Can you try running the program cpi.exe from the examples directory by
setting the PMI variables manually ?
  Let us know the results (along with the sample pgm that does'nt work).

Regards,
Jayesh

-----Original Message-----
From: owner-mpich-discuss at mcs.anl.gov
[mailto:owner-mpich-discuss at mcs.anl.gov] On Behalf Of Rajeev Thakur
Sent: Wednesday, June 20, 2007 12:34 PM
To: 'Yu-Cheng Chou'; mpich-discuss at mcs.anl.gov
Subject: RE: [MPICH] Message passing between two programs on two machines
without smpd

Can you send us a sample program that doesn't work?
 

> -----Original Message-----
> From: owner-mpich-discuss at mcs.anl.gov 
> [mailto:owner-mpich-discuss at mcs.anl.gov] On Behalf Of Yu-Cheng Chou
> Sent: Wednesday, June 20, 2007 12:55 AM
> To: mpich-discuss at mcs.anl.gov
> Subject: RE:[MPICH] Message passing between two programs on two 
> machines without smpd
> 
> 
> Hi,
> 
> My root program (first program) has MPI_Bcast() and this function 
> doesn't work, i.e., the value of a broadcasted variable does not 
> change in the second program.
> 
> Is it a normal situation that would occur when we run programs in this 
> way?
> How to fix this problem?
> 
> Thanks
>  
> > Yes, you can. This is what I do to run an MPI program on 
> > machine1.domain.com and machine2.domain.com without using
> mpiexec/smpd
> > (no PM),
> > 
> > ############ on machine1 ############### set 
> > PMI_ROOT_HOST=machine1.domain.com set PMI_ROOT_PORT=9222 set 
> > PMI_ROOT_LOCAL=1 set PMI_RANK=0 set PMI_SIZE=2 set PMI_KVS=mpich2
> > 
> > ########### on machine2 ############### set 
> > PMI_ROOT_HOST=machine1.domain.com set PMI_ROOT_PORT=9222 set 
> > PMI_ROOT_LOCAL=0 set PMI_RANK=1 set PMI_SIZE=2 set PMI_KVS=mpich2 
> > ########################################
> > 
> > Now run the programs on machine1 & machine2 from command line (like 
> > ordinary executables -- without using mpiexec).
> > Let us know the results.
> 
> 





More information about the mpich-discuss mailing list