[petsc-users] installation on cloud platform
Tabrez Ali
stali at geology.wisc.edu
Mon Jan 4 14:33:15 CST 2016
Its just the hostname. Without it mpiexec was hanging for n>1. Might not
be an issue with non Debian AMIs (I didn't try).
Tabrez
On 01/04/2016 02:07 PM, 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