Chimera cheat sheet
The commands you need most, on one page. Print it (it fits on one A4 sheet) or keep it open next to your terminal. Explanations: Getting access and Chimera.
Log in, copy files
ssh <sis_login>@hpc.troja.mff.cuni.cz
ssh chimera # with an SSH key and ~/.ssh/config
scp file.dat chimera: # to your home directory
rsync -avP dir/ chimera:dir/ # a folder, only what changed
Jobs
sbatch job.sh # submit, prints the job ID
squeue --me # my jobs: PD waiting, R running
scancel <jobid> # cancel
sacct -j <jobid> # state of a finished job
srun -p ffa-short --time=0:30:00 --pty bash # interactive
Job script
#!/bin/bash
#SBATCH --job-name=myjob
#SBATCH --partition=math # or ffa, ffa-long, ...
#SBATCH --account=math # only with the math account
#SBATCH --cpus-per-task=4
#SBATCH --time=1-00:00:00 # days-hh:mm:ss
#SBATCH --output=myjob-%j.out
module load ...
./my_program
Which partition
| Partition | Max time | For |
|---|---|---|
ffa-short |
2 h | tests (default) |
ffa |
12 h | ordinary jobs |
ffa-long |
7 days | long jobs |
math |
unlimited | math account |
gpu-ffa |
12 h | GPU jobs |
smypartition your accounts and partitions · sinfo -s all partitions · freenodes -p math busy nodes
Software
module avail # what is installed
module load <name> # use it
module list # what is loaded
module purge # unload everything
module use /home/hron/WORK/pkg/modulefiles # math section extras
Data
| Where | For |
|---|---|
/home/<sis_login> |
scripts, code (10 GB) |
/work/... |
large data, results (on request) |
/scratch/... |
temporary files of a job |
/archive/... |
long-term, slow |
du -sh * what is big · tar -cJf results.tar.xz results/ compress
Help: Chimera problems: gitlab.mff.cuni.cz/mff/hpc/clusters ·
math account and software: hron@karlin.mff.cuni.cz · this page: cluster.karlin.mff.cuni.cz/cheat-sheet/