[mpich-discuss] How to use MPI on two computers

ehsan saei ehsan.saei at gmail.com
Thu Apr 24 09:07:30 CDT 2014


Thanks for your respond.
I have ssh connection. Now my question is how can I create this machine
file?
with hostnameA do you mean something like this: user at computername:"number
of proccess" ?


On Thu, Apr 24, 2014 at 3:19 PM, Lu, Huiwei <huiweilu at mcs.anl.gov> wrote:

> The easiest way of installing MPI on Ubuntu is by ‘sudo apt-get install
> mpich’.
> As long as these two machines can ssh to each other, MPI can be used to
> connect them.
> To use multiple machines, you need to create a machine file like:
>         //machinefile:
>         hostnameA
>         hostnameB
> Then if you run MPI using ‘mpiexec -f machinefile -n 2 ./example/cpi’, the
> application ‘cpi’ will run on both machines and communication through MPI.
>
> For more details, please refer to
> https://www.mpich.org/static/downloads/3.1/mpich-3.1-userguide.pdf for
> more information.
>
>> Huiwei Lu
> Postdoc Appointee
> Mathematics and Computer Science Division, Argonne National Laboratory
> http://www.mcs.anl.gov/~huiweilu/
>
> On Apr 24, 2014, at 7:39 AM, ehsan saei <ehsan.saei at gmail.com> wrote:
>
> > Dear community,
> >
> > I have to PCs with ubuntu 12.04 installed on them. How can I use MPI on
> these machines?
> > Is it possible to connect them without router?
> > It would be grateful if you guide me.
> >
> > Thanks in advance,
> > Ehsan
> > _______________________________________________
> > discuss mailing list     discuss at mpich.org
> > To manage subscription options or unsubscribe:
> > https://lists.mpich.org/mailman/listinfo/discuss
>
> _______________________________________________
> discuss mailing list     discuss at mpich.org
> To manage subscription options or unsubscribe:
> https://lists.mpich.org/mailman/listinfo/discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mpich.org/pipermail/discuss/attachments/20140424/3ed775f1/attachment.html>


More information about the discuss mailing list