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 |
||
HPC2N |
Local ThinLinc client |
||
HPC2N |
Remote desktop website |
||
LUNARC |
SSH |
||
LUNARC |
Local ThinLinc client |
||
UPPMAX |
SSH |
||
UPPMAX |
Local ThinLinc client |
||
UPPMAX |
Remote desktop website |
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.
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
If not already: create a working directory where you can code along.
We recommend creating it under the course project storage directory
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/
Kebnekaise through terminal:
<user>@kebnekaise.hpc2n.umu.se
Kebnekaise through ThinLinc, use:
<user>@kebnekaise-tl.hpc2n.umu.se
Create a working directory where you can code along.
Example. If your username is bbrydsoe and you are at HPC2N, then we recommend you create this folder:
$ mkdir /proj/nobackup/r-py-jl-m/bbrydsoe/
Cosmos through terminal:
<user>@cosmos.lunarc.lu.se
Cosmos through ThinLinc, use:
<user>@cosmos-dt.lunarc.lu.se
Create a working directory where you can code along.
Example. Create this folder:
$ mkdir $HOME/r-py-jl-m
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:
Text editors at UPPMAX - Any of the above links would be helpful for you.
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