[MPICH] Message passing between two programs on two machines without smpd
Rajeev Thakur
thakur at mcs.anl.gov
Wed Jun 20 12:34:23 CDT 2007
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