Sněhurka

Mathematical section part of the Chimera HPC cluster

Getting access

How to get onto Chimera, the faculty HPC cluster, for the first time. For the old GPU nodes that stayed in Karlín see below. Česky: stručné shrnutí.

Reading the commands: replace <sis_login> with your SIS login (e.g. novakj), without the angle brackets. The tab above each command says where to type it: on your computer (a terminal on Linux/macOS, PowerShell on Windows 10/11) or on Chimera (after you have logged in).

1. Log in

Every member of the Faculty of Mathematics and Physics already has access: use your SIS login and password.

ssh <sis_login>@hpc.troja.mff.cuni.cz

You land on the login node: edit files, compile and submit jobs there, but do not run computations on it. exit logs you out.

Prefer a browser? JupyterHub at https://hpc.troja.mff.cuni.cz:8000 runs Jupyter notebooks on the cluster (log in once with your SIS account to create your JupyterHub account).

2. Join the math account (mathematical section)

Everyone can compute at low priority. Members of the mathematical section can also get priority on the former Karlín nodes: email J. Hron (hron@karlin.mff.cuni.cz) to be added to the math account.

Check what you can use: smypartition lists your accounts and the partitions each of them allows.

smypartition

3. Log in with an SSH key

A key pair replaces the password: the private key stays on your computer, the public key is copied to Chimera. Do this once on each computer you log in from.

Create the key pair (skip if you already have ~/.ssh/id_ed25519):

ssh-keygen -t ed25519 -C "my laptop"

Press Enter to accept the file name, then choose a passphrase. It protects the key if your computer is lost.

Copy the public key to Chimera (you type your SIS password one last time):

ssh-copy-id -i ~/.ssh/id_ed25519.pub <sis_login>@hpc.troja.mff.cuni.cz

Windows has no ssh-copy-id; in PowerShell use:

type $env:USERPROFILE\.ssh\id_ed25519.pub | ssh <sis_login>@hpc.troja.mff.cuni.cz "mkdir -p ~/.ssh && chmod 700 ~/.ssh && cat >> ~/.ssh/authorized_keys && chmod 600 ~/.ssh/authorized_keys"

Add a short name to the file ~/.ssh/config (on Windows %USERPROFILE%\.ssh\config; create it if it does not exist):

Host chimera
    HostName hpc.troja.mff.cuni.cz
    User <sis_login>
    IdentityFile ~/.ssh/id_ed25519

Now ssh chimera logs you in, asking only for the key passphrase. To type the passphrase only once per session, add the key to the SSH agent with ssh-add ~/.ssh/id_ed25519 (macOS and most Linux desktops do this for you).

Permission denied (publickey)? The public key did not reach Chimera, or ssh uses a different key. Repeat the copy step, check the User and IdentityFile lines in ~/.ssh/config, and run ssh -v chimera to see which keys are tried.

4. Copy your files

The short name works for copying too:

scp data.tar.gz chimera:                 # one file to your home directory
rsync -avP results/ chimera:results/     # a folder; repeat it to copy only what changed

5. Next steps

Read the Chimera page: the basic terms, your first job, which partition to choose, where to keep data and how to load software. The cheat sheet has the everyday commands on one printable page.

Old Karlín GPU nodes

The old Karlín GPU nodes g1–g6 are a separate, older system with their own Karlín cluster accounts on r3d3.karlin.mff.cuni.cz. For an account, email clusteradmin@karlin.mff.cuni.cz.

Česky: stručné shrnutí

  1. Přihlášení: cluster Chimera může používat každý člen MFF. Přihlaste se svým loginem a heslem ze SISu: ssh <sis_login>@hpc.troja.mff.cuni.cz (na Windows 10/11 v PowerShellu). Na přihlašovacím uzlu nepočítejte, výpočty spouštějte přes SLURM. Jupyter notebooky běží přes JupyterHub: https://hpc.troja.mff.cuni.cz:8000.
  2. Účet math: členové matematické sekce mají přednost na bývalých karlínských uzlech. O přidání do účtu math napište J. Hronovi (hron@karlin.mff.cuni.cz); smypartition pak ukáže vaše účty a fronty.
  3. SSH klíč: ssh-keygen -t ed25519 na svém počítači, potom ssh-copy-id (na Windows příkaz z kroku 3) a zkratku chimera do ~/.ssh/config. Postup je popsán výše.
  4. Kopírování dat: scp soubor chimera: nebo rsync -avP adresar/ chimera:adresar/.
  5. Dál: stránka Chimera: první úloha, volba fronty, kam ukládat data, software, časté problémy.

Staré GPU uzly g1–g6 v Karlíně mají vlastní účty na r3d3.karlin.mff.cuni.cz; o účet žádejte na clusteradmin@karlin.mff.cuni.cz. Podrobnosti: Old Karlín GPU nodes.