Verificarlo: Monday


Schedule Monday 21st November

Verificarlo Tutorial

This tutorial demonstrates how to use Verificarlo to study and improve the numerical accuracy of programs.

Instructions for running the tutorial in CALMIP

  1. Login into olympe
  2. Add the following to your .bashrc to export the path to TREX modulefiles:
export MODULEPATH=${MODULEPATH}:/usr/local/trex/modulefiles
  1. Retrieve and untar the sources for the tutorial with:
wget https://github.com/verificarlo/verificarlo_tutorial/files/9840599/verificarlo-tutorial.tar.gz
tar xzvf verificarlo-tutorial.tar.gz
  1. Allocate a computing node with
$ salloc --reservation=trex --nodes=1 --time=2:00:00
salloc: Granted job allocation 961958
salloc: Waiting for resource configuration
salloc: Nodes olympecomp358 are ready for job
  1. Log into the allocated node
$ ssh olympecomp358 # replace with the name of your node
  1. Load the verificarlo module
$ module load verificarlo/0.9.1
  1. Start verificarlo singularity image and move into the tutorial working directory:
$ sing-verificarlo
Singularity verificarlo-v0.9.1.sif:~> cd verificarlo-tutorial/
Singularity verificarlo-v0.9.1.sif:~/verificarlo-tutorial> 

The singularity image will automatically mount the host’s local directory. We recommend that you use two terminals, one outside of the image to edit files; one inside the image to run the commands.

You can also work locally to edit files and view generated plots by mouting the remote directory with mkdir calmip-wd && sshfs olympe: calmip-wd/.

You are now ready to start the verificarlo tutorial. The instructions are available in the pdf below. You can ignore the docker commands in section 1, since you are already running inside the verificarlo singularity container and directly jump to section 2.

(If you want to work on your own laptop, you can instead use the docker commands in section 1.)

Ressources