[mpich-discuss] mpiexec -hosts option

Ralph Butler rbutler at mtsu.edu
Wed Aug 26 11:03:42 CDT 2009


To my recollection, the mpd version of mpiexec has never supported a - 
hosts option.
It does have a -host option which is somewhat different functionality  
than you seem
to try here.  I was not sure exactly what you were trying to run, but  
made a guess and
demo something like it below.  Note that I use the -machinefile  
option.  If I guessed
wrong, then there is probably another way to accomplish your goal.
--ralph

(b01:67)% cat tempmf
b01:16
b02:4
b03:4
(b01:68)% mpiexec -l -machinefile tempmf -n 24 /bin/hostname
1: b01
2: b01
4: b01
5: b01
7: b01
6: b01
9: b01
10: b01
12: b01
3: b01
13: b01
18: b02
17: b02
16: b02
8: b01
14: b01
15: b01
11: b01
20: b03
23: b03
19: b02
22: b03
21: b03
0: b01

On WedAug 26, at Wed Aug 26 10:35AM, Graeme Hilton wrote:

> Hi,
>
> I've got a cluster of three Linux machines; node01 node02 and node03.
>
> node01 has 8 CPUs while node02 and node03 have 4 CPUs each.
>
> I've got an mpd ring running with "mpdboot -n 3 -f /etc/mpd.hosts"  
> where the
> mpd.hosts file lists node02 and node03.
>
> I'd like to run the following command:
> mpiexec -hosts 16 node01 8 node02 4 node03 4 /bin/hostname
> and I get the following error:
> invalid "local" arg: -hosts
>
> According to the documentation I have (1.1.1p1) this is a valid  
> argument.
>
> Any hints?
>
> --
> Graeme Hilton
> R&D Engineer
>
> Tel: 023 8076 5596
> Schlumberger Sensa
> Gamma House, Enterprise Road, Southampton, SO16 7NS
>
> Registered Name: Sensor Highway Limited
> Registered Office: 8th Floor, South Quay Plaza 2, 183 Marsh Wall,  
> London.
> E14 9SH Registered in England and Wales No. 03148432
>
>
>



More information about the mpich-discuss mailing list