User Manual
LUNARC uses SLURM (Simple Linux Utility for Resource Management) to manage compute resources on COSMOS. To run a program you describe its resource requirements to SLURM via a job script, and SLURM schedules and executes it on the cluster on your behalf.
What this manual covers
Submitting jobs
How to write job scripts and submit them with sbatch, from a minimal single-core job through to multi-node MPI jobs. Covers resource requests, the job execution environment, and how to monitor and control running jobs.
Example job scripts
Ready-to-use scripts for the most common use cases — serial jobs, MPI, OpenMP, and Python with MPI4Py. A good starting point when building your own submission scripts.
Interactive access
How to run interactive work on a compute node rather than the login node, using the Desktop on Demand.
Software modules
How to find, load, and manage software using the modules system, including compiler toolchains for building your own code.
Storage and filesystems
An overview of the storage locations available on COSMOS — home directory, project storage, local scratch ($SNIC_TMP), and long-term archival via Swestore — including quotas and how to check them.
Quick reference
A compact summary of the most commonly used SLURM directives, module commands, and filesystem paths.
FAQ
Answers to common questions about login, files, jobs, and software.
Author: (LUNARC)
Last Updated: 2022-10-05