University IT Services logo

HPC@PoliTO

HPC@PoliTO provides high-performance computing (HPC) resources to support research and teaching activities atPolitecnico di Torino. Managed by the Cybersecurity and IT for Research Division (ISIAD), our goal is to provide arobust, centralized computing infrastructure that enables hundreds of users — including thesis students, PhD candidates,researchers, faculty members, and student groups from all departments — to efficiently run complex simulations, performdata analysis, and carry out computationally intensive tasks.

HPC@PoliTO resources support all major scientific fields across the University, ranging from computational fluiddynamics and physical chemistry to bioinformatics and generative AI. At the heart of the infrastructure is the “Legion” HPC cluster, which users access through a shared login interface to submit their workloads to specialized hardware. Adedicated scheduler manages job requests, allocating resources fairly and efficiently.

The computing nodes and storage systems are interconnected via a dedicated Infiniband network (200 Gb/s and 100 Gb/s) offering extremely high performance and very low latency, ensuring excellent scale-out even for the most demanding workloads.

The cluster is complemented by an additional internal Ethernet network with a 10 Gb/s bandwidth to provide user connectivity and support the operational management of the system.

Architettura del sistema HPC
Schema dell’infrastruttura HPC del Politecnico di Torino. L’immagine mostra due isole di calcolo (“ISOLA 1” e “ISOLA 2”) connesse tra loro e a sistemi di archiviazione e login. Le connessioni sono rappresentate con colori diversi: rosso per InfiniBand HDR 200 Gb/s, blu per InfiniBand EDR 100 Gb/s e verde per Ethernet 10 Gb/s. Le isole sono collegate a: uno storage $SCRATCH BeeGFS da circa 800 TB, uno storage $HOME NFS da circa 1 PB, i nodi di login “hpc-legionlogin”, macchine virtuali di frontend, database utenti e provisioning. Dalla rete interna LAN PoliTO, accessibile tramite VPN PoliTO, gli utenti possono connettersi via SSH ai nodi di login e, da lì, alle risorse di calcolo.

Immagine
immagine di pc

The core of the HPC@PoliTO infrastructure is the LEGION cluster, installed in 2020 and significantly upgraded between2024 and 2025. Designed to balance the diverse and complex computational needs of the University’s research groups, LEGION comprises 150 high-performance computing nodes, distributed as follows:

  • 98 CPU-based nodes (Intel Xeon Skylake and Sapphire Rapids)
  • 52 GPU-based nodes (NVIDIA V100, A40, A100, and H200)

Key infrastructure figures

  • 60 TB of total RAM
  • 13.2 TB of VRAM
  • 1.8 PB of high-performance flash storage

The cluster is divided into two main partitions (“Islands”), each based on a different hardware generation.

ISLAND 1

  • 52 CPU nodes: 2× Intel Xeon 6130 (16 cores per socket) | 384 GB DDR4 RAM
  • 6 GPU nodes: 4× NVIDIA V100 SXM (32 GB) | 2× Intel Xeon 6130 | 384 GB DDR4 RAM

ISLAND 2

  • 45 CPU nodes: 2× Intel Xeon 6442Y (24 cores per socket) | 512 GB DDR5 RAM
  • 27 A40 GPU nodes: 4× NVIDIA A40 (48 GB) | 2× Intel Xeon 6442Y | 512 GB DDR5 RAM
  • 1 A100 GPU node: 4× NVIDIA A100 (80 GB) | 2× Intel Xeon 6442Y | 1,024 GB DDR5 RAM
  • 1 H200 GPU node: 8× NVIDIA H200 (141 GB) | 2× Intel Xeon 8462Y (32 cores per socket) | 2,048 GB DDR5RAM

To support the computing infrastructure, the cluster relies on two distinctand complementary storage systems:

  • $HOME: a high-capacity Network Attached Storage (NAS) system for storingthe user's personal home directory and data. Data are permanent (they aredeleted 6 months after the account expires). Default quota = 1.5 TB per user.
  • $SCRATCH: a temporary, high-performance BeeGFS parallel file systemwith lower capacity, providing space for I/O-intensive workloads. Files olderthan 30 days are automatically deleted. Default quota = 5 TB per user.

Copying files to your HPC@PoliTO home directory ($HOME)

To copy files to and from the Legion cluster, the use of the scp protocol isrecommended. To copy a file or directory from your home directory on Legionto your local computer, use the following command:

bashscp -r username@hpc-legionlogin.polito.it:/home/username/file /local/path/

where /home/username is your account's home directory (also accessible as$HOME), file is the file or directory you want to copy, and /local/path/is the directory on your local computer where you want to copy the file.

Copying files from your local computer toyour HPC@PoliTO home directory ($HOME)

To copy a file or directory from your local computer to your home directoryon Legion, use the following command:

bashscp -r /local/path/file username@hpc-legionlogin.polito.it:/home/username/directory

where username is your account username, /local/path/file is the file ordirectory to be copied, and /home/username/directory is the destinationon the cluster.

Using the high-performance BeeGFS file system ($SCRATCH)

$SCRATCH is a temporary, high-performance storage area that users canaccess to run their jobs (further information about the $SCRATCH file systemand BeeGFS is available in the manual).

To take advantage of the better I/O performance of the BeeGFS file system,it is advisable to first move files (e.g. datasets) from the home directory to adedicated directory in $SCRATCH. Jobs will typically access these data andproduce new files containing the simulation results. Once the simulationsare complete, the relevant data (excluding temporary files) must be copiedback to the home directory for safer, long-term storage.

Data (files and directories) can simply be copied from $HOME to $SCRATCH using cp:

                                                 cp -r $HOME/job_directory/file $SCRATCH/job_directory/

and vice versa, from $SCRATCH to $HOME, using:

                                                  cp -r $SCRATCH/job_directory/file $HOME/job_directory/

Alternatively, rsync can be used if you want to copy back only the newlygenerated data to your home directory.

The manual also describes how to integrate data transfers from $HOME to$SCRATCH (and vice versa) directly into a SLURM job submission script.

For a comprehensive overview of this topic, please refer to the manual provided at the end of the attached documents. We strongly recommend reading it!

Shared resources

Since computing resources are limited, it is essential to ensure fair access for all users and efficient use of the infrastructure. This is managed by the SLURM scheduler, which collects job requests submitted by all users and allocates the requested computing resources as soon as they become available.

Job submission

To run a job on the cluster, users must submit a request to the SLURM scheduler. Never run a program directly from the shell: this violates our rules and shows a lack of respect for your colleagues!

Requests to the SLURM scheduler are submitted through a batch script consisting of three sections:

  • Job parameters (i.e. which partition, how many nodes, how many CPUs and GPUs, and the job duration).
  • Software configuration (i.e. defining the required software and setting the relevant environment variables).
  • Simulation execution (i.e. running the program and carrying out the actual simulation).

Once the SLURM submission script has been prepared, the job can simply be submitted to the scheduler by typing:

                                                                                 sbatch script_name

Monitoring job status

Once a job request has been submitted to the SLURM scheduler, you can monitor its progress and check its status in the queue. Simply use the following command:

                                                                        squeue -u username

where username is your username.

The output of this command will show whether the job is waiting in the queue for resources (state = PD) or is running (state = R), how long it has been running or waiting, and which computing nodes have been assigned to it.

You can copy files and directories from $HOME to $SCRATCH using cp:

                                        cp -r $HOME/job_directory/file $SCRATCH/job_directory/

and vice versa, from $SCRATCH to $HOME, using:

                                       cp -r $SCRATCH/job_directory/file $HOME/job_directory/

Alternatively, you can use rsync if you want to copy back only the newly generated data to your home directory.

The manual also explains how to integrate data transfers between $HOMEand $SCRATCH directly into a SLURM job submission script.

Other numbers

0
CPU cores
0
NVIDIA A40
0
Compute nodes
0
TB DDR4 & DDR5 RAM

Core system components and solutions

Immagine
logo di intel xeon
Immagine
logo di nvidia
Immagine
logo di mellanox
Immagine
logo di rocky linux
Immagine
logo di bee gfs
Immagine
logo di slurm workload manager

This section contains some example scripts that you can adapt to run your jobs. Always refer to the manual at the bottom of the page for a comprehensive overview of the topic.

EXAMPLE 1

The following example submits a parallel MPI job request to the scheduler, requesting 1 compute node (-N 1), running 48 MPI tasks (--ntasks-per-node=48), with no shared-memory parallelization (--cpus-per-task=1) and no hyperthreading (--threads-per-core=1).

#!/usr/bin/env bash 

#SBATCH -N 1 

#SBATCH --ntasks-per-node=48 

#SBATCH --cpus-per-task=1 

#SBATCH --threads-per-core=1 

#SBATCH --time 0-00:30:00 

#SBATCH --partition=cpu_sapphire 

#SBATCH --mail-type=ALL 

#SBATCH --mail-user=nome.cognome@polito.it

EXAMPLE 2

The following example submits a parallel MPI job request to the scheduler, requesting 2 compute nodes (-N 2), running 48 MPI tasks per node (--ntasks-per-node=48), with no shared-memory parallelization (--cpus-per-task=1) and no hyperthreading (--threads-per-core=1). Specific compute nodes are explicitly requested for the job (--nodelist=compute-X-Y). The executable is then launched using a total of 96 MPI tasks.

 #!/usr/bin/env bash 

#SBATCH -N 2 

#SBATCH --ntasks-per-node=48 

#SBATCH --cpus-per-task=1 

#SBATCH --threads-per-core=1 

#SBATCH --time 0-00:30:00 

#SBATCH --partition=cpu_sapphire 

#SBATCH --mail-type=ALL 

#SBATCH --mail-user=firstname.lastname@polito.it 

#SBATCH --nodelist=compute-X-Y,compute-K-Z

EXAMPLE 3

The following example submits a parallel MPI job request to the scheduler, requesting 2 compute nodes (-N 2), running 48 MPI tasks per node (--ntasks-per-node=48), with no shared-memory parallelization (--cpus-per-task=1) and no hyperthreading (--threads-per-core=1). Specific compute nodes are explicitly excluded from the job (--exclude=compute-X-Y). The executable is then launched using a total of 96 MPI tasks.

#!/usr/bin/env bash 

#SBATCH -N 2 

#SBATCH --ntasks-per-node=48 

#SBATCH --cpus-per-task=1 

#SBATCH --threads-per-core=1

 #SBATCH --time 0-00:30:00 

#SBATCH --partition=cpu_sapphire 

#SBATCH --mail-type=ALL 

#SBATCH --mail-user=firstname.lastname@polito.it 

#SBATCH --exclude=compute-X-Y,compute-K-Z

EXAMPLE 4

The following example submits a hybrid MPI-OpenMP job request to the scheduler (see the manual for further details), requesting 1 compute node (-N 1), running 12 MPI tasks per node (--ntasks-per-node=12), with 4 OpenMP threads per task (--cpus-per-task=4) and no hyperthreading (--threads-per-core=1).

#SBATCH -N 1 

#SBATCH --ntasks-per-node=12

 #SBATCH --cpus-per-task=4 

#SBATCH --threads-per-core=1

 #SBATCH --time 0-00:30:00

 #SBATCH --partition=cpu_sapphire

 #SBATCH --mail-type=ALL 

#SBATCH --mail-user=firstname.lastname@polito.it 

#SBATCH --exclude=compute-X-Y,compute-K-Z

EXAMPLE 5

The following example submits an MPI job using GPUs, requesting 1 compute node (-N 1), running 4 MPI tasks (--ntasks-per-node=4) across 4 GPUs, with no shared-memory parallelization (--cpus-per-task=1) and no hyperthreading (--threads-per-core=1).

#!/usr/bin/env bash 

#SBATCH -N 1 

#SBATCH --ntasks-per-node=4 

#SBATCH --cpus-per-task=1 

#SBATCH --threads-per-core=1 

#SBATCH --time 0-00:30:00 

#SBATCH --gres=gpu:4 

#SBATCH --partition=gpu_a40

 #SBATCH --mail-type=ALL 

#SBATCH --mail-user=firstname.lastname@polito.it

EXAMPLE 6

The following example illustrates how to use the high-performance BeeGFS file system. It automatically transfers the simulation data to $SCRATCH, runs the parallel simulation, and finally transfers the data back to $HOME.

#!/usr/bin/env bash

#SBATCH -N 1

#SBATCH --ntasks-per-node=48

#SBATCH --cpus-per-task=1

#SBATCH --threads-per-core=1

#SBATCH --time 0-00:30:00

#SBATCH --partition=cpu_sapphire

#SBATCH --mail-type=ALL

#SBATCH --mail-user=firstname.lastname@polito.it

 

module purge 

module load openmpi/5.0.7_gcc12 

module load {my_module} ## replace {my_module} with the actual module

bashmkdir $SCRATCH/path-to-simulation-directory cp $HOME/path-to-working-directory/* $SCRATCH/path-to-simulation-directory/ cd $SCRATCH/path-to-simulation-directory

mpirun -np 4 my_module_executable [OTHER PARAMETERS]

rsync $SCRATCH/path-to-simulation-directory/* $HOME/path-to-working-directory/

Software on the Legion cluster can be managed and used in three different ways:

  • Centralized: system administrators provide centralized installations of the most commonly used software suites. Users can load the required packages through Environment Modules and use them directly for their simulations.
  • Local: users are allowed to compile and install software in their own home directory without elevated privileges. HPC@PoliTO provides Spack, which conveniently manages the paths and environment variables of locally installed software.
  • Containers: users are allowed to run their own containers without the need for elevated privileges, using Apptainer.

Environment Modules

The Environment Modules package allows environment variables to be dynamically modified during a user session. From the user's perspective, it appears as though software packages are being installed on demand. Using modules is recommended whenever the required package and version are available.

BASIC COMMANDS

  • module avail: displays the modules currently available on the cluster.
  • module load {module_name}: loads the specified module.
  • module show {module_name}: displays information about the specified module.
  • module list: displays the modules loaded in the current user session.
  • module unload {module_name}: unloads the specified module.
  • module purge: unloads all modules in the current user session.

How to request resources

Attivazione account

L'accesso è consentito a ricercatori, studenti di dottorato e studenti di laurea magistrale impegnati nel progetto della tesi di laurea. Per questi ultimi, le richieste devono essere inviate dal proprio relatore accademico.

Gli account vengono di norma attivati (o rinnovati) entro 7 giorni lavorativi, anche se nei periodi di maggior carico di lavoro potrebbe essere necessario più tempo.

L'accesso è fornito anche per finalità didattiche (corsi) e per i team studenteschi; in questi casi le richieste devono essere presentate dai docenti o dai referenti accademici del team.

Contacts

 
Immagine
icone ufficiali (1).png

Email address

hpc@polito.it

Who it is intended for

 
Immagine
icona docenti

Faculty

 
Immagine
icona studenti

Researchers