To execute non-interactive work on Pyrene, users can request resources from the cluster computing nodes by submitting batch jobs.
The [Slurm](https://slurm.schedmd.com) scheduler manages the resource allocations for submitted batch jobs on Pyrene:
* The cluster nodes are put in partitions. Each partition allows characterized by . Each partition corresponds to different characteristics
* Depending on their situation, users are put in different Slurm accounts
* A resource allocation must specify a partition, an account, and other parameters such as the maximal execution time and the maximal used memory of the job.
To submit a job:
```
sbatch script.sh
```
## Job script examples
Slurm job scripts contains two parts:
1. Slurm directives: starting with #SBATCH, they specify Slurm options.
1. Unix directives: commands to launch your job execution: module loading, program name, etc.
Here are some self-explanatory job script examples for several softwares/applications on Pyrene:
* Sequential (with test file)
* Parallel, shared memory (OpenMP type)
* Parallel, distributed memory (MPI with OpenMPI)
* Parallel, distributed memory (MPI with Intel MPI)