Stallo (Sigma2)
Table of Contents
Warning
Stallo was decommissioned in 2021. Documentation is maintained here in case it helps installation on Sigma2 HPC systems in production.
Getting an Account
SSH Configuration
Add the following lines to ~/.ssh/config on your local machine,
Host stallo stallo.uit.no
HostName stallo.uit.no
User YOURSTALLOUSERNAME
replacing <USERNAME> with your Stallo username (which should be your Sigma2 username). Then, you can ssh to Stallo with,
ssh stallo
Password-less SSH
You can setup public key authentication in order to avoid having to input your password all the time you log onto Stallo. You need an SSH public/private key pair on your local machine. If you do not have one, you can create one by executing the following command on your local machine (no passphrase necessary; press Enter at each prompt to accept the defaults),
localhost$ ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/Users/username/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /Users/username/.ssh/id_rsa.
Your public key has been saved in /Users/username/.ssh/id_rsa.pub.
Two files are created:
- your private key
/Users/username/.ssh/id_rsa, and - the public key
/Users/username/.ssh/id_rsa.pub.
The private key must be kept private and never shared — keep its file permissions restricted (600). The contents of the public key need to be copied to ~/.ssh/authorized_keys on the remote machine,
localhost$ scp ~/.ssh/id_rsa.pub username@remotehost:~
Now, log onto Stallo and add the content of id_rsa.pub to ~/.ssh/authorized_keys,
remotehost$ cat ~/id_rsa.pub >> ~/.ssh/authorized_keys
remotehost$ rm ~/id_rsa.pub
If you get an error message about /home/username/.ssh/authorized_keys: No such file or directory, you may need to create a .ssh directory first,
remotehost$ mkdir ~/.ssh
remotehost$ chmod 700 ~/.ssh
Environment
Note
We were asked to avoid loading modules in
~/.bashrcon Stallo.
On Stallo, add the following lines to ~/.bashrc,
export ISSM_DIR=<PATH_TO_ISSM>
replacing <PATH_TO_ISSM> with the path to the directory that you cloned the ISSM source code repository to (note that this should be a subdirectory of /cluster/work/users/<USERNAME>/). Then, run,
source ~/.bashrc
or log out and log back in to apply this change.
Installing ISSM on Stallo
Stallo will only be used to run the code: you will use your local machine for pre- and post-processing; you will never use Stallo’ Python.
Clone the ISSM source code repository on GitHub and install the following packages:
- m1qn3
Follow the detailed instructions for compiling ISSM on Linux, and use the following configuration script (adapt to your needs),
#!/bin/sh
# Load modules
module purge
module load CMake/3.8.0-GCCcore-6.3.0
module load Automake/1.15.1-GCCcore-6.3.0
module load libtool/2.4.6
#module load OpenSSL/1.1.0e-intel-2017a
module load PETSc/3.7.5-intel-2017a-downloaded-deps
# Configure ISSM
./configure \
--prefix="${ISSM_DIR}" \
--enable-development \
--with-wrappers=no \
--without-kriging \
--with-mpi-include="/global/hds/software/cpu/eb3/impi/2017.1.132-iccifort-2017.1.132-GCC-6.3.0-2.27/include64" \
--with-mpi-libflags="-L/global/hds/software/cpu/eb3/impi/2017.1.132-iccifort-2017.1.132-GCC-6.3.0-2.27/lib64 -lmpich -lmpichf90 -lmpichcxx -lmpl" \
--with-mkl-libflags="-L/global/hds/software/cpu/eb3/imkl/2017.1.132-iimpi-2017a/mkl/lib/intel64 -lmkl_scalapack_lp64 -lmkl_blacs_intelmpi_lp64 -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core -lmkl_scalapack_lp64 -lpthread" \
--with-petsc-dir="/global/hds/software/cpu/eb3/PETSc/3.7.5-intel-2017a-downloaded-deps" \
--with-metis-dir="/global/hds/software/cpu/eb3/PETSc/3.7.5-intel-2017a-downloaded-deps" \
--with-mumps-dir="/global/hds/software/cpu/eb3/PETSc/3.7.5-intel-2017a-downloaded-deps" \
--with-m1qn3-dir="${ISSM_DIR}/externalpackages/m1qn3/install" \
--with-hypre-dir="/global/hds/software/cpu/eb3/PETSc/3.7.5-intel-2017a-downloaded-deps"
You can then make your configuration file executable (if it is not already) and execute it to compile and install ISSM,
chmod +x configure.sh
./configure.sh
module purge
module load CMake/3.8.0-GCCcore-6.3.0
module load Automake/1.15.1-GCCcore-6.3.0
module load libtool/2.4.6
module load PETSc/3.7.5-intel-2017a-downloaded-deps
make install
Cluster Class Settings
In order to connect to Stallo from the machine that you are doing model setup and results analysis on, you will need to create a cluster class settings file for your chosen scripting interface.
Cluster class stallo.m still needs to be developed.
Create file $ISSM_DIR/src/py/stallo_settings.py, which might include,
def hexagon_settings(md):
md.cluster.login='<USERNAME>'
md.cluster.queue='normal'
md.cluster.codepath='<PATH_TO_ISSM_ON_CLUSTER>/bin/'
md.cluster.executionpath='<PATH_TO_ISSM_ON_CLUSTER>/execution/'
md.cluster.accountname='bjerknes'
md.cluster.numnodes=1
return md
replacing <USERNAME> with your Stallo username and entering your code path and execution path (<PATH_TO_ISSM_ON_CLUSTER> should be in /global/work/<USERNAME>/). These settings will be picked up automatically when you run md.cluster=stallo().