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
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 guideSlurm 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 guideHow 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 guideSlurm 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 guideSlurm 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 guideCUDA 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 guideGPU 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 guideNVIDIA 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 guideMPI 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 guideMPI 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 guideOpenMP 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 guidePython 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 guideHow 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 guideGPU 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 guideCUDA 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 guideCPU 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 guideHPC 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 guideHPC 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 guideCloud 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 guideLinux 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 guideLinux 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 guideInstalling 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 guideHow 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 guideStrong 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 guideHow 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 guideRelated services
When a guide is not enough, our physicists and HPC engineers can do the work with you.
HPC, GPU & Exascale Readiness
Port, scale and accelerate scientific codes on GPUs, national supercomputers and the cloud.
Learn moreResearch Software Engineering & Reproducibility
Modernise research codes, make results reproducible and meet the open-science requirements of journals and funders.
Learn moreEnterprise Support for Open-Source Plasma Codes
Installation, bug-fixing, custom physics modules and priority help for WarpX, EPOCH, Smilei and other open-source codes.
Learn more