[mpich-discuss] How to use MPI on two computers
Lu, Huiwei
huiweilu at mcs.anl.gov
Thu Apr 24 12:53:27 CDT 2014
A machinefile is just a txt file. You can create it use your editor.
If you use ‘ssh user at computername1’ and ‘ssh user at computername2' to connect your machines, the machinefile would be:
computername1
computername2
—
Huiwei
On Apr 24, 2014, at 9:07 AM, ehsan saei <ehsan.saei at gmail.com> wrote:
> 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
>
> _______________________________________________
> discuss mailing list discuss at mpich.org
> To manage subscription options or unsubscribe:
> https://lists.mpich.org/mailman/listinfo/discuss
More information about the discuss
mailing list