Sněhurka

Mathematical section part of the Chimera HPC cluster

Chimera

Chimera is the faculty HPC cluster in Troja, open to every member of the faculty. Since April 2026 it also includes the former Karlín CPU nodes (r31–r50), on which members of the mathematical section have priority (partition math).

New to Chimera? Start with Getting access: logging in, the math account, SSH keys. The everyday commands on one page: cheat sheet.

Basic terms

House rules: never run computations on the login node; ask for the time and CPUs you really need (smaller jobs start sooner); delete what you no longer need from /scratch and /work.

Your first job

Create a file hello.sh on Chimera (e.g. with nano hello.sh):

#!/bin/bash
#SBATCH --job-name=hello
#SBATCH --partition=ffa-short
#SBATCH --time=00:05:00
#SBATCH --output=hello-%j.out

echo "Hello from $(hostname)"
sleep 30

Submit it, watch it, read the result:

$ sbatch hello.sh
Submitted batch job 123456

$ squeue --me
  JOBID PARTITION   NAME   USER ST  TIME NODES NODELIST(REASON)
 123456 ffa-short  hello novakj  R  0:05     1 r42

$ cat hello-123456.out
Hello from r42

ST is the state: PD waiting (the last column says why), R running. When the job disappears from squeue, it is finished and its output is in hello-<jobid>.out.

Which partition?

Partition Who Time limit (default / max) Use for
math math account 1 day / unlimited priority on the former Karlín nodes
ffa-short (default) everyone 30 min / 2 hours short tests
ffa everyone 1 hour / 12 hours ordinary jobs
ffa-long everyone 1 day / 7 days long jobs
ffa-preempt, ffa-checkpoint everyone 1 hour / 36 hours the whole cluster, but your job can be stopped when the owners need their nodes
gpu-ffa / gpu-ffa-long everyone 1 hour / 12 hours; 1 day / 7 days GPU jobs

ffa means free for all: everyone can use these partitions at low priority. smypartition shows the partitions your accounts allow, sinfo -s lists all of them, and freenodes -p math shows which nodes of a partition are busy. For GPU work use gpu-ffa or gpu-ffa-long. The old GPU nodes in Karlín are not part of Chimera, see Old Karlín GPU nodes.

Running jobs

A typical job script with the math account:

#!/bin/bash
#SBATCH --job-name=test
#SBATCH --account=math
#SBATCH --partition=math
#SBATCH --ntasks=1
#SBATCH --cpus-per-task=4
#SBATCH --time=02:00:00
#SBATCH --output=test-%j.out

# module load ...      # the software your program needs, see "Software" below
./my_program

Without the math account, use e.g. --partition=ffa and leave out --account.

Command What it does
sbatch job.sh submit the script; prints the job ID
squeue --me your waiting and running jobs
scancel <jobid> cancel a job
srun -p math -A math --cpus-per-task=4 --time=1:00:00 --pty bash interactive shell on a compute node

For Jupyter notebooks use JupyterHub: https://hpc.troja.mff.cuni.cz:8000.

Where to keep data

Directory For Limit
/home/<sis_login> scripts, source code, small files 10 GB (hard limit 15 GB)
/work/... large data and results on request
/scratch/... temporary files during a job  
/archive/... long-term storage (slow)  

For a /work folder ask one of the contacts below. To copy files to and from Chimera see Getting access.

Software

Software comes as modules: module avail lists them, module load <name> makes one available, module list shows what is loaded.

Additional modules for the mathematical section (FEniCS, Firedrake, R, Python, …):

module use /home/hron/WORK/pkg/modulefiles
module load Arch/linux-rocky9-x86_64
module avail

Common problems

You see What to do
Invalid account or account/partition combination specified the partition is not allowed for your account: check smypartition, or leave out --account and use an ffa partition
job stays in PD read the reason in squeue --me: Priority or Resources means waiting for free nodes; asking for less time or fewer CPUs helps
job ends at once, .out file says command not found load the module in the job script, not only in your login shell
Disk quota exceeded your home is full (10 GB): move data to /work, delete or compress old files (du -sh * shows what is big)
Permission denied (publickey) when logging in see SSH keys

Help

Training material