What is a Slurm Script?
HPC environments are generally shared resources among a group of users.
In order to manage user jobs, we use Slurm, a resource manager for Linux clusters. This includes deciding which jobs run, when those jobs run, and which node(s) they run on.
A Slurm script provides Slurm with the necessary information to run a job, including details about the required computational resources, the necessary software, and the command(s) needed to execute the code file.
From our website: “Jobs are submitted to the Slurm controller, which queues them until the system is ready to run them. The controller selects which jobs to run, when to run them, and how to place them on the compute node or nodes, according to a predetermined site policy meant to balance competing user needs and to maximize efficient use of cluster resources.”