[petsc-users] installation on cloud platform

Satish Balay balay at mcs.anl.gov
Mon Jan 4 14:29:11 CST 2016


Are you interested in using 1 node [with multiple cores] - or multiple
nodes - aka cluster on amazon?

For a single node - I don't think any additional config should be
necesary [/etc/hosts - or ssh keys]. It should be same as any laptop
config.

Its possible that 'hostname' is not setup properly on amazon nodes - and
MPICH misbehaves.  In this case - you might need any entry to
/etc/hosts. Perhaps something like:

echo 127.0.0.1 `hostname` >> /etc/hosts

If cluster - then there might be a tutorial to setup a proper cluster with AWS. Googles gives
http://cs.smith.edu/dftwiki/index.php/Tutorial:_Create_an_MPI_Cluster_on_the_Amazon_Elastic_Cloud_%28EC2%29

BTW: --download-mpich is a convient way to install MPI. [we default to
device=ch3:sock]. But you might want to figureout if there is a better
performing MPI for the amazon config.  [perhaps mpich with nemesis
works well. Or perhaps openmpi. Both are available prebuit on
ubunutu...]

Satish

On Mon, 4 Jan 2016, Marco Zocca wrote:

> Hello Tabrez,
> 
>   thank you for the walkthrough; I'll give it a try as soon as possible.
> 
> My main doubt was indeed regarding the host resolution and security;
> 
> what does the special hostfile line do? What about that "ip-x-x-x-x"
> construct?
> 
> Thank you and kindest regards,
> 
> Marco
> 
> 
> 
> 
> >
> > Or you can install everything yourself.
> >
> > On vanilla Debian based AMIs (e.g., Ubuntu 14.04 LTS) just make sure to
> > add "127.0.1.1 ip-x-x-x-x" to your /etc/hosts followed by
> >
> > $ cd
> > $ ssh-keygen -t rsa
> > $ cat .ssh/id_rsa.pub  >> .ssh/authorized_keys
> >
> > After that the usual stuff, e.g.,
> >
> > $ sudo apt-get update
> > $ sudo apt-get upgrade
> > $ sudo apt-get install gcc gfortran g++ cmake wget
> > $ wget http://ftp.mcs.anl.gov/pub/petsc/release-snapshots/petsc-3.6.3.tar.gz
> > $ ./configure --with-cc=gcc --with-fc=gfortran --download-mpich
> > --download-fblaslapack --with-metis=1 --download-metis=1 --with-debugging=0
> > $ export PETSC_DIR=/home/ubuntu/petsc-3.6.3
> > $ export PETSC_ARCH=arch-linux2-c-opt
> > $ make all
> > $ export PATH=$PATH:$PETSC_DIR/$PETSC_ARCH/bin
> >
> > Tabrez
> >
> >
> > On 01/03/2016 07:07 AM, Matthew Knepley wrote:
> >> On Sun, Jan 3, 2016 at 5:59 AM, Marco Zocca <zocca.marco at gmail.com
> >> <mailto:zocca.marco at gmail.com>> wrote:
> >>
> >>     Dear all,
> >>
> >>       has anyone here tried/managed to install PETSc on e.g. Amazon AWS or
> >>     the Google Compute Engine?
> >>
> >>     I believe some extra components are needed for coordination, e.g.
> >>     Kubernetes or Mesos (in turn requiring that the library be compiled
> >>     within some sort of container, e.g. Docker), but I'm a bit lost amid
> >>     all the options.
> >>
> 
> >>
> 



More information about the petsc-users mailing list