Log in session

Goal

The goal of this optional sessions is to make sure that you have fulledfilled the prerequisites to follow this course:

  • you can log in

  • you can start a text editor

If you can, see you at 10:00 sharp! Else, see you in this session.

Cluster-specific approaches

  • The course is a cooperation between UPPMAX (Rackham, Snowy, Bianca), HPC2N (Kebnekaise) and LUNARC (Cosmos) and will focus on the compute systems at all these centres.

  • Although there are differences we will only have few seperate sessions.

  • Most participants will use UPPMAX’s systems for the course, as Kebnekaise and Cosmos are only for local (UmU, IRF, MIUN, SLU, LTU, LU) users.

  • The general information given in the course will be true for all/most HPC centres in Sweden.

    • The examples will often have specific information, like module names and versions, which may vary. What you learn here should help you to make any changes needed for the other centres.

    • When present, links to the Python/Julia/R/Matlab documentation at other NAISS centres are given in the corresponding session.

Note

  • You were invited to be part of the course project for Rackham/Snowy (UPPMAX).

  • If you already have research projects in any of the clusters you can use them. The CPU-hours required during the course will be low!

Learning outcomes

  • Be able to login, where you are

Tip

  • If you have user account and _research_ project on Kebnekaise, follow the HPC2N track below.

  • If you have user account and _research_ project on Cosmos, follow the LUNARC track below.

  • If you have user account and course/research project on Rackham, follow the UPPMAX track below.

Log in!

HPC Center

Method

Documentation

Video

HPC2N

SSH

here

here

HPC2N

Local ThinLinc client

here

here

HPC2N

Remote desktop website

here

here

LUNARC

SSH

here

here

LUNARC

Local ThinLinc client

here

here

UPPMAX

SSH

here

here

UPPMAX

Local ThinLinc client

here

here

UPPMAX

Remote desktop website

here

here

Type-Along

  • Please log in to Rackham, Kebnekaise or other cluster that you are using.

Use Thinlinc or terminal?

  • It is up to you!

  • Graphics come easier with ThinLinc

  • For this course, when having many windows open, it may be better to run in terminal, for screen space issues.

  1. Log in to Rackham!

  • Terminal: ssh -X <user>@rackham.uppmax.uu.se

  • ThinLinc app: <user>@rackham-gui.uppmax.uu.se

  • ThinLinc in web browser: https://rackham-gui.uppmax.uu.se

  1. If not already: create a working directory where you can code along.

  • We recommend creating it under the course project storage directory

  1. Example. If your username is “mrspock” and you are at UPPMAX, then we recommend you create this folder:

    $ mkdir /proj/r-py-jl-m-rackham/mrspock/
    

Test an editor

The clusters provide these text editors on the command line:

  • nano

  • vi, vim

  • emacs

We recommend nano unless you are used to another editor:

Exercise

  • Let’s make a script with the name example.py

$ nano example.py
  • Insert the following text

# This program prints Hello, world!
print('Hello, world!')
  • Save and exit. In nano: <ctrl>+O, <ctrl>+X

You can run a python script in the shell like this:

$ python example.py
# or
$ python3 example.py