Skip to content
VLASIFY™

HPC, GPU & Linux

Practical guides for research computing: Slurm, MPI, OpenMP, CUDA and GPU errors, Linux servers, cluster design and performance. Written for scientists who run simulations, not for full-time sysadmins.

25 of 25 guides shown

Tutorial

HPC cluster setup: a practical plan for research groups

Plan and build a small HPC cluster for research: head and compute nodes, network, storage, provisioning, users, Slurm, software modules and monitoring.

Read guide
Tutorial

Slurm installation and configuration: a working first cluster

Install and configure Slurm on Linux: Munge authentication, slurm.conf, partitions, cgroups, GPU (GRES) setup and accounting, with tests at every step.

Read guide
Tutorial

How to submit a Slurm job: batch scripts, GPUs, arrays and MPI

Write and submit a Slurm batch script with sbatch: CPU, MPI and GPU jobs, job arrays, dependencies, and how to check that your job ran correctly.

Read guide
Troubleshooting

Slurm job pending: what each reason means and how to fix it

Why is your Slurm job stuck in PENDING? Decode Priority, Resources, QOS limits, ReqNodeNotAvail and Dependency, with the commands to fix each one.

Read guide
Troubleshooting

Slurm job failed: how to find out why and fix it

Diagnose failed Slurm jobs from their state and exit code: OUT_OF_MEMORY, TIMEOUT, NODE_FAIL, exit codes 127, 137 and 139, missing output and module errors.

Read guide
Troubleshooting

CUDA out of memory: diagnose and fix GPU memory errors

Fix "CUDA out of memory" in PyTorch and GPU simulation codes: find what fills GPU memory, then cut batch size, precision, activations or domain size.

Read guide
Troubleshooting

GPU not detected in Linux: a layer-by-layer diagnosis

NVIDIA GPU not detected on Linux, nvidia-smi failing or torch.cuda.is_available() False? Check hardware, driver, Secure Boot, containers and CUDA builds.

Read guide
Tutorial

NVIDIA driver installation on Ubuntu for computing workloads

Install NVIDIA drivers on Ubuntu for CUDA, simulation and ML: pick a driver branch, install with ubuntu-drivers or apt, add the CUDA toolkit, verify.

Read guide
Tutorial

MPI installation and first examples: Open MPI, MPICH and mpi4py

Install MPI (Open MPI or MPICH) on Linux, compile and run hello-world and reduction examples in C and Python with mpi4py, and use MPI under Slurm.

Read guide
Troubleshooting

MPI job hangs: how to find deadlocks and network problems

Diagnose MPI programs that hang: deadlocks from send/receive ordering, mismatched collectives, wrong network interfaces, firewalls and InfiniBand issues.

Read guide
Tutorial

OpenMP parallel programming for scientific codes

Parallelise loops with OpenMP: parallel for, reductions, scheduling, avoiding race conditions, thread pinning and NUMA, with compilable examples and checks.

Read guide
Comparison

Python multiprocessing vs MPI: which should you use?

Python multiprocessing vs MPI (mpi4py) for scientific computing: scaling, communication, clusters, ease of use, and when to choose each.

Read guide
Guide

How to speed up Python code for scientific computing

Speed up scientific Python in the right order: profile, vectorise with NumPy, compile loops with Numba, improve algorithms, then parallelise or use GPUs.

Read guide
Tutorial

GPU acceleration for Python: CuPy, Numba CUDA, PyTorch and JAX

Accelerate scientific Python on NVIDIA GPUs: CuPy as a NumPy drop-in, Numba CUDA kernels, PyTorch and JAX, with correct timing and common pitfalls.

Read guide
Comparison

CUDA vs OpenCL vs HIP (and SYCL, Kokkos): choosing a GPU programming model

Compare CUDA, HIP, OpenCL, SYCL, Kokkos and OpenMP offload for scientific GPU code: hardware support, performance portability, ecosystem and porting effort.

Read guide
Comparison

CPU vs GPU for scientific computing: when each is the right choice

When do GPUs beat CPUs for simulation and data analysis? Compare parallelism, memory bandwidth, FP64 performance, memory capacity, porting effort and cost.

Read guide
Guide

HPC cluster hardware requirements: sizing nodes, network and storage

How to size an HPC cluster from your workloads: CPU and GPU nodes, memory per core, interconnect, parallel storage, power and cooling, with a checklist.

Read guide
Guide

HPC cluster cost estimation: total cost of ownership and cost per core-hour

Estimate the full cost of an HPC cluster: hardware, power, cooling, staff, software and refresh, then convert it to cost per core-hour or GPU-hour.

Read guide
Comparison

Cloud vs on-premise HPC: cost, performance and control compared

Cloud HPC vs an on-premise cluster for research: cost per core-hour, utilisation, interconnect performance, data, security and staffing compared.

Read guide
Tutorial

Linux server performance monitoring for compute nodes and workstations

Monitor Linux server performance from the command line: CPU, memory, disk, network and GPU with top, vmstat, iostat, sar and nvidia-smi, plus what to look for.

Read guide
Troubleshooting

Linux boot failure after a power outage: emergency mode, fsck and recovery

Recover a Linux server or workstation that will not boot after a power cut: emergency mode, file system checks, fstab and RAID problems, and prevention.

Read guide
Tutorial

Installing scientific software on Linux: packages, Spack, conda and containers

Choose the right way to install scientific software on Linux: system packages, conda, Spack, environment modules or Apptainer containers, with examples.

Read guide
Tutorial

How to benchmark GPU performance for scientific workloads

Benchmark a GPU properly: health checks with nvidia-smi and DCGM, memory bandwidth and FLOP/s tests, spec comparison, and real application runs.

Read guide
Guide

Strong vs weak scaling in MPI and HPC: definitions, formulas and how to measure

Strong scaling fixes problem size; weak scaling fixes work per process. Amdahl and Gustafson laws, efficiency formulas, and how to run a scaling study.

Read guide
Guide

How to optimize HPC simulations: a profile-driven workflow

Optimise simulation codes systematically: baseline, profile, then fix algorithms, memory access, vectorisation, parallel efficiency, I/O and load balance.

Read guide

Related services

When a guide is not enough, our physicists and HPC engineers can do the work with you.

Get a Quote