[MPICH] DHCP assigned IP addresses and hostnames?

Steve Kargl sgk at troutmask.apl.washington.edu
Thu Nov 16 15:04:42 CST 2006


On Thu, Nov 16, 2006 at 02:32:35PM -0600, Ralph Butler wrote:
> On ThuNov 16, at Thu Nov 16 1:32PM, Steve Kargl wrote:
> >I've set up mpich2 on a colleagues duo-core opteron laptop
> >so that he can do some development before moving to the
> >cluster.  His laptop gets an IP address assigned by DHCP
> >and his hostname is not a fully qualified domain name.
> >
> >I can tell him to update mpd.hosts with the current IP
> >address upon each reboot, but I haven't found a way to
> >get around this:
> >
> >alien-mobile:fcurra[203] mpdboot
> >mpdboot_alien-mobile.apl.washington.edu (handle_mpd_output 388):  
> >from mpd on alien-mobile.apl.washington.edu, invalid port info:
> >mpd failed: gethostbyname_ex failed for alien- 
> >mobile.apl.washington.edu
> >
> >Is there some way to tell MPICH2 to use localhost and the 127.0.0.1
> >address?
> >
>
> I believe the following demos what you want.
> --ralph
> 
> (rmbmac:78) % mpd --ifhn=127.0.0.1 &
> [1] 26620
> (rmbmac:79) % mpdtrace  -l
> rmbmac.cs.mtsu.edu_52052 (127.0.0.1)
> (rmbmac:80) % mpiexec  -n 1 hostname
> rmbmac.cs.mtsu.edu

Thanks!  I thought I had tried explicit use of the 127.0.0.1
address, but apparently I missed this.

-- 
Steve




More information about the mpich-discuss mailing list