Fram (Norway’ Sigma2)

Table of Contents

  1. Getting an Account
  2. SSH Configuration
    1. Password-less SSH
  3. Environment
  4. Installing ISSM on Fram
  5. Cluster Class Settings

Warning

Fram was decommissioned in 2025. Documentation is maintained here in case it helps installation on Sigma2 HPC systems in production.

Getting an Account

Apply for a Sigma2 account.

SSH Configuration

Add the following lines to ~/.ssh/config on your local machine,

Host fram fram.sigma2.no
    HostName fram.sigma2.no
    User <USERNAME>

replacing <USERNAME> with your Fram username (which should be your Sigma2 username). Then, you can ssh to Fram with,

ssh fram

Password-less SSH

You can setup public key authentication in order to avoid having to input your password all the time you log onto Fram. 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 Fram 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

On Fram, 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 Fram

Fram will only be used to run the code: you will use your local machine for pre- and post-processing; you will never use Fram’ 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 restore system
module load libtool/2.4.6-GCCcore-6.3.0
module load Automake/1.15.1-GCCcore-6.3.0/
module load CMake/3.9.1
module load PETSc/3.8.0-intel-2017a-Python-2.7.13
module load ParMETIS/4.0.3-intel-2017a

# ISSM configuration
./configure \
    --prefix="${ISSM_DIR}" \
    --enable-development \
    --with-wrappers=no \
    --without-kriging \
    --with-mpi-include="/cluster/software/impi/2017.1.132-iccifort-2017.1.132-GCC-6.3.0-2.27/include64" \
    --with-mpi-libflags="-L/cluster/software/impi/2017.1.132-iccifort-2017.1.132-GCC-6.3.0-2.27/lib64 -lmpich -lmpichf90 -lmpichcxx -lmpl" \
    --with-petsc-dir="/cluster/software/PETSc/3.8.0-intel-2017a-Python-2.7.13/" \
    --with-metis-dir="/cluster/software/ParMETIS/4.0.3-intel-2017a/include/" \
    --with-m1qn3-dir="${ISSM_DIR}/externalpackages/m1qn3/install"

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
make install

Cluster Class Settings

In order to connect to Fram 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 fram.m still needs to be developed.

Create $ISSM_DIR/src/py/fram_settings.py, which might include,

def fram_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='nn4659k' # this is for ice2ice
    md.cluster.numnodes=1
    md.cluster.numprocess=16
    return md

replacing <USERNAME> with your Fram username and entering your code path and execution path (<PATH_TO_ISSM_ON_CLUSTER> should be in /cluster/work/users/<USERNAME>/). These settings will be picked up automatically when you run md.cluster=fram().