CCDB HPCs

Table of Contents

  1. Getting an Account
  2. SSH Configuration
  3. Environment
  4. Installing ISSM on CCDB HPCs
  5. Cluster Class Settings

Getting an Account

Request a CCDB account.

SSH Configuration

Instructions for connecting to CCDB HPCs via SSH.

Environment

On { page.machine_name }}, add the following lines to ~/.bashrc,

# Load modules
module load gcc openmpi matlab metis parmetis imkl petsc

# ISSM
export ISSM_DIR=<PATH_TO_ISSM>
source $ISSM_DIR/etc/environment.sh

replacing <PATH_TO_ISSM> with the path to the directory that you cloned the ISSM source code repository to. Then, run,

source ~/.bashrc

or log out and log back in to apply this change.

Installing ISSM on CCDB HPCs

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),

./configure \
    --prefix="${ISSM_DIR}" \
    --with-numthreads=2 \
    --with-mpi-include="/some/path/just/to/enable" \
    --with-mpi-libflags="-lmpi_cxx -lmpi_mpifh -lmpi" \
    --with-fortran-lib="-L${EBROOTGCC}/lib64 -lgfortran" \
    --with-mkl-libflags="-lmkl_gf_lp64 -lmkl_sequential  -lmkl_core -lmkl_blacs_openmpi_lp64 -lmkl_scalapack_lp64" \
    --with-petsc-dir="${EBROOTPETSC}" \
    --with-mumps-dir="${EBROOTPETSC}" \
    --with-m1qn3-dir="${ISSM_DIR}/externalpackages/m1qn3/install" \

Cluster Class Settings

In order to connect to CCDB HPCs 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.

Create $ISSM_DIR/src/m/computecanada_settings.m, which might include,

cluster.login='<USERNAME>';
cluster.port=0;
cluster.codepath='<PATH_TO_ISSM_ON_CLUSTER>/bin/';
cluster.executionpath='<PATH_TO_ISSM_ON_CLUSTER>/execution/';

Cluster class computecanada.py still needs to be developed.

replacing <USERNAME> with your CCDB username and entering your code path and execution path. These settings will be picked up automatically when you run md.cluster=computecanada().