skip to primary navigationskip to content

Department of Computer Science and Technology

Specialist resources

 

High Performance Computing

The University High Performance Computing Service (HPC or HPCS, or formerly HPCF) provides a means of running a number of parallel jobs on potentially large amounts of data.  Their clusters are collectively known as the Cambridge Service for Data Driven Discovery, CSD3.

This page is intended as a quick introduction for Computer Laboratory members, but for more detail see The High Performance Computing Service.

You may find the Research Skills Programme module "Compute Resources for ACS and PhD students", held in Michaelmas term, to be a useful introduction to HPC with some tips on effective usage.  Slides and recording (2024)

The current (October 2023) flagship clusters within HPCS / CSD3 are:

  • GPU (Wilkes3 cluster; Slurm partition "ampere"): 80 servers, each having four NVIDIA A100 80GB Ampere GPUs, 128 AMD EPYC CPU cores and 1TB of RAM (technical documentation)
  • CPU (Cumulus cluster): various partitions each with a large number of a different type of server; each server has a lot of CPU cores and RAM, for example Ice Lake nodes with 72 cores and 256-512GB RAM and Cascade Lake nodes with 56 cores and 192-384GB RAM (jobs can span multiple nodes)

Note that the CSD3 is under constant development, and anything said here about numbers of nodes, quotas or time allocation is likely to go out of date - see the CSD3 documentation for definitive values.

Unless working on something that really needs a GPU, lab members would be expected to make use of one of the CPU partitions.  Lab members needing a GPU are expected to use Wilkes3 in preference to any GPUs available within the department.

ACS MPhil / Part III use

The department will fund a modest amount of HPC use (SL2) for any ACS / Part III project that needs it, and certain taught modules as advertised.  Unless agreed otherwise in advance, no student should use more than 300 GPU hours in total over the course of their project, nor more than 15000 CPU hours, without prior approval from the Postgraduate Education team.  Students are generally allowed 50 GPU hours for specific modules that they are registered for (on a trial basis for 2025-26); the lecturer should inform the student when this applies to their module.

Students should apply on the HPC website giving the following PI details:

PI Name: Joy Rook
PI CRSid: jlr59
PI Status: Staff
PI Department: Computer Science and Technology
PI School: Technology

Service Level: Non-paying (SL3) plus paying (SL2)

Compute Platforms: tick Wilkes3-GPU if you may at any point need to run your code on GPUs

Applications from known ACS / Part III students should be automatically approved from mid-Michaelmas onwards.

You may find the shared development server dev-gpu-acs useful when writing your code and running short tests prior to submitting the job to run on HPC.  You must not use a lot of computational resource on the shared server; resource-intensive jobs must run on HPC or some other resource that provides dedicated GPU hardware.

A GPU VM may be available to students whose projects are fundamentally incompatible with HPC.

Part II use

If you are a Part II student and need access to HPC for your project, talk to your supervisor.  The department cannot fund any HPC time for Part II students, nor provide access to the shared COMPUTERLAB-SL3 projects, but your supervisor may be able to provide access to their projects.

Free vs Paying

Use of HPC can fall into several Service Levels: SL2 is for paying customers working on medium scale projects, making irregular use, while SL3 is for non-paying customers making small-scale use with certain running time and priority constraints. (There are also SL1 and SL4 users, but neither will be of interest to lab users.) SL3 users get a certain allocation of hours per quarter (shared amongst all projects associated with a particular Principal Investigator); SL2 users get what they pay for, for as long as their money lasts. Quotas are reset on 4 fixed dates per year.

SL2 charges per GPU hour for jobs submitted to the GPU clusters, or per CPU hour for jobs submitted to the CPU clusters.  GPU hours cost substantially more than CPU hours, reflecting the higher hardware and running costs, but many jobs will take much less time to complete on a GPU or be infeasible on a CPU.

PhD supervisors and Principal Investigators with their own research projects will be given their own HPC projects on application to the HPC team.  To set up paid (SL2) time contact sys-admin with a grant code; departmental IT staff will generate a purchase order to allow HPC to invoice us for your usage.  SL2 time operates on the basis of prepaid credit; your grant will pay for a certain number of GPU hours and/or CPU hours to create a credit balance, and the runtime of any jobs submitted by you or your students will be deducted from that balance.

PhD students and researchers will be added to their PI's / supervisor's project on application to the HPC team.  Free (SL3) usage will be deducted the PI's quota.  Paid usage is expected to be funded by the PI.

Projects which need SL2 HPC time but cannot afford to pay should also contact sys-admin as there is a small pool of EPSRC-funded credit available to support underresourced projects.

Applying for an account

Fill out and submit the application form. It may take up to a week for an account to be issued, but is usually much faster (same day).

Operating Procedure

A user will have 2 directories: a local space and a scratch space, both with quotas set (quotas change too often to be worth recording here).

Although some interactive access is available for development, jobs are generally submitted to the clusters using the Slurm job scheduling system which will place them in a queue and schedule them to run automatically when the right hardware becomes available.

Without too much detail, the usual working procedure is detailed at the Quick Start page:

  • login using ssh to one of the login servers: login-cpu.hpc.cam.ac.uk (for CPU clusters) or login-gpu.hpc.cam.ac.uk (for the Wilkes3 GPU cluster). More detail on this is at Connecting to CSD3.
  • copy your program/script into the local directory,
  • copy your data (if any) into the scratch space,
  • on the login server, compile your program if necessary and check that it runs on a simple case,
  • set up a submission script, which specifies how many instances of the program will run on which data (this is the only difficult part, refer to Running Jobs on CSD3),
  • submit the submission script to the scheduler,
  • wait for it to run (you can check its progress). Jobs can take up to 36 hours and there is no preemption, so you could potentially have to wait 36 hours for other jobs to run before your job can start, although that would require someone else to be using the entire pool of compute nodes all at once; in practice, this happens very rarely. SL2 users have higher priority than SL3 users.

For more information, please refer to HPC's extensive documentation.

Software

A wide variety of software is available: Matlab, R, Java, a variety of compilers. If you have specific version constraints, or need specific toolboxes then it is best to check availability with [Javascript required] before applying for an account.

Training

There are periodic 1-day training courses in how to use the HPCS. However, someone familiar with other batch systems, such as Condor, should be able to pick up enough from the HPCS documentation to get by. If you are new to such systems then it may be quite a steep learning curve, and you should allow several days and quite a lot of trial and error. The HPCS support staff are extremely helpful and will be of considerable assistance, and there is extensive documentation available on the UIS webpage.

Help and information

We've collected some tips for using the HPC from experienced users. Please see the GPU page on the wiki, and feel free to add your own advice for others. There's also a mailing list for GPU users in the department to ask questions and hold discussions. You can find the archives and manage your subscription here.