[MPICH] How to use mutliple interfaces in Windows?

David Ashton ashton at mcs.anl.gov
Mon Jun 27 13:46:37 CDT 2005


There are several ways to specify specific host names or ip addresses under
Windows:

 

1)       Use the MPICH_NETMASK environment variable

a.       Assign ip addresses to your NICs so that each set of cards is in
its own ip address subnet.  For example, if we have a dual NIC cluster with
100Mb cards and 1000Mb cards we could assign ip addresses for the 100Mb
cards like this: 140.221.10.1, 140.221.10.2, . and for the 1000Mb cards like
this: 140.221.11.1, 140.221.11.2, .  The 100Mb cards would be on the
140.221.10 subnet while the 1000Mb cards would be on the 140.221.11 subnet.
Then we could run jobs on either subnet like this: mpiexec -env
MPICH_NETMASK 140.221.10.0/24 -n 4 app or like this: mpiexec -env
MPICH_NETMASK 140.221.11.0/24 -n 4 app.

2)       Use the MPICH_INTERFACE_HOSTNAME environment variable

a.       Run jobs specifying the host name to use for each host like this:
mpiexec -env MPICH_INTERFACE_HOSTNAME 140.221.10.1 -host a -n 1 app : -env
MPICH_INTERFACE_HOSTNAME 140.221.10.2 -host b -n 1 app : -env
MPICH_INTERFACE_HOSTNAME 140.221.10.3 -host c -n 1 app .

3)       Use the -ifhn option to the machine file

a.       Create a machine file with lines like this: hostA -ifhn
140.221.10.1.  Then run the job like this: mpiexec -machinefile foo -n 4 app

 

Assigning host names to ip addresses is the job of the DNS server, not the
local host.  You can set up your DNS server to return 140.221.10.1 for hostA
or hostA-mb and 140.221.11.1 for hostA-gig.

 

-David Ashton

 

  _____  

From: owner-mpich-discuss at mcs.anl.gov
[mailto:owner-mpich-discuss at mcs.anl.gov] On Behalf Of David Minor
Sent: Monday, June 27, 2005 6:36 AM
To: 'mpich-discuss at mcs.anl.gov'
Subject: [MPICH] How to use mutliple interfaces in Windows?

 

Windows does not allow assigning different host names to different
interfaces, how can I tell MPI to use a specific interface?

David 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/mpich-discuss/attachments/20050627/da554cf9/attachment.htm>


More information about the mpich-discuss mailing list