Changes between Initial Version and Version 1 of vilje


Ignore:
Timestamp:
09/28/16 02:28:55 (9 years ago)
Author:
bdef
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • vilje

    v1 v1  
     1== Getting an account ==
     2
     3First, you need to get an account from NOTUR, the webpage for you request is : https://www.metacenter.no/user/application/form/notur/.
     4
     5== ssh configuration ==
     6
     7You can add the following lines to `~/.ssh/config` on your local machine:
     8{{{
     9#!sh
     10Host vilje vilje.hpc.ntnu.no
     11    HostName vilje.hpc.ntnu.no
     12    User YOURVILJEUSERNAME
     13}}}
     14and replace `YOURVILJEUSERNAME` by your vilje username.
     15
     16Once this is done, you can ssh vilje by simply doing:
     17
     18{{{
     19#!sh
     20ssh vilje
     21}}}
     22
     23== Password-less ssh ==
     24
     25Once you have the account, you can setup a public key authentification in order to avoid having to input your password for each run.
     26You need to have a SSH public/private key pair. If you do not, you can create a SSH public/private key pair by typing the following command and following the prompts (no passphrase necessary):
     27{{{
     28#!sh
     29$your_localhost% ssh-keygen -t rsa
     30Generating public/private rsa key pair.
     31Enter file in which to save the key (/Users/username/.ssh/id_rsa):RETURN
     32Enter passphrase (empty for no passphrase):RETURN
     33Enter same passphrase again:RETURN
     34Your identification has been saved in /Users/username/.ssh/id_rsa.
     35Your public key has been saved in /Users/username/.ssh/id_rsa.pub.
     36}}}
     37
     38Two files were created: your private key `/Users/username/.ssh/id_rsa`, and the public key `/Users/username/.ssh/id_rsa.pub`. The private key is read-only and only for you, it is used to decrypt all correspondence encrypted with the public key. The contents of the public key need to be copied to `~/.ssh/authorized_keys` on your vilje account:
     39
     40{{{
     41#!sh
     42$your_localhost%scp ~/.ssh/id_rsa.pub username@your_remosthost:~
     43}}}
     44
     45Now on '''Vilje''', copy the content of id_rsa.pub:
     46
     47{{{
     48#!sh
     49$your_remosthost%cat ~/id_rsa.pub >> ~/.ssh/authorized_keys
     50$your_remosthost%rm ~/id_rsa.pub
     51}}}
     52
     53== Environment ==
     54
     55On Vilje, add the following lines to `~/.bashrc`:
     56{{{
     57#!sh
     58export ISSM_DIR=PATHTOTRUNK
     59#
     60module load intelcomp/13.0.1 mpt/2.06 petsc/3.4.1d
     61module load parmetis/4.0.2 mumps/4.10.0
     62module load automake
     63}}}
     64
     65''Log out and log back in'' to apply this change.
     66
     67== Installing ISSM on Vilje ==
     68
     69You can check out ISSM and install m1qn3. This is the only package we will install, the module loaded from your bashrc are taking care of the rest.
     70
     71Use the following configuration script (adapt to your needs):
     72
     73{{{
     74#!/bin/sh                                                                                                                                                       
     75./configure \
     76    --prefix=$ISSM_DIR \
     77    --without-kriging \
     78    --with-wrappers=no \
     79    --with-petsc-dir="/sw/sdev/Modules/petsc/petsc-3.4.1" \
     80    --with-mpi-include="/sw/sgi/mpt/mpt-2.06/include/"  \
     81    --with-mpi-libflags="-L/sw/sgi/mpt/mpt-2.06/lib -lmpi -lmpi++" \
     82    --with-metis-dir="/sw/sdev/Modules/parmetis/parmetis-4.0.2/include" \
     83    --with-mumps-dir="/sw/sdev/Modules/mumps/mumps-4.10.0" \
     84    --with-cxxoptflags="-O2 -xAVX" \
     85    --with-m1qn3-dir="$ISSM_DIR/externalpackages/m1qn3/install" \
     86    --enable-development
     87}}}
     88
     89== hexagon_settings.m ==
     90
     91TO BE DONE function of hexagon.py