[MPICH] Message passing between two programs on two machines without smpd
Yu-Cheng Chou
cycchou at ucdavis.edu
Wed Jun 20 00:55:26 CDT 2007
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