>>
>
> As far as I know, MPI does not officially give you this service
> since MPI
> standard deliberately interpose a deep abstraction layer between
> the application
> and the hardware it is running on. Said that, if you really need
> this host list,
> you can do some tricks like launching "lamnodes" command and
> capturing the
> output, using some environmental variables from your batch
> scheduler which may
> contain this information (both non portable), or, probably the most
> portable
> way, using the gethostname system call on every MPI process and
> collect the
> values with a proper MPI statement.
> Hope it helps, Davide
>
I was thinking about this last solution, but my MPI processes aren't
working on every nodes (I often boot MPI on 200+ processors and
launch 64 processes). I need the name of the different hosts to
dynamically launch processes on the free nodes. Anyway on the worst
case I would give the bhost file as a parameter for my app.
Thanks for your quick reply,
FX
------------------------------
François-Xavier Payet
Équipe PARIS
IRISA-INRIA, Campus de Beaulieu, 35042 Rennes cedex, France
Tél: +33 (0) 2 99 84 71 00, Fax: +33 (0) 2 99 84 71 71
|