Sněhurka

Mathematical section part of the Chimera HPC cluster

Old Karlín GPU nodes

The old GPU nodes g1–g6 stayed in Karlín when the CPU nodes moved to Troja. They keep their own login node (r3d3), disk storage and SLURM partitions, separate from Chimera.

These are old machines: consumer GPUs from 2018–2020 (GeForce RTX 2080 Ti and RTX 3080), 32–64 GB of RAM and an older software environment (Ubuntu 20.04 modules). They are fine for development, testing, teaching and smaller jobs. For larger or longer GPU computations use the GPU partitions of Chimera (gpu-ffa, gpu-ffa-long), which have many more GPUs, see Chimera.

Questions about the old GPU nodes: martin.trcka@matfyz.cuni.cz or clusteradmin@karlin.mff.cuni.cz.

Replace <login> with your Karlín cluster login (not the SIS login used on Chimera). The tab above each command says where to type it: on your computer or on r3d3 (after you have logged in).

Hardware

Node CPU RAM GPU Network
r3d3 Intel Xeon Gold 6240 -- -- login only, do not compute here
g1 2× Intel Xeon E5-2690 v3 (48 threads) 64 GB 1× NVIDIA GeForce RTX 2080 Ti InfiniBand 40 Gb/s
g2 2× Intel Xeon E5-2690 v3 (48 threads) 64 GB 2× NVIDIA GeForce RTX 2080 Ti InfiniBand 40 Gb/s
g3–g6 AMD Ryzen Threadripper 3960X (48 threads) 32 GB 2× NVIDIA GeForce RTX 3080 Ethernet 1 Gb/s

Logging in

Log in with your Karlín cluster account:

ssh <login>@r3d3.karlin.mff.cuni.cz

Copy files with scp or rsync:

scp -r results/ <login>@r3d3.karlin.mff.cuni.cz:~/somewhere/
rsync -avP <login>@r3d3.karlin.mff.cuni.cz:~/somewhere/ ./local_copy/

On Windows, use MobaXterm (terminal, file transfer and X server in one) or WinSCP (file transfer).

Host key fingerprints of r3d3:

ed25519 256  SHA256:jx4nvWO8ZiFzMdxll04bov3aQFEWfoJIKhDZ/QVNkJE
ecdsa   256  SHA256:37wi/aX5ma2bbAWbxYPVCBY9KkYmNCcl0615LUrOvTo
rsa     2048 SHA256:6rGzsoi7JHGNKcnRJA3BHfkfNRr2/lD5P3nlyRHmObI

Data

Directory Use Backup
/usr/users/login home: scripts, input data, source code backed up nightly
/usr/work/login results, large and temporary files not backed up

The disk space is shared by all users: delete data you no longer need, and compress (tar -cJf results.tar.xz results) what you keep. Users who do not compute on the GPU nodes should keep their data on Chimera, see the relocation notice.

Partitions

Partition Nodes Time limit
express (default) g2–g4 6 hours by default, more with --time
nvidia g1–g6 14 days
zen2 g1–g4 7 days

Ask for GPUs with --gres=gpu:N. For MPI across g1 and g2 add --constraint=InfiniBand. freenodes shows which nodes are busy and sinfo -s lists the partitions.

Running a job

Write a job script, e.g. job.sh:

#!/bin/bash
#SBATCH --job-name=gpu-test
#SBATCH --partition=nvidia
#SBATCH --gres=gpu:1
#SBATCH --cpus-per-task=8
#SBATCH --time=1-00:00:00
#SBATCH --output=gpu-test-%j.out

nvidia-smi
python train.py

Submit it with sbatch job.sh, watch it with squeue --me, cancel it with scancel <jobid>.

For an interactive shell on a GPU node:

srun --partition=nvidia --gres=gpu:1 --pty bash -i

Software

Software is installed with Spack and loaded with Lmod modules. module avail lists what is installed, module load <name> loads it.

The modules are built for several CPU generations. The login node loads Arch/linux-ubuntu20.04-skylake_avx512, which uses AVX-512, an instruction set the GPU nodes do not have. In jobs on g1–g6 load the generic tree first:

module load Arch/linux-ubuntu20.04-x86_64_v3