[mpich-discuss] MPICH2 and TORQUE/PBS integration

Camilo Rostoker rostoker at gmail.com
Fri Jul 23 18:22:49 CDT 2010


Hi Ivan,

We did a similar setup not that long ago.   We couldn't find an easy way to
start MPD with the nodes allocated by PBS/Torque, so we had to manually
parse the PBS_NODEFILE

The following is the command we used in our shell script to convert the
PBS_NODEFILE into the MPICH machinefile format.

sort $PBS_NODEFILE | uniq -c | awk '{print $2,$1}' | tr ' ' ':'  > mpd.hosts

So assuming you get 5 nodes allocated in the PBS_NODEFILE:
node1
node1
node2
node2
node3


The command above will create mpd.hosts with the following:
node1:2
node2:2
node3:1



Hope that helps,

Camilo




On Fri, Jul 23, 2010 at 4:15 PM, Ivan Pulido <mefistofeles87 at gmail.com>wrote:

> Hello, I'm trying to configure torque resource manager and MPICH2 (with
> MPD) but Im having some issues.
>
> The MPICH2 user's guide says there's a way to convert the Torque node file
> to one MPD can read, but this is outdated since the syntax used by torque
> nowadays is not the one mentioned on MPICH2 user's guide, so I can't use
> what's there to use Torque with MPICH2. On the other hand, I tried using OSC
> mpiexec http://www.osc.edu/~djohnson/mpiexec/<http://www.osc.edu/%7Edjohnson/mpiexec/>with no good results since it's looking for a libpbs.a that's not part of
> Torque default install (this is for torque's mailling list).
>
> So, what I'm trying to tell is that the ways the user's guide advice to use
> MPICH2 with torque functionality are not correct with newest versions of the
> software involved. So I'd like to know if there's a way to use MPICH2 with
> torque functionality that really works with newest versions, I'd really like
> a help with this since we need using MPI in our cluster urgently.
>
> Thanks.
>
> --
> Ivan Pulido
> Estudiante de Física
> Universidad Nacional de Colombia
>
> _______________________________________________
> mpich-discuss mailing list
> mpich-discuss at mcs.anl.gov
> https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/mpich-discuss/attachments/20100723/fb055031/attachment.htm>


More information about the mpich-discuss mailing list