HPC (Slurm)¶
MPM3S runs on a Slurm cluster as batch jobs, on a GPU or on CPU cores. There are two ways to run it, each on its own page:
-
With the container
Nothing to install: download the MPM3S image once, then submit a job script from each problem's folder. The easiest way.
-
Installed with Julia
Install Julia and MPM3S once, then submit an example job script.
Command/terminal window¶
Julia, MPM3S and the containers are all operated through the terminal (macOS/Linux) or command (Windows) window. To open one:
Press the Windows key, type PowerShell and select Windows PowerShell.
- To open it in a particular folder, open the folder in File Explorer, right-click an empty space and choose Open in Terminal (Windows 11), or hold
Shiftwhile right-clicking and choose Open PowerShell window here (Windows 10).
Press Ctrl + Alt + T, or search for Terminal in your applications menu.
- To open it in a particular folder, right-click an empty space in the folder in your file manager and choose Open in Terminal.
Press Cmd + Space, type Terminal and press Return. Terminal is also in Applications → Utilities.
- To open it in a particular folder, right-click the folder in Finder and choose Services → New Terminal at Folder.
Code snippets are provided throughout the documentation, these can be copied and pasted into the Terminal/Command window.
Before you start¶
- Log in to the cluster's login node with
ssh <username>@<cluster address>, with your username in place of<username>and the cluster's address in place of<cluster address>throughout these pages. Each step says whether it runs on your HPC, in the bash shell on the login node (whether you connect from Windows, Linux or macOS), or on your computer. - Work on a drive with plenty of space, not in your home folder. The image is 2 GB and the results can run to many
GB, but a home folder's quota is usually small. Clusters have a large drive for this, often called scratch
or work; these pages write its path as
<path to large drive>, so put your cluster's in its place (ask your HPC administrator if you are unsure which it is). - Jobs cannot download anything, so everything is downloaded and installed on the login node before the first job.
- The job scripts'
#SBATCHlines must suit your cluster. They ask for the job's resources, and partition and GPU names differ between clusters. The comments in each job script say which lines to change; your cluster's documentation lists all of them and their limits.